Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
- name: Get playbooks
# This doesn't actually need to be specified, the module can pick it up from the callback config
# api_server:
action: get
endpoint: /api/v1/playbooks
status: failed
register: failed_playbooks
- name: Do something if there are failed playbooks
command: something
when: failed_playbooks.results | length >= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.