diff --git a/dnet_user_services_perms/defaults/main.yml b/dnet_user_services_perms/defaults/main.yml index 380333a..921384a 100644 --- a/dnet_user_services_perms/defaults/main.yml +++ b/dnet_user_services_perms/defaults/main.yml @@ -4,6 +4,7 @@ dnet_user: dnet dnet_group: '{{ dnet_user }}' dnet_sudoers_group: dnetsu +dnet_data_directory: /var/lib/dnet dnet_data_directories: - /var/lib/dnet diff --git a/dnet_user_services_perms/tasks/dnet-groups.yml b/dnet_user_services_perms/tasks/dnet-groups.yml index 1618e74..fba3a9d 100644 --- a/dnet_user_services_perms/tasks/dnet-groups.yml +++ b/dnet_user_services_perms/tasks/dnet-groups.yml @@ -1,4 +1,8 @@ --- +- name: Create the dnet user, if it is not used to run the tomcat instances + user: name={{ dnet_user }} home={{ dnet_data_directory }} createhome=no shell=/bin/false + tags: [ 'dnet', 'users' ] + - name: Add the dnet groups, if it does not exist already group: name={{ item }} state=present with_items: