0
respostas

Erro ao aplicar playbook setup-awx.yml de instalação do AWX

Ao executar a instalação do AWX pelo playbook dá erro na instalação da task install-awx : Install "NPM" node.js package globally.

Colocando em verbose retorna o seguinte:

fatal: [192.168.0.159]: FAILED! => {
    "changed": false,
    "module_stderr": "OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.0.159 is address
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 8527
debug3: mux_client_request_session: session request sent
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
Shared connection to 192.168.0.159 closed.
",
    "module_stdout": "
Traceback (most recent call last):
  File \"/home/adminlx/.ansible/tmp/ansible-tmp-1639829509.0333261-111130312110187/AnsiballZ_npm.py\", line 102, in <module>
    _ansiballz_main()
  File \"/home/adminlx/.ansible/tmp/ansible-tmp-1639829509.0333261-111130312110187/AnsiballZ_npm.py\", line 94, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File \"/home/adminlx/.ansible/tmp/ansible-tmp-1639829509.0333261-111130312110187/AnsiballZ_npm.py\", line 40, in invoke_module
    runpy.run_module(mod_name='ansible.modules.packaging.language.npm', init_globals=None, run_name='__main__', alter_sys=True)
  File \"/usr/lib/python2.7/runpy.py\", line 188, in run_module
    fname, loader, pkg_name)
  File \"/usr/lib/python2.7/runpy.py\", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code
    exec code in run_globals
  File \"/tmp/ansible_npm_payload_zjDkv7/ansible_npm_payload.zip/ansible/modules/packaging/language/npm.py\", line 316, in <module>
  File \"/tmp/ansible_npm_payload_zjDkv7/ansible_npm_payload.zip/ansible/modules/packaging/language/npm.py\", line 293, in main
  File \"/tmp/ansible_npm_payload_zjDkv7/ansible_npm_payload.zip/ansible/modules/packaging/language/npm.py\", line 206, in list
  File \"/usr/lib/python2.7/json/__init__.py\", line 339, in loads
    return _default_decoder.decode(s)
  File \"/usr/lib/python2.7/json/decoder.py\", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File \"/usr/lib/python2.7/json/decoder.py\", line 382, in raw_decode
    raise ValueError(\"No JSON object could be decoded\")
ValueError: No JSON object could be decoded
",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

Alguma ideia de como resolver?