Last active
December 18, 2020 17:35
-
-
Save zeitounator/afacc059ea42d516fb341d48ddebf202 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
- 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