I installed ansible 2.0 using pip. I am trying to use the expect command 
and it is not working. When I try to add
-name: Install Program
 expect: 
   command: some command
     responses: 

I get ERROR! Syntax Error while loading YAML.

If I take out the -name and do

 -expect: 
   command: some command
     responses: 

It says -expect is not a valid attribute for a task

Are the extras modules installed when you use pip now? I tried pip install 
ansible-modules-extras but it said it could not find a version that 
satisfies the requirements. My python (installed using yum) version is 2.7 
and my pexect version was just installed using pip and it above 3.3. When I 
did yum the expect version looked old.

Also when doing the responses is there much information on how the response 
should be formatted? In the ansible document I see something like 
(i?)password. Is there any documentation on what the (i?) means and thing 
such as do I need to type in the whole question that will be asked or can I 
do some kind of other matching like if the question starts with? Or can I 
put (i?) and anything I want and it understands to just answer the question 
presented?

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3e88ace2-b030-4815-9a52-6a4b5821db2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to