-
-
Save anonymous/ecb41b6fa411871fb69c to your computer and use it in GitHub Desktop.
playbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
vars_files: /tmp/${ansible_facts.ansible_fqdn}.yml | |
with_items: ${childs} | |
tasks: | |
- name: calling the action on tomcat-manager | |
action: uri url=http://localhost:8080/manager/$action?path=/$item user="$user" password="$password" force_basic_auth=yes | |
return_content=yes | |
register: tomcat_response | |
- name: probe if tomcat-manager call was successful | |
action: fail | |
when_string: '"success" not in "${tomcat_response.content}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment