new files from source
This commit is contained in:
132 files changed
+5335
No files matched your search
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Configure default home directory and shell for system users
|
||||
block:
|
||||
- name: Set default home directory and shell for system users
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/useradd
|
||||
regexp: "^{{ setting.key }}="
|
||||
line: "{{ setting.key }}={{ setting.value }}"
|
||||
create: yes
|
||||
backup: yes
|
||||
loop:
|
||||
- { key: "HOME", value: "/nonexistent" }
|
||||
- { key: "SHELL", value: "/sbin/nologin" }
|
||||
loop_control:
|
||||
loop_var: setting
|
||||
Reference in new issue
Block a user