root@crushmind:~/ansible-openwisp2-multitenancy# ansible --version
ansible 2.2.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
root@crushmind:~/ansible-openwisp2-multitenancy# ansible-playbook -i hosts
playbook.yml -u tabako -k --ask-sudo-pass -vvv
Using /etc/ansible/ansible.cfg as config file
SSH password:
SUDO password[defaults to SSH password]:
ERROR! the role 'Stouts.postfix' was not found in
/root/ansible-openwisp2-multitenancy/roles:/etc/ansible/roles:/etc/ansible/roles:/root/ansible-openwisp2-multitenancy
The error appears to have been in
'/etc/ansible/roles/ansible-openwisp2-0.6.0/meta/main.yml': line 4, column
7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
dependencies:
- src: https://github.com/nemesisdesign/Stouts.postfix
^ here
root@crushmind:~/ansible-openwisp2-multitenancy# ansible-galaxy install
Stouts.postfix
- downloading role 'postfix', owned by Stouts
- downloading role from
https://github.com/Stouts/Stouts.postfix/archive/3.1.3.tar.gz
- extracting Stouts.postfix to /etc/ansible/roles/Stouts.postfix
- Stouts.postfix was installed successfully
root@crushmind:~/ansible-openwisp2-multitenancy# ansible-playbook -i hosts
playbook.yml -u tabako -k --ask-sudo-pass -vvv
Using /etc/ansible/ansible.cfg as config file
SSH password:
SUDO password[defaults to SSH password]:
statically included: /etc/ansible/roles/Stouts.postfix/tasks/postfix.yml
statically included: /etc/ansible/roles/Stouts.postfix/tasks/install.deb.yml
statically included: /etc/ansible/roles/Stouts.postfix/tasks/install.yum.yml
statically included: /etc/ansible/roles/Stouts.postfix/tasks/sslcert.yml
statically included: /etc/ansible/roles/Stouts.postfix/tasks/opendkim.yml
and so on........ but:
<132.148.88.35> ESTABLISH SSH CONNECTION FOR USER: tabako
<132.148.88.35> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
ControlPersist=60s -o User=tabako -o ConnectTimeout=10 -o
ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 132.148.88.35
'/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible,
key=ujhksjbzmcpfjigfmtnhccphpzttfszp] password: " -u root /bin/sh -c
'"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ujhksjbzmcpfjigfmtnhccphpzttfszp;
/usr/bin/python
/home/tabako/.ansible/tmp/ansible-tmp-1489688327.45-137661628708938/command.py;
rm -rf
"/home/tabako/.ansible/tmp/ansible-tmp-1489688327.45-137661628708938/" >
/dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
fatal: [132.148.88.35]: FAILED! => {
"changed": true,
"cmd": [
"/usr/sbin/postmap",
"/etc/postfix/sasl_passwd"
],
"delta": "0:00:01.014767",
"end": "2017-03-16 11:18:52.227945",
"failed": true,
"invocation": {
"module_args": {
"_raw_params": "/usr/sbin/postmap /etc/postfix/sasl_passwd",
"_uses_shell": false,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
},
"module_name": "command"
},
"rc": 1,
"start": "2017-03-16 11:18:51.213178",
"stderr": "postmap: warning: inet_protocols: disabling IPv6
name/address support: Address family not supported by protocol\npostmap:
warning: valid_hostname: numeric hostname: 132.148.88.35\npostmap: fatal:
file /etc/postfix/main.cf: parameter myhostname: bad parameter value:
132.148.88.35",
"stdout": "",
"stdout_lines": [],
"warnings": []
}
RUNNING HANDLER [Stouts.postfix : postfix restart]
*****************************
to retry, use: --limit
@/root/ansible-openwisp2-multitenancy/playbook.retry
PLAY RECAP
*********************************************************************
132.148.88.35 : ok=5 changed=3 unreachable=0 failed=1
Another task broken by not supporting ipv6 on my distro:
Ubuntu 15.10 (GNU/Linux 4.2.0-042stab113.21 x86_64)
What i do now will be create a fresh VPS and enable ipv6 support and then
reinstall all
Tell you when it's done.
El miércoles, 15 de marzo de 2017, 15:43:49 (UTC-3), Federico Capoano
escribió:
>
> I've just released it after two weeks of testing and bugfixing!
> https://github.com/openwisp/ansible-openwisp2/releases/tag/0.6.0
>
> The database structure has changed a lot, therefore *please backup your
> existing instance before upgrading*!
> There may be issues I didn't find while testing and you need to be able to
> rollback if something goes wrong.
>
> Keep me posted!
> 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.