2017-01-03 12:41:19 +01:00
|
|
|
---
|
|
|
|
- name: Create tomcat dirs
|
|
|
|
file:
|
|
|
|
path: "{{ tomcat_instance_root }}/{{ tomcat_instance_name }}/{{ item }}"
|
|
|
|
state: directory
|
2017-01-05 11:58:01 +01:00
|
|
|
mode: "2770"
|
2017-03-02 17:22:33 +01:00
|
|
|
owner: "{{ tomcat_instance_name }}"
|
|
|
|
group: "{{ tomcat_instance_name }}"
|
2017-01-03 12:41:19 +01:00
|
|
|
with_items:
|
|
|
|
- 'conf'
|
|
|
|
- 'logs'
|
|
|
|
- 'webapps'
|
|
|
|
- 'work'
|
|
|
|
- 'temp'
|
|
|
|
- 'lib'
|
|
|
|
|
2017-05-10 17:08:55 +02:00
|
|
|
- name: Templating of config file
|
2017-01-03 12:41:19 +01:00
|
|
|
template:
|
2017-05-10 17:08:55 +02:00
|
|
|
src: 'templates/{{ item }}.j2'
|
|
|
|
dest: "{{ tomcat_instance_root }}/{{ tomcat_instance_name }}/conf/{{ item }}"
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0660"
|
2017-03-02 17:22:33 +01:00
|
|
|
owner: "{{ tomcat_instance_name }}"
|
|
|
|
group: "{{ tomcat_instance_name }}"
|
|
|
|
force: no
|
2017-05-10 17:08:55 +02:00
|
|
|
with_items:
|
|
|
|
- server.xml
|
|
|
|
- env
|
2017-03-02 17:22:33 +01:00
|
|
|
|
2017-05-10 17:08:55 +02:00
|
|
|
- name: Copy config file
|
|
|
|
copy:
|
|
|
|
src: "{{ item }}"
|
|
|
|
dest: "{{ tomcat_instance_root }}/{{ tomcat_instance_name }}/conf/{{ item }}"
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0660"
|
2017-01-03 12:41:19 +01:00
|
|
|
owner: "{{ tomcat_instance_name }}"
|
|
|
|
group: "{{ tomcat_instance_name }}"
|
2017-03-02 17:22:33 +01:00
|
|
|
force: no
|
2017-05-10 17:08:55 +02:00
|
|
|
with_items:
|
|
|
|
- catalina.properties
|
|
|
|
- logging.properties
|
|
|
|
- context.xml
|
|
|
|
- tomcat-users.xml
|
|
|
|
- web.xml
|