Error TASK [openwisp.openwisp2 : set redis to listen on ipv4]

27 views
Skip to first unread message

Tiago dos Santos Mendes

unread,
Nov 8, 2019, 8:37:13 PM11/8/19
to OpenWISP
Good night dear
I am deploying openwisp and am encountering an installation error ...


root@debian:/openwisp2-ansible-playbook# TASK [openwisp.openwisp2 : set redis to listen on ipv4] ********************************************************
-bash: TASK: comando não encontrado
root@debian:/openwisp2-ansible-playbook# fatal: [192.168.200.101]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.200.101 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/root/.ansible/tmp/ansible-tmp-1573261990.4-129228839300797/AnsiballZ_lineinfile.py\", line 114, in <module>\r\n    _ansiballz_main()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1573261990.4-129228839300797/AnsiballZ_lineinfile.py\", line 106, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/root/.ansible/tmp/ansible-tmp-1573261990.4-129228839300797/AnsiballZ_lineinfile.py\", line 49, in invoke_module\r\n    imp.load_module('__main__', mod, module, MOD_DESC)\r\n  File \"/tmp/ansible_lineinfile_payload_TDimbk/__main__.py\", line 567, in <module>\r\n  File \"/tmp/ansible_lineinfile_payload_TDimbk/__main__.py\", line 558, in main\r\n  File \"/tmp/ansible_lineinfile_payload_TDimbk/__main__.py\", line 338, in present\r\nAttributeError: 'bool' object has no attribute 'expand'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}


I will be grateful for all the help.

Tiago Mendes.

Ajay Tripathi

unread,
Nov 9, 2019, 6:59:36 AM11/9/19
to OpenWISP
Hi,


This might be relevant for your issues: https://github.com/openwisp/ansible-openwisp2/issues/145
If not, please let me know about or OS, ansible version and the playbook configurations!


Best,
Ajay Tripathi

Tiago dos Santos Mendes

unread,
Nov 10, 2019, 4:22:42 PM11/10/19
to OpenWISP

Good afternoon Ajay Tripathi, OS version Debian 9, ansible version 2.8

[openwisp2]
192.168.200.101

- hosts: openwisp2
  become: "{{become | default ('yes')}}"
  roles:
    - openwisp.openwisp2
#vars:
    # openwisp2_default_from_email: "open...@openwisp2.mydomain.com"

Ajay Tripathi

unread,
Nov 10, 2019, 4:59:54 PM11/10/19
to OpenWISP
Hi,

On Monday, November 11, 2019 at 2:52:42 AM UTC+5:30, Tiago dos Santos Mendes wrote:

Good afternoon Ajay Tripathi, OS version Debian 9, ansible version 2.8

[openwisp2]
192.168.200.101

ansible-openwisp is working properly on debian 9 (tested with ansible-2.9.0). 



Looks like your inventory contains an IP address instead of a domain.
Are installing in your localhost, If yes, can you please add the following to your playbook, it might simply be an issue due to ip address not being used in inventory:

```
  vars:
      postfix_myhostname: localhost
``` 


If you are not installing on localhost, can you please try with the following as your inventory:

[openwisp2]
openwisp2.mydomain.com ansible_python_interpreter=/usr/bin/python3


Best,
Ajay Tripathi

Tiago dos Santos Mendes

unread,
Nov 15, 2019, 12:40:51 AM11/15/19
to OpenWISP

Sorry for the delay in replying, was resolved with your suggestions, thank you very much Mr. Ajay Tripathi.
Reply all
Reply to author
Forward
0 new messages