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