diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-10-22 16:41:45 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-10-22 16:41:45 +0200 |
commit | 0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch) | |
tree | d9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/workstation/tasks/doas.yml | |
parent | 1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff) | |
download | rules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz |
lint: pass ansible-lint + yamllint
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 |