From c0f6aa7ac71eae3ba7bd9a6bf1f704f5d572e947 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 16 May 2017 17:57:23 +0200 Subject: [PATCH] library/roles/dnet_user_services_perms/tasks/dnet-groups.yml: Do not create the dnet user if it's used to run tomcat. --- dnet_user_services_perms/tasks/dnet-groups.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/dnet_user_services_perms/tasks/dnet-groups.yml b/dnet_user_services_perms/tasks/dnet-groups.yml index fba3a9d5..6894baf8 100644 --- a/dnet_user_services_perms/tasks/dnet-groups.yml +++ b/dnet_user_services_perms/tasks/dnet-groups.yml @@ -1,6 +1,7 @@ --- - 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 + when: dnet_user != dnet_tomcat_user tags: [ 'dnet', 'users' ] - name: Add the dnet groups, if it does not exist already