Initial ansible onboard
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: Add configuration file for adduser and addgroup
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: etc/adduser.conf.j2
|
||||
dest: /etc/adduser.conf
|
||||
backup: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
tags:
|
||||
- adduser
|
||||
- users
|
||||
|
||||
- name: Add configuration file for useradd
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: etc/default/useradd.j2
|
||||
dest: /etc/default/useradd
|
||||
backup: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
tags:
|
||||
- useradd
|
||||
- users
|
||||
- CCE-27355-7
|
||||
- CCE-80954-1
|
||||
- CCE-83627-0
|
||||
- CIS-UBUNTU2004-5.5.1.4
|
||||
- UBTU-20-010409
|
||||
Reference in New Issue
Block a user