library/roles/dnet_user_services_perms: Various fixes when the user is not the standard 'dnet'.

This commit is contained in:
Andrea Dell'Amico 2016-08-09 16:56:21 +02:00
parent 342ee869b2
commit 5ea72ab013
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
---
dnet_standard_installation: True
dnet_user: dnet
dnet_group: dnet
dnet_group: '{{ dnet_user }}'
dnet_sudoers_group: dnetsu
dnet_data_directories:

View File

@ -1,3 +1,3 @@
%{{ dnet_sudoers_group }} ALL=(ALL) NOPASSWD: {% if tomcat_m_instances is defined %}/etc/init.d/tomcat7, /etc/init.d/tomcat-instance-*{% endif %} {% if dnet_sudo_commands is defined %},{% for cmd in dnet_sudo_commands %}{{ cmd }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
%{{ dnet_sudoers_group }} ALL=(ALL) NOPASSWD: {% if tomcat_m_instances is defined %}/etc/init.d/tomcat7, /etc/init.d/tomcat-instance-*{% endif %}{% if dnet_sudo_commands is defined %}{% if tomcat_m_instances is defined %}, {% endif %}{% for cmd in dnet_sudo_commands %}{{ cmd }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}