From 0df015e9b5c4aefd4245c94ee98021d2af80ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 22 Oct 2022 16:41:45 +0200 Subject: lint: pass ansible-lint + yamllint --- roles/workstation/tasks/doas.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/workstation/tasks/doas.yml') 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 -- cgit v1.2.3