ansible-roles/d4s_user_services_perms/tasks/main.yml

12 lines
589 B
YAML

---
- 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
template: src={{ item }}.j2 dest={{ d4science_user_home }}/{{ item }} owner={{ d4science_user }} group={{ d4science_user }} mode=0755
with_items:
- startContainer.sh
- stopContainer.sh
tags: [ 'tomcat', 'd4science', 'sudo' ]