On Monday, 12 March 2018 14.29.21 CET Samuel Sutton wrote:
> I'm messing around with expect and I can't seem to get a match to get the 
> ping command to fire again a second time. I'm assuming that I'm making a 
> very common matching mistake that is alluding me. Any help would be greatly 
> appreciated!
> 
> ~~~~~~~~~~~~~~~~~~~~~
> Playbook:
> ~~~~~~~~~~~~~~~~~~~~~
> 
> ---
> - hosts: localhost
>   connection: local
>   gather_facts: false
> 
>   tasks:
>     - name: Expect Attempt
>       expect:
>         echo: yes
>         command: ping -c 3 127.0.0.1
>         responses:
>           Question:
>             - rtt "ping -c 3 127.0.0.1"

Expect is used on command and script that is interactive, ping is not 
interactive.

-- 
Kai Stian Olstad

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2470174.EEPk0N2yYJ%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to