sudo localhost mac failure yosemite

41 views
Skip to first unread message

Eric Palmer

unread,
May 6, 2015, 3:21:06 PM5/6/15
to ansible...@googlegroups.com
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

Brian Coca

unread,
May 6, 2015, 3:22:54 PM5/6/15
to ansible...@googlegroups.com
check current devel, just fix bug that ask_sudo_pass in ansible.cfg
was not honored in 1.9.




--
Brian Coca

Eric Palmer

unread,
May 6, 2015, 3:24:09 PM5/6/15
to ansible...@googlegroups.com
Thanks Brian for the fast resonse

is it possible to get it via homebrew and how would I do that.  I can use macports or pip or other though I prefer homebrew.

Eric


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/K_9syi2S6Hk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mN_CgSycri0fTZ1cMTPA4fM6AnpRr6KyZYtK5vfY83zA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Eric Palmer

Brian Coca

unread,
May 6, 2015, 3:25:42 PM5/6/15
to ansible...@googlegroups.com
none of the above? git clone is best way to checkout current repo. We
actually do not encourage using homebrew as it breaks many things with
the way it patches/manages ansible.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages