library/roles/dnet_user_services_perms: Cover a scenario when the dnet user is not used to run the tomcat instances.

This commit is contained in:
Andrea Dell'Amico 2017-04-19 19:19:59 +02:00
parent c3c3cfc786
commit fc4f88c6ba
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ dnet_user: dnet
dnet_group: '{{ dnet_user }}' dnet_group: '{{ dnet_user }}'
dnet_sudoers_group: dnetsu dnet_sudoers_group: dnetsu
dnet_data_directory: /var/lib/dnet
dnet_data_directories: dnet_data_directories:
- /var/lib/dnet - /var/lib/dnet

View File

@ -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 - name: Add the dnet groups, if it does not exist already
group: name={{ item }} state=present group: name={{ item }} state=present
with_items: with_items: