I have a set of playbooks that sets up a development env on mac os x. It
worked until Yosemite.
the playbooks won't prompt for the sudo password
I have sshpass installed and it passes sshpass -V
This simple script shows what happens.
---
- hosts: all
tasks:
- name: a test
debug: msg="debug success"
- name: create folder
file: dest=/tmp/testansible state=directory
sudo: True
My ansible config file is
[defaults]
ask_sudo_pass=True
my inventory file is
[mac]
localhost ansible_connection=local
I call the above script
ansible-playbook test.yml -i mac --verbose
ansible --version
ansible 1.9.1
configured module search path = None
The output
========
PLAY [all]
********************************************************************
GATHERING FACTS
***************************************************************
ok: [localhost]
TASK: [a test]
****************************************************************
ok: [localhost] => {
"msg": "debug success"
}
TASK: [create folders under htdoc]
********************************************
failed: [localhost] => {"failed": true, "parsed": false}
[sudo via ansible, key=vbptxlstymjdzzprqdccqyexwdsxexbg] password:
FATAL: all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/Users/epalmer/test.retry
localhost : ok=2 changed=0 unreachable=0 failed=1
I'm sure this is simple but I'm not seeing it. Thanks in advance for your
help.
Eric
--
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/45dcfee0-c97e-4e33-9550-b041a40690c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.