Skip to content

Instantly share code, notes, and snippets.

@activedecay
Created January 4, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save activedecay/cd8b5d710fb43b746a7aa35bd3ca0e4c to your computer and use it in GitHub Desktop.
Save activedecay/cd8b5d710fb43b746a7aa35bd3ca0e4c to your computer and use it in GitHub Desktop.
ansible npm module verbose run log
sweet@beastmode:~/lab$ aplay -i 'hosty-host,' -e ansible_ssh_pass=vagrant -u vagrant npm-install.yml -vvv
ansible-playbook 2.7.2
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/sweet/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
Parsed hosty-host, inventory source with host_list plugin
PLAYBOOK: npm-install.yml **********************************************************************************************
1 plays in npm-install.yml
PLAY [install packages] ************************************************************************************************
META: ran handlers
TASK [install packages based on package.json] **************************************************************************
task path: /home/sweet/ion/rezr/vagrant-ion/lab/npm-install.yml:6
<hosty-host> ESTABLISH SSH CONNECTION FOR USER: vagrant
<hosty-host> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/sweet/.ansible/cp/614ebf1fa9 hosty-host '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
<hosty-host> (0, '/home/vagrant\n', '')
<hosty-host> ESTABLISH SSH CONNECTION FOR USER: vagrant
<hosty-host> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/sweet/.ansible/cp/614ebf1fa9 hosty-host '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016 `" && echo ansible-tmp-1546614602.89-58209708291016="` echo /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016 `" ) && sleep 0'"'"''
<hosty-host> (0, 'ansible-tmp-1546614602.89-58209708291016=/home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/language/npm.py
<hosty-host> PUT /home/sweet/.ansible/tmp/ansible-local-283194ain_J/tmpbOqyh_ TO /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016/AnsiballZ_npm.py
<hosty-host> SSH: EXEC sshpass -d9 scp -C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/sweet/.ansible/cp/614ebf1fa9 /home/sweet/.ansible/tmp/ansible-local-283194ain_J/tmpbOqyh_ '[hosty-host]:/home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016/AnsiballZ_npm.py'
<hosty-host> (0, '', '')
<hosty-host> ESTABLISH SSH CONNECTION FOR USER: vagrant
<hosty-host> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/sweet/.ansible/cp/614ebf1fa9 hosty-host '/bin/sh -c '"'"'chmod u+x /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016/ /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016/AnsiballZ_npm.py && sleep 0'"'"''
<hosty-host> (0, '', '')
<hosty-host> ESTABLISH SSH CONNECTION FOR USER: vagrant
<hosty-host> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/sweet/.ansible/cp/614ebf1fa9 -tt hosty-host '/bin/sh -c '"'"'/usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016/AnsiballZ_npm.py && sleep 0'"'"''
<hosty-host> (0, '\r\n{"invocation": {"module_args": {"executable": null, "name": null, "global": false, "ignore_scripts": false, "state": "present", "production": false, "registry": null, "version": null, "path": "/home/vagrant/projaja/"}}, "changed": false}\r\n', 'Shared connection to hosty-host closed.\r\n')
<hosty-host> ESTABLISH SSH CONNECTION FOR USER: vagrant
<hosty-host> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/sweet/.ansible/cp/614ebf1fa9 hosty-host '/bin/sh -c '"'"'rm -f -r /home/vagrant/.ansible/tmp/ansible-tmp-1546614602.89-58209708291016/ > /dev/null 2>&1 && sleep 0'"'"''
<hosty-host> (0, '', '')
ok: [hosty-host] => {
"changed": false,
"invocation": {
"module_args": {
"executable": null,
"global": false,
"ignore_scripts": false,
"name": null,
"path": "/home/vagrant/projaja/",
"production": false,
"registry": null,
"state": "present",
"version": null
}
}
}
META: ran handlers
META: ran handlers
PLAY RECAP *************************************************************************************************************
hosty-host : ok=1 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment