wip
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
# file: tasks/group.yml
|
||||
|
||||
- name: group - create dns group
|
||||
group: gid="11" name="dns" state="present" system="yes"
|
||||
become: yes
|
||||
when: ansible_os_family|lower != "alpine"
|
||||
|
||||
- name: group - add me to the dns group
|
||||
user: name="{{ansible_user_id}}" groups=dns append=yes
|
||||
become: yes
|
||||
when: ansible_os_family|lower != "alpine" and ansible_user_uid != "0"
|
||||
@@ -52,6 +52,7 @@
|
||||
- name: user - update ~/.bashrc
|
||||
with_items:
|
||||
- PS1="╭∩╮$PS1"
|
||||
- source .shrc
|
||||
- unset user_count process_count
|
||||
lineinfile: dest=~/.bashrc create=yes line='{{item}}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user