library/roles/dnet_user_services_perms/tasks/dnet-groups.yml: Fix a conditional.

This commit is contained in:
Andrea Dell'Amico 2018-12-21 17:17:17 +01:00
parent 2ea3e2c77c
commit 50170afd75
1 changed files with 3 additions and 1 deletions

View File

@ -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