Skip to content

Instantly share code, notes, and snippets.

Created May 13, 2013 14:41
Show Gist options
  • Save anonymous/ecb41b6fa411871fb69c to your computer and use it in GitHub Desktop.
Save anonymous/ecb41b6fa411871fb69c to your computer and use it in GitHub Desktop.
playbook
---
- 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