Hi Flavio, are you trying to run the playbook on localhost?
If yes, ansible has a built in way to do that, see Running ansible playbook in localhost <http://ansible.pickle.io/post/86598332429/running-ansible-playbook-in-localhost> . PS: please call me by my first name, which is Federico, my last name is Capoano, not Capuano. On Tuesday, February 21, 2017 at 5:59:53 PM UTC+1, fvpro wrote: > > Hi Capuano, > > sorry but I have an other "little" problem when I run from Terminal: > ansible-playbook -i hosts playbook.yml -u flavio -k --ask-sudo-pass > > server-lenovo openwisp2-ansible-playbook # ansible-playbook -i hosts > playbook.yml -u flavio -k --ask-sudo-pass > SSH password: > SUDO password[defaults to SSH password]: > __________________ > < PLAY [openwisp2] > > ------------------ > \ ^__^ > \ (oo)\_______ > (__)\ )\/\ > ||----w | > || || > > ______________ > < TASK [setup] > > -------------- > \ ^__^ > \ (oo)\_______ > (__)\ )\/\ > ||----w | > || || > > fatal: [127.0.1.1]: UNREACHABLE! => {"changed": false, "msg": > "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: ( umask 77 && mkdir -p \"` echo > ~/.ansible/tmp/ansible-tmp-1487695015.33-209710073086275 `\" && echo > ansible-tmp-1487695015.33-209710073086275=\"` echo > ~/.ansible/tmp/ansible-tmp-1487695015.33-209710073086275 `\" ), exited with > result 1", "unreachable": true} > to retry, use: --limit > @/home/flavio/openwisp2-ansible-playbook/playbook.retry > ____________ > < PLAY RECAP > > ------------ > \ ^__^ > \ (oo)\_______ > (__)\ )\/\ > ||----w | > || || > > *127.0.1.1* : ok=0 changed=0 *unreachable=1* > failed=0 > > server-lenovo openwisp2-ansible-playbook # *ping 127.0.1.1 (or > server-lenovo )* > PING 127.0.1.1 (127.0.1.1) 56(84) bytes of data. > 64 bytes from 127.0.1.1: icmp_seq=1 ttl=64 time=0.084 ms > 64 bytes from 127.0.1.1: icmp_seq=2 ttl=64 time=0.084 ms > ^C > > the IP is reachable normally... (and at the beginning I installed the > sshpass). > > How can I do to solve this "problemuccio" ? > > Thank you very much for your help. > > Flavio > > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
