Hello Federico, thanks for your time, here is the information you ask:

   - how did you launch ansible-playbook, can you paste the entire command?

*as root i run:*

*ansible-playbook -i hosts playbook.yml -u tabako -k --ask-sudo-pass -vvv*

   - what ubuntu version are you using on the target server?





*root@s132:~# cat /etc/issueUbuntu 15.10 \n \lroot@s132:~# uname -aLinux
s132 4.2.0-042stab113.21 #1 SMP Wed Mar 23 11:05:25 MSK 2016 x86_64 x86_64
x86_64 GNU/Linux*


   - on what target machine are you trying to install on? Is it a VM, a
   linux container or your own laptop?

*It is a VM on an godaddy VPS.*

   - what version of ansible are you using? Check it out with ansible
   --version




*root@s132:~# ansible --versionansible 2.2.0.0  config file =
/etc/ansible/ansible.cfg  configured module search path = Default w/o
overrides*

Also here is other information:




*root@s132:~# pythonPython 2.7.10 (default, Oct 14 2015, 16:09:02)[GCC
5.2.1 20151010] on linux2Type "help", "copyright", "credits" or "license"
for more information.*



































*root@s132:~# django-adminType 'django-admin help <subcommand>' for help on
a specific subcommand.Available subcommands:[django]    check
compilemessages    createcachetable    dbshell    diffsettings
dumpdata    flush    inspectdb    loaddata    makemessages
makemigrations    migrate    runserver    sendtestemail    shell
showmigrations    sqlflush    sqlmigrate    sqlsequencereset
squashmigrations    startapp    startproject    test    testserverNote that
only Django core commands are listed as settings are not properly
configured (error: Requested setting
INSTALLED_APP                                          S, but settings are
not configured. You must either define the environment variable
DJANGO_SETTINGS_MODULE or call settings.co
<http://settings.co>                                          nfigure()
before accessing settings.).*



*root@s132:~/openwisp2-ansible-playbook# more hosts[openwisp2]localhost
ansible_ssh_host=132.148.88.35*








*root@s132:~/openwisp2-ansible-playbook# more playbook.yml- hosts:
openwisp2  become: "{{ become | default('yes') }}"  roles:    -
openwisp.openwisp2  vars:    openwisp2_shared_secret: tee456yt%$#*


Thanks in advance for your help....



2017-03-06 6:13 GMT-03:00 Federico Capoano <[email protected]>:

> 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/l
>> ocal/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-packa
>> ges"]}
>>
>> 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 a topic in the
> Google Groups "OpenWISP" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/openwisp/y0rNUXUidu0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
        Alvaro Mendez
[email protected]
          8-9047532

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