Fails on ubuntu 16 and centos 7
opened this issue · comments
ansible@ip-172-31-43-142:~/galaxy$ ansible-playbook -i hosts play.yaml --check
PLAY [app] *************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************
ok: [node-centos]
[DEPRECATION WARNING]: Distribution Ubuntu 16.04 on host node-ubuntu should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible
releases. A future Ansible release will default to using the discovered platform python for this host. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [node-ubuntu]
TASK [geerlingguy.nodejs : Set up the Nodesource RPM directory.] *******************************************************************************************************************
skipping: [node-ubuntu]
ok: [node-centos]
TASK [geerlingguy.nodejs : Import Nodesource RPM key (CentOS < 7).] ****************************************************************************************************************
skipping: [node-ubuntu]
skipping: [node-centos]
TASK [geerlingguy.nodejs : Import Nodesource RPM key (CentOS 7+).] *****************************************************************************************************************
skipping: [node-ubuntu]
changed: [node-centos]
TASK [geerlingguy.nodejs : Add Nodesource repositories for Node.js (CentOS < 7).] **************************************************************************************************
skipping: [node-ubuntu]
skipping: [node-centos]
TASK [geerlingguy.nodejs : Add Nodesource repositories for Node.js (CentOS 7+).] ***************************************************************************************************
skipping: [node-ubuntu]
changed: [node-centos]
TASK [geerlingguy.nodejs : Ensure Node.js AppStream module is disabled (CentOS 8+).] ***********************************************************************************************
skipping: [node-ubuntu]
skipping: [node-centos]
TASK [geerlingguy.nodejs : Ensure Node.js and npm are installed.] ******************************************************************************************************************
skipping: [node-ubuntu]
fatal: [node-centos]: FAILED! => {"changed": false, "msg": "Repository nodesource not found."}
TASK [geerlingguy.nodejs : Ensure dependencies are present.] ***********************************************************************************************************************
changed: [node-ubuntu]
TASK [geerlingguy.nodejs : Add Nodesource apt key.] ********************************************************************************************************************************
changed: [node-ubuntu]
TASK [geerlingguy.nodejs : Add NodeSource repositories for Node.js.] ***************************************************************************************************************
changed: [node-ubuntu] => (item=deb https://deb.nodesource.com/node_12.x xenial main)
changed: [node-ubuntu] => (item=deb-src https://deb.nodesource.com/node_12.x xenial main)
TASK [geerlingguy.nodejs : Update apt cache if repo was added.] ********************************************************************************************************************
changed: [node-ubuntu]
TASK [geerlingguy.nodejs : Ensure Node.js and npm are installed.] ******************************************************************************************************************
fatal: [node-ubuntu]: FAILED! => {"cache_update_time": 1593340985, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" --simulate install 'nodejs=12.*'' failed: E: Version '12.*' for 'nodejs' was not found\n", "rc": 100, "stderr": "E: Version '12.*' for 'nodejs' was not found\n", "stderr_lines": ["E: Version '12.*' for 'nodejs' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}
PLAY RECAP *************************************************************************************************************************************************************************
node-centos : ok=4 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
node-ubuntu : ok=5 changed=4 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0