forked from ISTI-ansible-roles/ansible-roles
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:
parent
c3c3cfc786
commit
fc4f88c6ba
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue