wip
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
# file: tasks/groups.yml
|
||||
|
||||
- name: groups - create dns group
|
||||
when: ansible_os_family|lower != "alpine"
|
||||
group: gid="11" name="dns" state="present" system="yes"
|
||||
become: yes
|
||||
|
||||
- name: groups - add me to the dns group
|
||||
when: ansible_os_family|lower != "alpine" and ansible_user_uid != "0"
|
||||
user: name="{{ansible_user_id}}" groups=dns append=yes
|
||||
become: yes
|
||||
|
||||
Reference in New Issue
Block a user