sudo doas add rights
This commit is contained in:
@@ -99,6 +99,17 @@
|
||||
line: 'ansible ALL=(ALL) NOPASSWD: ALL'
|
||||
state: present
|
||||
validate: 'visudo -cf %s'
|
||||
when: "ansible_distribution != 'Alpine'"
|
||||
|
||||
# Give ansible doas rights with no password required.
|
||||
- name: Add doas rights with no password for deployment user (Alpine only)
|
||||
lineinfile:
|
||||
dest: /etc/doas.conf
|
||||
regexp: '^ansible'
|
||||
line: 'permit keepenv nopass :ansible'
|
||||
state: present
|
||||
validate: 'doas -C %s'
|
||||
when: "ansible_distribution == 'Alpine'"
|
||||
|
||||
# # Configure firewalld (if installed) to be disabled (especially if an internal server.) Firewall rules are managed by UniFi.
|
||||
# - name: Stop and disable firewalld.
|
||||
|
Reference in New Issue
Block a user