* rewrite user home dir hardening * delete duplicate var that was missed in a merge conflict Signed-off-by: Sebastian Gumprich <[email protected]> * linting Signed-off-by: Sebastian Gumprich <[email protected]> * add tests for home rewrites Signed-off-by: Sebastian Gumprich <[email protected]> * Apply suggestions from code review Co-authored-by: schurzi <[email protected]> --------- Signed-off-by: Sebastian Gumprich <[email protected]> Co-authored-by: donestefan <[email protected]> Co-authored-by: Sebastian Gumprich <[email protected]> Co-authored-by: Sebastian Gumprich <[email protected]> Co-authored-by: schurzi <[email protected]>
10 lines
247 B
YAML
10 lines
247 B
YAML
---
|
|
- name: Create user whose home-folder should not be touched
|
|
ansible.builtin.user:
|
|
name: "user_with_777_home"
|
|
|
|
- name: Change mode of home-folder for user to 777
|
|
ansible.builtin.file:
|
|
path: /home/user_with_777_home
|
|
mode: "0777"
|