forked from ISTI-ansible-roles/ansible-roles
library/roles/dnet_user_services_perms: Various fixes when the user is not the standard 'dnet'.
This commit is contained in:
parent
342ee869b2
commit
5ea72ab013
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
dnet_standard_installation: True
|
dnet_standard_installation: True
|
||||||
dnet_user: dnet
|
dnet_user: dnet
|
||||||
dnet_group: dnet
|
dnet_group: '{{ dnet_user }}'
|
||||||
dnet_sudoers_group: dnetsu
|
dnet_sudoers_group: dnetsu
|
||||||
|
|
||||||
dnet_data_directories:
|
dnet_data_directories:
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue