I've uninstalled and reinstalled version 1.9.4 and it isn't with it.  I 
downloaded it from github and added "library = 
/path/to/ansible/modules:/path/to/extras" to the ansible.cfg file, had to 
fix my command to the following text

  - expect:
      command: save primary
      responses:
        Do you want to save configuration to primary.cfg and overwrite it\? 
\(y/N\): "Y"
 
but I still get an error.  It looks like ansible is still trying to copy a 
file to the switch.  The switches don't allow files to be copied to them. 
 I'm guessing I can't use the expect module after all.

fatal: [sw_s1-6] => Authentication or permission failure.  In some cases, 
you may have been able to authenticate and did not have permissions on the 
remote directory. Consider changing the remote temp path in ansible.cfg to 
a path rooted in "/tmp". Failed command was: mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1449790332.18-49609163795878 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1449790332.18-49609163795878 && echo 
$HOME/.ansible/tmp/ansible-tmp-1449790332.18-49609163795878, exited with 
result -1: %% Unrecognized command:  "/bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1449790332.18-49609163795878 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1449790332.18-49609163795878 && echo 
$HOME/.ansible/tmp/ansible-tmp-1449790332.18-49609163795878'"



-- 
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/3f8a7ed1-8c9d-40d4-a910-17eba8b54f61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to