- name: create tomcat instance {{ tomcat_instance_name }} dir
file: path="{{ tomcat_dir }}/instances/{{ tomcat_instance_name }}" state=directory
register: result
failed_when: result|ok
- name: debug command result
debug: result name: Check to see if the tomcat instance already exists
shell: find /usr/local/tomcat/instances -name "{{ tomcat_instance_name}}"
register: output---
- name: Check to see if the tomcat instance already exists
shell: find /usr/local/tomcat/instances -name "{{ tomcat_instance_name}}"
register: output
- name: debug output
debug: output
- name: debout output.stdout
debug: output.stdout
- name: debug output.stderr
debug: output.stderr
- name: debug output.rc
debug: output.rc
TASK: [tomcat7 | Check to see if the tomcat instance already exists] **********
changed: [slave]
TASK: [tomcat7 | debug output] ************************************************
ok: [slave] => {
"msg": "Hello world!"
}
TASK: [tomcat7 | debout output.stdout] ****************************************
ok: [slave] => {
"msg": "Hello world!"
}
TASK: [tomcat7 | debug output.stderr] *****************************************
ok: [slave] => {
"msg": "Hello world!"
}
TASK: [tomcat7 | debug output.rc] *********************************************
ok: [slave] => {
"msg": "Hello world!"
}
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/49d82688-2f50-43f6-a3f7-0746cac9bc5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"output.stdout": "/usr/local/tomcat/instances/tcsomething"To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/49d82688-2f50-43f6-a3f7-0746cac9bc5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- name: Check for prior download
stat: path={{ vmwtools_tmp }}/{{ vmwtools_tar}}
register: tar
- name: Fetch tools install
get_url:
url={{ vmwtools_url }}/{{ vmwtools_tar }}
dest={{ vmwtools_tmp }}
when: not tar.stat.exists