Skip to content

Instantly share code, notes, and snippets.

@boris-42
Last active June 5, 2018 22:52
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 boris-42/87cdccd6dac08d2f10c810fd9340040b to your computer and use it in GitHub Desktop.
Save boris-42/87cdccd6dac08d2f10c810fd9340040b to your computer and use it in GitHub Desktop.
Identity added: /tmp/awx_95_lbYf3Y/credential_4 (/tmp/awx_95_lbYf3Y/credential_4)
ansible 2.5.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /tmp/awx_95_lbYf3Y/tmp9n_SoB inventory source with script plugin
META: ran handlers
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
<10.4.105.114> ESTABLISH SSH CONNECTION FOR USER: nutanix
<10.4.105.114> SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 10.4.105.114 '/bin/sh -c '"'"'echo ~nutanix && sleep 0'"'"''
<10.4.105.114> (0, '/home/nutanix\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug2: resolving "10.4.105.114" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such fi…
<10.4.105.114> ESTABLISH SSH CONNECTION FOR USER: nutanix
<10.4.105.114> SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 10.4.105.114 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635 `" && echo ansible-tmp-1528201160.95-26343741411635="` echo /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635 `" ) && sleep 0'"'"''
<10.4.105.114> (0, 'ansible-tmp-1528201160.95-26343741411635=/home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug2: resolving "10.4.105.114" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory…
<10.4.105.114> PUT /var/lib/awx/.ansible/tmp/ansible-local-12513T1htpF/tmpmk0hSM TO /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/command.py
<10.4.105.114> SSH: EXEC sftp -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 '[10.4.105.114]'
[WARNING]: sftp transfer mechanism failed on [10.4.105.114]. Use
ANSIBLE_DEBUG=1 to see detailed information
<10.4.105.114> SSH: EXEC scp -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 /var/lib/awx/.ansible/tmp/ansible-local-12513T1htpF/tmpmk0hSM '[10.4.105.114]:/home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/command.py'
<10.4.105.114> (0, '', 'Executing: program /usr/bin/ssh host 10.4.105.114, user (unspecified), command scp -v -t /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/command.py\nOpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug2: resolving "10.4.105.114" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa ty…
<10.4.105.114> ESTABLISH SSH CONNECTION FOR USER: nutanix
<10.4.105.114> SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 10.4.105.114 '/bin/sh -c '"'"'chmod u+x /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/ /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/command.py && sleep 0'"'"''
<10.4.105.114> (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug2: resolving "10.4.105.114" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory…
<10.4.105.114> ESTABLISH SSH CONNECTION FOR USER: nutanix
<10.4.105.114> SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 -tt 10.4.105.114 '/bin/sh -c '"'"'/usr/bin/python /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/command.py && sleep 0'"'"''
<10.4.105.114> (0, '\r\n{"changed": true, "end": "2018-06-05 21:19:21.585597", "stdout": "Filesystem Size Used Avail Use% Mounted on\\n/dev/sdb1 9.8G 7.7G 1.6G 83% /\\ndevtmpfs 16G 0 16G 0% /dev\\ntmpfs 16G 16K 16G 1% /dev/shm\\ntmpfs 16G 844K 16G 1% /run\\ntmpfs 16G 0 16G 0% /sys/fs/cgroup\\n/dev/sdb3 40G 30G 9.2G 77% /home\\ntmpfs 3.2G 0 3.2G 0% /run/user/1000\\n/dev/sdc1 2.5T 2.2G 2.4T 1% /home/nutanix/data/stargate-storage/disks/NFS_15_0_267_4dd58126_d888_41d7_856e_ec0f76ed56d6", "cmd": "df -h", "rc": 0, "start": "2018-06-05 21:19:21.573834", "stderr": "", "delta": "0:00:00.011763", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "df -h", "removes": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /…
<10.4.105.114> ESTABLISH SSH CONNECTION FOR USER: nutanix
<10.4.105.114> SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 10.4.105.114 '/bin/sh -c '"'"'rm -f -r /home/nutanix/.ansible/tmp/ansible-tmp-1528201160.95-26343741411635/ > /dev/null 2>&1 && sleep 0'"'"''
<10.4.105.114> (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug2: resolving "10.4.105.114" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory…
10.4.105.114 | SUCCESS | rc=0 >>
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 9.8G 7.7G 1.6G 83% /
META: ran handlers
META: ran handlers
Identity added: /tmp/awx_92_dFqZiU/credential_4 (/tmp/awx_92_dFqZiU/credential_4)
ansible-playbook 2.5.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /tmp/awx_92_dFqZiU/tmparJ6HX inventory source with script plugin
Loading callback plugin awx_display of type stdout, v2.0 from /usr/lib/python2.7/site-packages/awx/lib/awx_display_callback/module.pyc
PLAYBOOK: df.yml ***************************************************************
1 plays in play/df.yml
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
task path: /var/lib/awx/projects/_8__awx_samples/play/df.yml:2
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
<10.4.105.114> ESTABLISH SSH CONNECTION FOR USER: nutanix
<10.4.105.114> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=nutanix -o ConnectTimeout=10 -o ControlPath=/tmp/awx_92_dFqZiU/cp/7b8653afb2 10.4.105.114 '/bin/sh -c '"'"'echo ~nutanix && sleep 0'"'"''
<10.4.105.114> (255, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/tmp/awx_92_dFqZiU/cp/7b8653afb2" does not exist\r\ndebug2: resolving "10.4.105.114" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file …
fatal: [10.4.105.114]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/tmp/awx_92_dFqZiU/cp/7b8653afb2\" does not exist\r\ndebug2: resolving \"10.4.105.114\" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 10.4.105.114 [10.4.105.114] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: N…
PLAY RECAP *********************************************************************
10.4.105.114 : ok=0 changed=0 unreachable=1 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment