2015-05-30 19:58:55 +02:00
|
|
|
---
|
|
|
|
- name: Install the sudoers config that permits the tomcat user to restart the service
|
|
|
|
template: src=tomcat-sudoers.j2 dest=/etc/sudoers.d/tomcat-d4science owner=root group=root mode=0440
|
|
|
|
tags: [ 'tomcat', 'd4science', 'sudo' ]
|
|
|
|
|
|
|
|
- name: Install the script that allows the tomcat user to start and stop the service without using the full path
|
2015-06-09 16:10:27 +02:00
|
|
|
template: src={{ item.1 }}.j2 dest={{ item.0.user_home }}/{{ item.1 }} owner={{ item.0.user }} group={{ item.0.user }} mode=0755
|
|
|
|
with_nested:
|
|
|
|
- '{{ tomcat_m_instances }}'
|
|
|
|
- [ 'startContainer.sh', 'stopContainer.sh' ]
|
2015-05-30 19:58:55 +02:00
|
|
|
tags: [ 'tomcat', 'd4science', 'sudo' ]
|