diff --git a/roles/misc/system_user/defaults/main.yml b/roles/misc/system_user/defaults/main.yml index 2eb80f9..242966c 100644 --- a/roles/misc/system_user/defaults/main.yml +++ b/roles/misc/system_user/defaults/main.yml @@ -3,3 +3,6 @@ # system_user user_shell_binary: "/bin/false" # user_directory +user_directory_owner: "{{ system_user }}" +user_directory_group: "{{ system_user }}" +user_directory_mode: "u=rwx,g=rx,o=" diff --git a/roles/misc/system_user/tasks/main.yml b/roles/misc/system_user/tasks/main.yml index f37235c..efab543 100644 --- a/roles/misc/system_user/tasks/main.yml +++ b/roles/misc/system_user/tasks/main.yml @@ -12,6 +12,6 @@ file: path: "{{ user_directory }}" state: directory - owner: "{{ system_user }}" - group: "{{ system_user }}" - mode: "u=rwx,g=rx" + owner: "{{ user_directory_owner }}" + group: "{{ user_directory_group }}" + mode: "{{ user_directory_mode }}"