Skip to content

Instantly share code, notes, and snippets.

@zeitounator
Last active December 18, 2020 17:35
Show Gist options
  • Save zeitounator/afacc059ea42d516fb341d48ddebf202 to your computer and use it in GitHub Desktop.
Save zeitounator/afacc059ea42d516fb341d48ddebf202 to your computer and use it in GitHub Desktop.
---
- name: this is play 1
hosts: my_hosts
tasks:
- name: this is task1 using the expect module
expect:
command: /bin/true
responses:
'response 1': answer 1
'response 2': answer 2
# I'm a comment just before task2 wich does not have a name (bad practice)
- expect:
command: /bin/false
responses:
bla: whatever
'toto pipo': bingo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment