2017-01-03 12:41:19 +01:00
|
|
|
---
|
|
|
|
- name: Check tomcat_instance_name
|
2017-05-21 19:32:25 +02:00
|
|
|
debug:
|
2017-01-03 12:41:19 +01:00
|
|
|
msg: "{{ tomcat_instance_name }}"
|
|
|
|
|
2017-05-21 19:33:16 +02:00
|
|
|
- name: Check use of gid
|
|
|
|
command: id -ng "{{ tomcat_instance_port }}"
|
2017-01-03 12:41:19 +01:00
|
|
|
register: check_port_gid
|
|
|
|
changed_when: false
|
2017-05-21 19:32:25 +02:00
|
|
|
failed_when:
|
2017-02-06 13:28:04 +01:00
|
|
|
- check_port_gid|success
|
2017-01-03 12:41:19 +01:00
|
|
|
- check_port_gid.stdout != "{{ tomcat_instance_name }}"
|
|
|
|
|
2017-05-21 19:33:16 +02:00
|
|
|
- name: Check use of uid
|
|
|
|
command: id -nu "{{ tomcat_instance_port }}"
|
2017-01-03 12:41:19 +01:00
|
|
|
register: check_port_uid
|
|
|
|
changed_when: false
|
2017-05-21 19:32:25 +02:00
|
|
|
failed_when:
|
2017-02-06 13:28:04 +01:00
|
|
|
- check_port_uid|success
|
2017-01-03 12:41:19 +01:00
|
|
|
- check_port_uid.stdout != "{{ tomcat_instance_name }}"
|
|
|
|
|
2017-05-21 19:33:16 +02:00
|
|
|
#- name: Check use of http port
|
|
|
|
# command: grep '<Connector port="{{ tomcat_instance_port }}" protocol="HTTP/1.1"' $(ls {{ tomcat_instance_root }}/*/conf/server.xml|grep -v {{ tomcat_instance_name }})
|