See below:
On Monday, March 6, 2017 at 12:35:14 PM UTC+1, Alvaro Mendez wrote:
>
> 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*
>
Looks good.
>
> - what ubuntu version are you using on the target server?
>
>
>
> *root@s132:~# cat /etc/issueUbuntu 15.10 \n \l*
>
I don't remember if I tried Ubuntu 15 or not, but since Ubuntu 14 and
Ubuntu 16 surely work, it should work for Ubuntu 15 too.
> *root@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
>
>
Good
>
>
>
> *root@s132:~# ansible --versionansible 2.2.0.0 config file =
> /etc/ansible/ansible.cfg configured module search path = Default w/o
> overrides*
>
>
The ansible version is ok
> 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.*
>
>
>
Python version is ok, check if the system has also python3, if it does,
ansible-openwisp2 will be used using python3.
>
>
>
>
> *root@s132:~# django-adminType 'django-admin help <subcommand>' for help
> on a specific subcommand.*
>
[cut]
This is fine but as a side not you should know that django is installed in
a separate virtualenv, which is the part not currently working for you at
the moment.
>
>
> *root@s132:~/openwisp2-ansible-playbook# more hosts[openwisp2]localhost
> ansible_ssh_host=132.148.88.35*
>
This doesn't look right.
It should be something like:
[openwisp2]
132.148.88.35
If you want to run ansible locally you can then use the --connection local
flag although that's not the best way to run ansible.
Could you try running ansible remotely from your own workstation and to
edit the hostfile as suggested?
Try also removing the /opt/openwisp2 directory on the server, so it will be
recreated.
>
>
>
>
>
>
> *root@s132:~/openwisp2-ansible-playbook# more playbook.yml- hosts:
> openwisp2 become: "{{ become | default('yes') }}" roles: -
> openwisp.openwisp2 vars: openwisp2_shared_secret: tee456yt%$#*
>
This also looks good.
Try the suggested changes and let me know!
Federico
>
--
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.