24 lines
741 B
YAML
24 lines
741 B
YAML
---
|
|
- name: Check tomcat_instance_name
|
|
debug:
|
|
msg: "{{ tomcat_instance_name }}"
|
|
|
|
- name: Check use of gid
|
|
command: id -ng "{{ tomcat_instance_port }}"
|
|
register: check_port_gid
|
|
changed_when: false
|
|
failed_when:
|
|
- check_port_gid|success
|
|
- check_port_gid.stdout != "{{ tomcat_instance_name }}"
|
|
|
|
- name: Check use of uid
|
|
command: id -nu "{{ tomcat_instance_port }}"
|
|
register: check_port_uid
|
|
changed_when: false
|
|
failed_when:
|
|
- check_port_uid|success
|
|
- check_port_uid.stdout != "{{ tomcat_instance_name }}"
|
|
|
|
#- 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 }})
|