Hi Alvaro,

this is strange, I need to ask you some questions to understand what's 
going wrong:

   - how did you launch ansible-playbook, can you paste the entire command?
   - what ubuntu version are you using on the target server?
   - on what target machine are you trying to install on? Is it a VM, a 
   linux container or your own laptop?
   - what version of ansible are you using? Check it out with ansible 
   --version

Federico


On Sunday, March 5, 2017 at 10:09:57 PM UTC+1, Alvaro Mendez wrote:
>
> Hi everyone,
>
> First of all thanks in advance for your help.
>
> i have run ansible to install openwisp2 on mi vps with ubuntu installed 
>  and have this error:
>
> TASK [openwisp.openwisp2 : settings.py] 
> ****************************************
>
> ok: [localhost] => {"changed": false, "gid": 33, "group": "www-data", 
> "mode": "0644", "owner": "root", "path": 
> "/opt/openwisp2/openwisp2/settings.py", "size": 4670, "state": "file", 
> "uid": 0}
>
>
> TASK [openwisp.openwisp2 : migrate] 
> ********************************************
>
> fatal: [localhost]: FAILED! => {"changed": false, "cmd": "./manage.py 
> migrate --noinput", "failed": true, "msg": "\n:stderr: Traceback (most 
> recent call last):\n  File \"./manage.py\", line 8, in <module>\n    from 
> django.core.management import execute_from_command_line\nImportError: No 
> module named 'django'\n", "path": 
> "/opt/openwisp2/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>  
> "state": "absent", "syspath": ["/tmp/ansible_W4qkmg", 
> "/tmp/ansible_W4qkmg/ansible_modlib.zip", 
> "/tmp/ansible_W4qkmg/ansible_modlib.zip", "/usr/lib/python2.7", 
> "/usr/lib/python2.7/plat-x86_64-linux-gnu", "/usr/lib/python2.7/lib-tk", 
> "/usr/lib/python2.7/lib-old", "/usr/lib/python2.7/lib-dynload", 
> "/usr/local/lib/python2.7/dist-packages", 
> "/usr/lib/python2.7/dist-packages"]}
>
> to retry, use: --limit @/root/openwisp2-ansible-playbook/playbook.retry
>
>
> PLAY RECAP 
> ********************************************************************* 
>
> localhost                  : ok=24   changed=1    unreachable=0    failed=1  
>  
>
>
>
> Can you help me please? thanks.
>
> best regards.
>

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