diff options
Diffstat (limited to 'roles/workstation/tasks/doas.yml')
-rw-r--r-- | roles/workstation/tasks/doas.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/workstation/tasks/doas.yml b/roles/workstation/tasks/doas.yml index bc72d7f..e47fa35 100644 --- a/roles/workstation/tasks/doas.yml +++ b/roles/workstation/tasks/doas.yml @@ -1,5 +1,5 @@ - name: generate doas configuration - lineinfile: + ansible.builtin.lineinfile: path: /etc/doas.conf regexp: "^permit persist keepenv {{ workstation_user }} as root" line: "permit persist keepenv {{ workstation_user }} as root" @@ -9,7 +9,7 @@ group: 0 - name: allow reboot/shutdown/hibernate with doas - lineinfile: + ansible.builtin.lineinfile: path: /etc/doas.conf regexp: "^permit nopass {{ workstation_user }} as root cmd {{ item }}" line: "permit nopass {{ workstation_user }} as root cmd {{ item }}" @@ -21,12 +21,12 @@ - zzz - name: check sudo binary path # noqa no-changed-when - command: command -v sudo + ansible.builtin.command: command -v sudo register: result failed_when: false - name: uninstall sudo binary - package: + ansible.builtin.package: name: sudo state: absent when: result.rc == 0 |