forked from evolix/ansible-roles
tomcat-instance: fix right of copied tomcat conf
This commit is contained in:
parent
f7d886f03d
commit
a90f59fc78
|
@ -14,6 +14,11 @@
|
||||||
- 'temp'
|
- 'temp'
|
||||||
- 'lib'
|
- 'lib'
|
||||||
|
|
||||||
|
- name: Copy conf dir
|
||||||
|
shell: "cd {{ tomcat_instance_root }}/{{ tomcat_instance_name }}/conf/ && cp /usr/share/tomcat7/skel/conf/* . && chmod 660 * && chown {{ tomcat_instance_name }}: *"
|
||||||
|
args:
|
||||||
|
creates: "{{ tomcat_instance_root }}/{{ tomcat_instance_name }}/conf/catalina.properties"
|
||||||
|
|
||||||
- name: Copy server.xml
|
- name: Copy server.xml
|
||||||
template:
|
template:
|
||||||
src: 'templates/server.xml.j2'
|
src: 'templates/server.xml.j2'
|
||||||
|
@ -23,11 +28,6 @@
|
||||||
group: "{{ tomcat_instance_name }}"
|
group: "{{ tomcat_instance_name }}"
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: Copy conf dir
|
|
||||||
shell: "cp /usr/share/tomcat7/skel/conf/* {{ tomcat_instance_root }}/{{ tomcat_instance_name }}/conf/"
|
|
||||||
args:
|
|
||||||
creates: "{{ tomcat_instance_root }}/{{ tomcat_instance_name }}/conf/catalina.properties"
|
|
||||||
|
|
||||||
- name: Copy env file
|
- name: Copy env file
|
||||||
template:
|
template:
|
||||||
src: 'templates/env.j2'
|
src: 'templates/env.j2'
|
||||||
|
|
Loading…
Reference in a new issue