aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/sysconf
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-05-03 20:21:31 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-05-03 20:21:31 +0200
commit5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2 (patch)
tree4e992c28bb8114ac9cbb412146f5fbcf1b42ddb1 /roles/_workstation/sysconf
parent2a4483132d4fea880c19283c9fadfe1e4e3a1b06 (diff)
downloadinfrastructure-5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2.tar.gz
sshdns: Refactor role for _workstation only
Diffstat (limited to 'roles/_workstation/sysconf')
-rw-r--r--roles/_workstation/sysconf/tasks/_void.yml2
-rw-r--r--roles/_workstation/sysconf/tasks/main.yml8
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
remember that computers suck.