Hi Frederico. Thank you for your quick response! My command is the same as
you wrote but without the -u cesar
I'll try that later to see and i'll give you the feedback.

Once more thank you :)

On Thu, Aug 23, 2018, 7:31 AM Federico Capoano <[email protected]>
wrote:

> Hi Cesar and welcome,
>
> "Falha de autenticação" seems to mean "Authentication Failure", you simply
> need to pass the right authentication credentials, I suggest you to install
> your public SSH key in the authorized_keys file of the user you are trying
> to log in, for example, is the user is "cesar", you should put your public
> SSH key (which is a text string) in /home/cesar/.ssh/authorized_keys ; once
> you do that you should be able to log in without entering any password, eg:
>
> ansible-playbook -i hosts playbook.yml -b -k -K --become-method=su -u cesar
> (where cesar is the name of the user).
>
> What's the full ansible-playbook command you're using?
>
> Federico
>
> On Wed, Aug 22, 2018 at 11:55 PM César Leitão <
> [email protected]> wrote:
>
>> Hi, i'm new to openwisp and i'm trying to deploy it for testing purposes.
>> I'm following this tutorial (
>> https://github.com/openwisp/ansible-openwisp2#install-openwisp2-for-testing-in-a-virtualbox-vm
>> ).
>> After some attempts i launched the command with -vvv to check the error,
>> and got this:
>> TASK [openwisp.openwisp2 : migrate]
>> ********************************************
>> task path:
>> /home/cesar/.ansible/roles/openwisp.openwisp2/tasks/django.yml:81
>> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
>> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
>> ControlPersist=60s -o ConnectTimeout=10 -o
>> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
>> '"'"'echo ~ && sleep 0'"'"''
>> <192.168.1.101> (0, '/home/cesar\n', '')
>> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
>> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
>> ControlPersist=60s -o ConnectTimeout=10 -o
>> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
>> '"'"'( umask 77 && mkdir -p "` echo
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569 `" && echo
>> ansible-tmp-1534974865.57-49688458530569="` echo
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569 `" ) && sleep 0'"'"''
>> <192.168.1.101> (0,
>> 'ansible-tmp-1534974865.57-49688458530569=/var/tmp/ansible-tmp-1534974865.57-49688458530569\n',
>> '')
>> Using module file
>> /usr/lib/python2.7/dist-packages/ansible/modules/web_infrastructure/django_manage.py
>> <192.168.1.101> PUT
>> /home/cesar/.ansible/tmp/ansible-local-30581NZwtd6/tmpePM9va TO
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py
>> <192.168.1.101> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -C -o
>> ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o
>> ControlPath=/home/cesar/.ansible/cp/ffb009240c '[192.168.1.101]'
>> <192.168.1.101> (0, 'sftp> put
>> /home/cesar/.ansible/tmp/ansible-local-30581NZwtd6/tmpePM9va
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py\n', '')
>> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
>> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
>> ControlPersist=60s -o ConnectTimeout=10 -o
>> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
>> '"'"'setfacl -m u:www-data:r-x
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569/
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py && sleep
>> 0'"'"''
>> <192.168.1.101> (0, '', '')
>> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
>> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
>> ControlPersist=60s -o ConnectTimeout=10 -o
>> ControlPath=/home/cesar/.ansible/cp/ffb009240c -tt 192.168.1.101 '/bin/sh
>> -c '"'"'su  www-data -c '"'"'"'"'"'"'"'"'/bin/sh -c
>> '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'echo
>> BECOME-SUCCESS-baivilxzeziwopfmpxigephdwvejjfgi; /usr/bin/python
>> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"''"'"'"'"'"'"'"'"'
>> && sleep 0'"'"''
>> <192.168.1.101> (1, '\r\nsu: Falha de autentica\xc3\xa7\xc3\xa3o\r\n',
>> 'Shared connection to 192.168.1.101 closed.\r\n')
>> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
>> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
>> ControlPersist=60s -o ConnectTimeout=10 -o
>> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
>> '"'"'rm -f -r /var/tmp/ansible-tmp-1534974865.57-49688458530569/ >
>> /dev/null 2>&1 && sleep 0'"'"''
>> <192.168.1.101> (0, '', '')
>> fatal: [192.168.1.101]: FAILED! => {
>>     "changed": false,
>>     "module_stderr": "Shared connection to 192.168.1.101 closed.\r\n",
>>     "module_stdout": "\r\nsu: Falha de autenticação\r\n",
>>     "msg": "MODULE FAILURE",
>>     "rc": 1
>> }
>> to retry, use: --limit
>> @/home/cesar/Desktop/openwisp2-ansible-playbook/playbook.retry
>>
>> PLAY RECAP
>> *********************************************************************
>> 192.168.1.101              : ok=41   changed=0    unreachable=0
>> failed=1
>>
>> Please help me! i'm literaly stucked here for so long i cant figure it
>> out myself
>> Sorry for my bad english :)
>>
>> --
>> 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.
>>
> --
> 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.
>

-- 
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.

Reply via email to