Skip to content

Instantly share code, notes, and snippets.

@shamrin
Last active December 26, 2015 07:59
Show Gist options
  • Save shamrin/7119184 to your computer and use it in GitHub Desktop.
Save shamrin/7119184 to your computer and use it in GitHub Desktop.
$ ansible-playbook test.yml -vvv
...
TASK: [test local_action] *****************************************************
<127.0.0.1> ESTABLISH CONNECTION FOR USER: root
<127.0.0.1> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/shamrin/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1382536397.51-53312772033838 && chmod a+rx $HOME/.ansible/tmp/ansible-1382536397.51-53312772033838 && echo $HOME/.ansible/tmp/ansible-1382536397.51-53312772033838'"]
fatal: [146.185.147.233] => 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-1382536397.51-53312772033838 && chmod a+rx $HOME/.ansible/tmp/ansible-1382536397.51-53312772033838 && echo $HOME/.ansible/tmp/ansible-1382536397.51-53312772033838, exited with result 255
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/shamrin/test.retry
146.185.147.233 : ok=1 changed=0 unreachable=1 failed=0
---
- hosts: moreska
tasks:
- name: test local_action
local_action: command echo Hello world
---
- hosts: moreska
tasks:
- name: test local_action
local_action: command echo Hello world
connection: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment