2015-08-27 17:14:27 +02:00
|
|
|
---
|
|
|
|
#
|
|
|
|
# Acls for the single tomcat instance
|
|
|
|
#
|
|
|
|
# Note: the default is a default only. We need two commands to add acl effectively on the root dir and set the default
|
|
|
|
- name: Set the read/write permissions on the tomcat webapps and common/classes directories. single tomcat instance
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rwX state=present recursive=yes
|
2015-08-27 17:14:27 +02:00
|
|
|
with_items:
|
|
|
|
- [ '{{ tomcat_webapps_dir }}', '{{ tomcat_common_classes_dir }}', '{{ tomcat_common_dir }}' ]
|
2016-06-30 11:30:35 +02:00
|
|
|
when: tomcat_m_instances is not defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the default read/write permissions on the tomcat webapps and common/classes directories. single tomcat instance
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rwX state=present default=yes recursive=yes
|
2015-08-27 17:14:27 +02:00
|
|
|
with_items:
|
|
|
|
- [ '{{ tomcat_webapps_dir }}', '{{ tomcat_common_classes_dir }}', '{{ tomcat_common_dir }}' ]
|
2016-06-30 11:30:35 +02:00
|
|
|
when: tomcat_m_instances is not defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
# Note: the default is a default only. We need two commands to add acl effectively on the root dir and set the default
|
|
|
|
- name: Set the read permissions on the tomcat log directory. single tomcat instance
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rX state=present recursive=yes
|
2015-08-27 17:14:27 +02:00
|
|
|
with_items:
|
|
|
|
- [ '{{ tomcat_logdir }}' ]
|
2016-06-30 11:30:35 +02:00
|
|
|
when: tomcat_m_instances is not defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the default read permissions on the tomcat log directory. single tomcat instance
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rX state=present default=yes recursive=yes
|
2015-08-27 17:14:27 +02:00
|
|
|
with_items:
|
|
|
|
- [ '{{ tomcat_logdir }}' ]
|
2016-06-30 11:30:35 +02:00
|
|
|
when: tomcat_m_instances is not defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
#
|
|
|
|
# Same steps, but when we are using multiple tomcat instances
|
|
|
|
#
|
|
|
|
# Note: the default is a default only. We need two commands to add acl effectively on the root dir and set the default
|
|
|
|
- name: Set the read/write permissions on the tomcat webapps and common/classes directories. multiple tomcat instances
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ item.0.instance_path }}/{{ item.1 }} entity={{ dnet_group }} etype=group permissions=rwX state=present recursive=yes
|
2015-08-27 17:14:27 +02:00
|
|
|
with_nested:
|
|
|
|
- '{{ tomcat_m_instances }}'
|
|
|
|
- [ 'webapps', 'common', 'common/classes' ]
|
2016-06-30 11:30:35 +02:00
|
|
|
when: tomcat_m_instances is defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the default read/write permissions on the tomcat webapps and common/classes directories. multiple tomcat instances
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ item.0.instance_path }}/{{ item.1 }} entity={{ dnet_group }} etype=group permissions=rwX state=present default=yes recursive=yes
|
2015-08-27 17:14:27 +02:00
|
|
|
with_nested:
|
|
|
|
- '{{ tomcat_m_instances }}'
|
|
|
|
- [ 'webapps', 'common', 'common/classes' ]
|
2016-06-30 11:30:35 +02:00
|
|
|
when: tomcat_m_instances is defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
# Note: the default is a default only. We need two commands to add acl effectively on the root dir and set the default
|
|
|
|
- name: Set the read permissions on the tomcat log directory. multiple tomcat instances
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ tomcat_m_instances_logdir_base }}/{{ item.http_port }} entity={{ dnet_group }} etype=group permissions=rX state=present recursive=yes
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ tomcat_m_instances }}'
|
|
|
|
when: tomcat_m_instances is defined
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the default read permissions on the tomcat log directory. multiple tomcat instances
|
2017-11-09 19:40:41 +01:00
|
|
|
acl: name={{ tomcat_m_instances_logdir_base }}/{{ item.http_port }} entity={{ dnet_group }} etype=group permissions=rX state=present default=yes recursive=yes
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ tomcat_m_instances }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
when: tomcat_m_instances is defined
|
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|