Hi,
I've used ansible with some success on remote servers, but wanted to build up a quick playbook to build on dev boxes quickly.
So I wrote out a small playbook to just install some apt packages, and run it - but it seems to get "stuck" at Gathering Facts.
Any idea what might be missing ? I've installed openssh-server on the machine (assuming ansible needs this to connect) and I'm just connecting using my SSH password for now, to avoid any key issues.
I've enclosed the output below, with some verbose logging:
ben@vostro ~/code/ansible_recipes $ ansible-playbook -i hosts -k devbox.yml -vvv
SSH password:
_________________
< PLAY [devboxes] >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_________________
< GATHERING FACTS >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
<localhost> ESTABLISH CONNECTION FOR USER: ben
<localhost> EXEC ['sshpass', '-d4', 'ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/ben/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'GSSAPIAuthentication=no', '-o', 'PubkeyAuthentication=no', '-o', 'ConnectTimeout=10', 'localhost', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1379332720.77-1201888593115 && chmod a+rx $HOME/.ansible/tmp/ansible-1379332720.77-1201888593115 && echo $HOME/.ansible/tmp/ansible-1379332720.77-1201888593115'"]
<localhost> REMOTE_MODULE setup
<localhost> PUT /tmp/tmpLyL69q TO /home/ben/.ansible/tmp/ansible-1379332720.77-1201888593115/setup
<localhost> EXEC ['sshpass', '-d4', 'ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/ben/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'GSSAPIAuthentication=no', '-o', 'PubkeyAuthentication=no', '-o', 'ConnectTimeout=10', 'localhost', '/bin/sh -c \'sudo -k && sudo -H -S -p "[sudo via ansible, key=ulungtivpfjeywjqwqbhuutagtccxvwz] password: " -u root /bin/sh -c \'"\'"\'/usr/bin/python /home/ben/.ansible/tmp/ansible-1379332720.77-1201888593115/setup; rm -rf /home/ben/.ansible/tmp/ansible-1379332720.77-1201888593115/ >/dev/null 2>&1\'"\'"\'\'']