From 5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 3 May 2021 20:21:31 +0200 Subject: sshdns: Refactor role for _workstation only --- roles/_workstation/sysconf/tasks/_void.yml | 2 +- roles/_workstation/sysconf/tasks/main.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'roles/_workstation/sysconf') diff --git a/roles/_workstation/sysconf/tasks/_void.yml b/roles/_workstation/sysconf/tasks/_void.yml index e05e2ef..1337cfa 100644 --- a/roles/_workstation/sysconf/tasks/_void.yml +++ b/roles/_workstation/sysconf/tasks/_void.yml @@ -12,7 +12,7 @@ - name: append current user to system groups user: - name: "{{ _workstation_env_user }}" + name: "{{ _ws_user }}" groups: "{{ item }}" append: true loop: diff --git a/roles/_workstation/sysconf/tasks/main.yml b/roles/_workstation/sysconf/tasks/main.yml index 253cacd..e3f14aa 100644 --- a/roles/_workstation/sysconf/tasks/main.yml +++ b/roles/_workstation/sysconf/tasks/main.yml @@ -11,8 +11,8 @@ - name: generate doas configuration lineinfile: path: /etc/doas.conf - regexp: "^permit persist keepenv {{ _workstation_env_user }} as root" - line: "permit persist keepenv {{ _workstation_env_user }} as root" + regexp: "^permit persist keepenv {{ _ws_user }} as root" + line: "permit persist keepenv {{ _ws_user }} as root" owner: root mode: 0644 create: true @@ -20,8 +20,8 @@ - name: allow reboot/shutdown/hibernate with doas lineinfile: path: /etc/doas.conf - regexp: "^permit nopass {{ _workstation_env_user }} as root cmd {{ item }}" - line: "permit nopass {{ _workstation_env_user }} as root cmd {{ item }}" + regexp: "^permit nopass {{ _ws_user }} as root cmd {{ item }}" + line: "permit nopass {{ _ws_user }} as root cmd {{ item }}" loop: - zzz - ZZZ -- cgit v1.2.3