forked from ISTI-ansible-roles/ansible-roles
library/roles/dnet_user_services_perms/tasks/dnet-groups.yml: Fix a conditional.
This commit is contained in:
parent
2ea3e2c77c
commit
50170afd75
|
@ -1,7 +1,9 @@
|
||||||
---
|
---
|
||||||
- name: Create the dnet user, if it is not used to run the tomcat instances
|
- 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
|
user: name={{ dnet_user }} home={{ dnet_data_directory }} createhome=no shell=/bin/false
|
||||||
when: dnet_user != dnet_tomcat_user
|
when:
|
||||||
|
- dnet_tomcat_user is defined
|
||||||
|
- dnet_user != dnet_tomcat_user
|
||||||
tags: [ 'dnet', 'users' ]
|
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
|
||||||
|
|
Loading…
Reference in New Issue