diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-05-03 20:21:31 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-05-03 20:21:31 +0200 |
commit | 5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2 (patch) | |
tree | 4e992c28bb8114ac9cbb412146f5fbcf1b42ddb1 /roles/_workstation/sysconf/tasks | |
parent | 2a4483132d4fea880c19283c9fadfe1e4e3a1b06 (diff) | |
download | infrastructure-5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2.tar.gz |
sshdns: Refactor role for _workstation only
Diffstat (limited to 'roles/_workstation/sysconf/tasks')
-rw-r--r-- | roles/_workstation/sysconf/tasks/_void.yml | 2 | ||||
-rw-r--r-- | roles/_workstation/sysconf/tasks/main.yml | 8 |
2 files changed, 5 insertions, 5 deletions
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 |