Skip to content

Instantly share code, notes, and snippets.

@Gabelbombe
Created October 23, 2018 14:04
Show Gist options
  • Save Gabelbombe/ee08545fcb8e13d16ca801d1771d7461 to your computer and use it in GitHub Desktop.
Save Gabelbombe/ee08545fcb8e13d16ca801d1771d7461 to your computer and use it in GitHub Desktop.
ansible-playbook 2.6.4
config file = /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/ansible.cfg
configured module search path = [u'/Users/jddaniel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.15 (default, Jul 23 2018, 21:27:06) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
Using /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /usr/local/bin/terraform-inventory inventory source with script plugin
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
PLAYBOOK: jenkins.yml ************************************************************************************************************************************************************************************************************************
1 plays in jenkins.yml
PLAY [Install Jenkins and its plugins] *******************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:4
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/Users/jddaniel/.ansible/cp/8ad97e2f42" does not exist\r\ndebug2: resolving "34.229.40.14" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 34.229.40.14 [34.229.40.14] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9816 ms remain after connect\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins-cert type -1\r\ndebug1: identity file /Users/jddaniel/.ssh/gh_rsa type 0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/jddaniel/.ssh/gh_rsa-cert type -1\r\ndebug1: identity file /Users/jddaniel/.ssh/ge type 0\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/jddaniel/.ssh/ge-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.6\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_6.4\r\ndebug1: match: OpenSSH_6.4 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 34.229.40.14:22 as \'ec2-user\'\r\ndebug3: hostkeys_foreach: reading file "/Users/jddaniel/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/jddaniel/.ssh/known_hosts:20\r\ndebug3: load_hostkeys: loaded 1 keys from 34.229.40.14\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: zlib@openssh.com,zlib,none\r\ndebug2: compression stoc: zlib@openssh.com,zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,ecdsa-sha2-nistp256\r\ndebug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se\r\ndebug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se\r\ndebug2: MACs ctos: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: MACs stoc: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: compression ctos: none,zlib@openssh.com\r\ndebug2: compression stoc: none,zlib@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: ecdh-sha2-nistp256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: zlib@openssh.com\r\ndebug1: kex: client->server cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: zlib@openssh.com\r\ndebug3: send packet: type 30\r\ndebug1: sending SSH2_MSG_KEX_ECDH_INIT\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:iebPfeU+HOrlCA1Li16aTi/blO+HYS80Tcu2ZBBJSas\r\ndebug3: hostkeys_foreach: reading file "/Users/jddaniel/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/jddaniel/.ssh/known_hosts:20\r\ndebug3: load_hostkeys: loaded 1 keys from 34.229.40.14\r\ndebug1: Host \'34.229.40.14\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/jddaniel/.ssh/known_hosts:20\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 4294967296 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey after 4294967296 blocks\r\ndebug2: key: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins (0x0), explicit\r\ndebug2: key: /Users/jddaniel/.ssh/gh_rsa (0x7fb290407d40), explicit\r\ndebug2: key: /Users/jddaniel/.ssh/ge (0x7fb290407930), explicit\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Trying private key: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins\r\ndebug3: sign_and_send_pubkey: RSA SHA256:W2nTMOO1QxHXIL+q6cFsmbLGA08/B58tE8AbBDHM2W0\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 34.229.40.14 ([34.229.40.14]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /Users/jddaniel/.ansible/cp/8ad97e2f42.hA4X7yy7JJWUjPM1\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug1: channel 0: new [/Users/jddaniel/.ansible/cp/8ad97e2f42]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 4\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 82992\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 5\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: process_mux_master_hello: channel 1 slave version 4\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: process_mux_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 108\r\ndebug2: process_mux_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term "xterm-256color", cmd "/bin/sh -c \'echo ~ec2-user && sleep 0\'", env 1\r\ndebug3: process_mux_new_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: process_mux_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'echo ~ec2-user && sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: channel_input_open_confirmation: channel 2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close_read\r\ndebug2: channel 2: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -> drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close_write\r\ndebug2: channel 2: output drain -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: close_read\r\ndebug2: channel 1: input open -> closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n #1 mux-control (t16 nr0 i3/0 o1/16 fd 5/5 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: close_write\r\ndebug2: channel 1: output drain -> closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n #1 mux-control (t16 nr0 i3/0 o3/0 fd 5/5 cc -1)\r\n\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171 `" && echo ansible-tmp-1540303302.73-183098493605171="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303302.73-183098493605171=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/system/setup.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmppM07TD TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/setup.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmppM07TD /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/setup.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmppM07TD\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/setup.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:8 O:131072 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:9 O:163840 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:10 O:196608 S:12999\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 32768 bytes at 131072\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 9 32768 bytes at 163840\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 10 12999 bytes at 196608\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/setup.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-yjqewujnffkylcoxrlwxkdpqiwiwdujo; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_userspace_architecture": "x86_64", "ansible_product_serial": "ec25d6aa-f482-ea7e-450b-01f7c7974744", "ansible_form_factor": "Other", "ansible_user_gecos": "root", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_service_mgr": "systemd", "ansible_user_id": "root", "ansible_selinux_python_present": true, "ansible_userspace_bits": "64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDu1W+C24xHwxXVGGzPvXwD3v7OulpXSJFfi0c+4dO+9mMIYxq5S4L79kNe/f/QcKULG3xm+M6jEyJxyKw6u0yyCcn2WBnLxoj8+qQRCIMdk5RgfB0/UbgpGMpj45L/4K1BYLXXR1Ylr44PHozsni9zaPUkC/gB0Z4hCy+ok8nmtcxULkROIRKmaZvjBkK51Gd0+Py2Kx5M5n/JHpUoTv0P/E0V5rXjYr0/Gzjo69eEOjIb7hZpvYw9emXIw9Ts2apYswJiQ1/gAYt0yZH8/snHRzDFmyRPcdTzrpx4BV2j0Ph3KJkqMpwgKAk4jgzDzfUJ0CLHf5QwTmlvHlhcfaeD", "gather_subset": ["all"], "ansible_architecture": "x86_64", "ansible_local": {}, "ansible_distribution_version": "7.0", "ansible_domain": "ec2.internal", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_user_shell": "/bin/bash", "ansible_virtualization_type": "xen", "ansible_real_user_id": 0, "ansible_processor_cores": 1, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "RedHat", "ansible_dns": {"nameservers": ["172.31.0.2"], "domain": "ec2.internal", "search": ["ec2.internal"]}, "ansible_effective_group_id": 0, "ansible_is_chroot": false, "ansible_bios_version": "4.2.amazon", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz"], "ansible_date_time": {"weekday_number": "2", "iso8601_basic_short": "20181023T100147", "tz": "EDT", "weeknumber": "43", "hour": "10", "year": "2018", "minute": "01", "tz_offset": "-0400", "month": "10", "epoch": "1540303307", "iso8601_micro": "2018-10-23T14:01:47.489664Z", "weekday": "Tuesday", "time": "10:01:47", "date": "2018-10-23", "iso8601": "2018-10-23T14:01:47Z", "day": "23", "iso8601_basic": "20181023T100147489585", "second": "47"}, "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "fcoe_mtu": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_nocache_copy": "off [fixed]", "tx_mpls_segmentation": "off [fixed]", "udp_fragmentation_offload": "on", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 992, "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAFT/bmNMh1e+RJ/bXMyo0pBsxs8rIGyEzb3U6b5HD6gfd7QRlgu9IcmWyeLVA4GMXoBJoswwQuGOQo/hgK2NX0=", "ansible_device_links": {"masters": {}, "labels": {}, "ids": {}, "uuids": {"xvda2": ["668dbd02-c201-44bc-be76-f606fc9ab8db"]}}, "ansible_default_ipv4": {"macaddress": "0e:ac:94:2c:9b:00", "network": "172.31.32.0", "mtu": 9001, "broadcast": "172.31.47.255", "alias": "eth0", "netmask": "255.255.240.0", "address": "172.31.47.27", "interface": "eth0", "type": "ether", "gateway": "172.31.32.1"}, "ansible_swapfree_mb": 0, "ansible_default_ipv6": {}, "ansible_distribution_release": "Maipo", "ansible_system_vendor": "Xen", "ansible_os_family": "RedHat", "ansible_cmdline": {"LANG": "en_US.UTF-8", "console": "tty0", "vconsole.font": "latarcyrheb-sun16", "crashkernel": "auto", "BOOT_IMAGE": "/boot/vmlinuz-3.10.0-123.8.1.el7.x86_64", "ro": true, "root": "UUID=668dbd02-c201-44bc-be76-f606fc9ab8db", "vconsole.keymap": "us"}, "ansible_effective_user_id": 0, "ansible_user_gid": 0, "ansible_selinux": {"status": "enabled", "policyvers": 28, "type": "targeted", "mode": "enforcing", "config_mode": "enforcing"}, "ansible_product_version": "4.2.amazon", "ansible_apparmor": {"status": "disabled"}, "ansible_distribution_file_search_string": "Red Hat", "ansible_product_uuid": "AAD625EC-82F4-7EEA-450B-01F7C7974744", "ansible_system": "Linux", "ansible_pkg_mgr": "yum", "ansible_memfree_mb": 92, "ansible_devices": {"xvda": {"scheduler_mode": "deadline", "rotational": "0", "vendor": null, "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {"xvda1": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sectors": "2048", "start": "2048", "holders": [], "size": "1.00 MB"}, "xvda2": {"sectorsize": 512, "uuid": "668dbd02-c201-44bc-be76-f606fc9ab8db", "links": {"masters": [], "labels": [], "ids": [], "uuids": ["668dbd02-c201-44bc-be76-f606fc9ab8db"]}, "sectors": "12582912", "start": "4096", "holders": [], "size": "6.00 GB"}}, "holders": [], "size": "10.00 GB"}}, "ansible_user_uid": 0, "ansible_memory_mb": {"real": {"total": 992, "used": 900, "free": 92}, "swap": {"cached": 0, "total": 0, "free": 0, "used": 0}, "nocache": {"used": 405, "free": 587}}, "ansible_distribution": "RedHat", "ansible_user_dir": "/root", "ansible_env": {"USERNAME": "root", "LANG": "en_US.UTF-8", "TERM": "xterm-256color", "SHELL": "/bin/bash", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-yjqewujnffkylcoxrlwxkdpqiwiwdujo; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/setup.py", "SHLVL": "1", "SUDO_UID": "1000", "SUDO_GID": "1000", "PWD": "/home/ec2-user", "LOGNAME": "root", "USER": "root", "PATH": "/sbin:/bin:/usr/sbin:/usr/bin", "MAIL": "/var/mail/ec2-user", "SUDO_USER": "ec2-user", "HOME": "/root", "_": "/usr/bin/python"}, "ansible_distribution_major_version": "7", "module_setup": true, "ansible_processor_count": 1, "ansible_hostname": "ip-172-31-47-27", "ansible_processor_vcpus": 1, "ansible_swaptotal_mb": 0, "ansible_lsb": {}, "ansible_real_group_id": 0, "ansible_bios_date": "08/24/2006", "ansible_all_ipv6_addresses": ["fe80::cac:94ff:fe2c:9b00"], "ansible_interfaces": ["lo", "eth0"], "ansible_uptime_seconds": 59952, "ansible_machine_id": "8df22ad8f77c4d84bc36f0456b1fd0d7", "ansible_kernel": "3.10.0-123.8.1.el7.x86_64", "ansible_iscsi_iqn": "", "ansible_system_capabilities_enforced": "False", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 5, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": false, "version_info": [2, 7, 5, "final", 0]}, "ansible_processor_threads_per_core": 1, "ansible_fqdn": "ip-172-31-47-27.ec2.internal", "ansible_mounts": [{"block_used": 405010, "uuid": "668dbd02-c201-44bc-be76-f606fc9ab8db", "size_total": 6431965184, "block_total": 1570304, "mount": "/", "block_available": 1165294, "size_available": 4773044224, "fstype": "xfs", "inode_total": 6291456, "options": "rw,seclabel,relatime,attr2,inode64,noquota", "device": "/dev/xvda2", "inode_used": 34167, "block_size": 4096, "inode_available": 6257289}], "ansible_eth0": {"macaddress": "0e:ac:94:2c:9b:00", "features": {"tx_checksum_ipv4": "on", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off [fixed]", "highdma": "off [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_nocache_copy": "on", "tx_mpls_segmentation": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "pciid": "vif-0", "module": "xen_netfront", "mtu": 9001, "device": "eth0", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "172.31.47.255", "netmask": "255.255.240.0", "network": "172.31.32.0", "address": "172.31.47.27"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::cac:94ff:fe2c:9b00"}], "active": true, "type": "ether", "hw_timestamp_filters": []}, "ansible_nodename": "ip-172-31-47-27.ec2.internal", "ansible_product_name": "HVM domU", "ansible_machine": "x86_64", "ansible_system_capabilities": [], "ansible_all_ipv4_addresses": ["172.31.47.27"], "ansible_python_version": "2.7.5"}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303302.73-183098493605171/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14]
TASK [CA-Certificates update command line execution] *****************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:12
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960 `" && echo ansible-tmp-1540303308.15-4565779045960="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303308.15-4565779045960=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmplGLtfX TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/command.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmplGLtfX /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/command.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmplGLtfX\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/command.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:3696\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 3696 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/command.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lscalyhdtfniimhplqtwmwsjmalfwwux; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/command.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"changed": true, "end": "2018-10-23 10:01:51.372860", "stdout": "", "cmd": ["/bin/update-ca-trust"], "rc": 0, "start": "2018-10-23 10:01:50.510184", "stderr": "", "delta": "0:00:00.862676", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "/bin/update-ca-trust", "removes": null, "argv": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303308.15-4565779045960/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [34.229.40.14] => {
"changed": true,
"cmd": [
"/bin/update-ca-trust"
],
"delta": "0:00:00.862676",
"end": "2018-10-23 10:01:51.372860",
"invocation": {
"module_args": {
"_raw_params": "/bin/update-ca-trust",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"rc": 0,
"start": "2018-10-23 10:01:50.510184",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
META: ran handlers
TASK [geerlingguy.repo-epel : Check if EPEL repo is already configured.] *********************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.repo-epel/tasks/main.yml:2
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136 `" && echo ansible-tmp-1540303311.76-89524537560136="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303311.76-89524537560136=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/stat.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp0KWkIe TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/stat.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp0KWkIe /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/stat.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp0KWkIe\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/stat.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:5480\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 5480 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/stat.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jqrtqigvdidmjnykbylcqemmpxjuxawk; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/stat.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/etc/yum.repos.d/epel.repo", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 0, "exists": true, "attr_flags": "", "woth": false, "isreg": true, "device_type": 0, "mtime": 1506966248.0, "block_size": 4096, "inode": 16819761, "isgid": false, "size": 951, "executable": false, "isuid": false, "readable": true, "version": "363300359", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/plain", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "root", "path": "/etc/yum.repos.d/epel.repo", "xusr": false, "atime": 1540243395.7657504, "isdir": false, "ctime": 1540243390.4416804, "isblk": false, "wgrp": false, "checksum": "6acc53a98eddeaef23b9d47b641030212331b257", "dev": 51714, "roth": true, "isfifo": false, "mode": "0644", "xgrp": false, "rusr": true, "attributes": []}, "changed": false}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303311.76-89524537560136/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"checksum_algorithm": "sha1",
"follow": false,
"get_attributes": true,
"get_checksum": true,
"get_md5": null,
"get_mime": true,
"path": "/etc/yum.repos.d/epel.repo"
}
},
"stat": {
"atime": 1540243395.7657504,
"attr_flags": "",
"attributes": [],
"block_size": 4096,
"blocks": 8,
"charset": "us-ascii",
"checksum": "6acc53a98eddeaef23b9d47b641030212331b257",
"ctime": 1540243390.4416804,
"dev": 51714,
"device_type": 0,
"executable": false,
"exists": true,
"gid": 0,
"gr_name": "root",
"inode": 16819761,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mimetype": "text/plain",
"mode": "0644",
"mtime": 1506966248.0,
"nlink": 1,
"path": "/etc/yum.repos.d/epel.repo",
"pw_name": "root",
"readable": true,
"rgrp": true,
"roth": true,
"rusr": true,
"size": 951,
"uid": 0,
"version": "363300359",
"wgrp": false,
"woth": false,
"writeable": true,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
}
TASK [geerlingguy.repo-epel : Install EPEL repo.] ********************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.repo-epel/tasks/main.yml:6
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.repo-epel : Import EPEL GPG key.] ******************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.repo-epel/tasks/main.yml:16
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : Include OS-specific variables for Fedora or FreeBSD.] ***************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:2
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : Include version-specific variables for CentOS/RHEL.] ****************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:6
ok: [34.229.40.14] => {
"ansible_facts": {
"__java_packages": [
"java-1.8.0-openjdk"
]
},
"ansible_included_var_files": [
"/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/vars/RedHat-7.yml"
],
"changed": false
}
TASK [geerlingguy.java : Include version-specific variables for Ubuntu.] *********************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:12
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : Include version-specific variables for Debian.] *********************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:16
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : Define java_packages.] **********************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:20
ok: [34.229.40.14] => {
"ansible_facts": {
"java_packages": [
"java-1.8.0-openjdk"
]
},
"changed": false
}
TASK [geerlingguy.java : include_tasks] ******************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:26
included: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/setup-RedHat.yml for 34.229.40.14
TASK [geerlingguy.java : Ensure Java is installed.] ******************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/setup-RedHat.yml:2
Running yum
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486 `" && echo ansible-tmp-1540303314.76-14483601078486="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303314.76-14483601078486=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpPYR02k TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/yum.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpPYR02k /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/yum.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpPYR02k\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:3638\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 3638 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/yum.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-nuvvzvlkhjtedbtaukslciowwsqamahu; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/yum.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "invocation": {"module_args": {"allow_downgrade": false, "name": ["java-1.8.0-openjdk"], "bugfix": false, "list": null, "disable_gpg_check": false, "conf_file": null, "install_repoquery": true, "validate_certs": true, "state": "present", "disablerepo": null, "update_cache": false, "disable_plugin": [], "enablerepo": null, "exclude": null, "security": false, "update_only": false, "enable_plugin": [], "installroot": "/", "skip_broken": false}}, "changed": false, "results": ["1:java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64 providing java-1.8.0-openjdk is already installed"], "rc": 0}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303314.76-14483601078486/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => (item=java-1.8.0-openjdk) => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"bugfix": false,
"conf_file": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": null,
"enable_plugin": [],
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"installroot": "/",
"list": null,
"name": [
"java-1.8.0-openjdk"
],
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"update_only": false,
"validate_certs": true
}
},
"item": "java-1.8.0-openjdk",
"msg": "",
"rc": 0,
"results": [
"1:java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64 providing java-1.8.0-openjdk is already installed"
]
}
TASK [geerlingguy.java : include_tasks] ******************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:29
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : include_tasks] ******************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:32
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : Set JAVA_HOME if configured.] ***************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:36
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.java : Check the Java version] *********************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:43
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928 `" && echo ansible-tmp-1540303317.79-189912138526928="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303317.79-189912138526928=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpA81QeR TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/command.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpA81QeR /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/command.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpA81QeR\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/command.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:3691\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 3691 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/command.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-zqtyvtjwiqczrxyvcvncidcsuhiqzkal; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/command.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"changed": true, "end": "2018-10-23 10:02:00.048119", "stdout": "", "cmd": ["java", "-version"], "rc": 0, "start": "2018-10-23 10:01:59.986418", "stderr": "openjdk version \\"1.8.0_191\\"\\nOpenJDK Runtime Environment (build 1.8.0_191-b12)\\nOpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)", "delta": "0:00:00.061701", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "java -version", "removes": null, "argv": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303317.79-189912138526928/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"cmd": [
"java",
"-version"
],
"delta": "0:00:00.061701",
"end": "2018-10-23 10:02:00.048119",
"invocation": {
"module_args": {
"_raw_params": "java -version",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"rc": 0,
"start": "2018-10-23 10:01:59.986418",
"stderr": "openjdk version \"1.8.0_191\"\nOpenJDK Runtime Environment (build 1.8.0_191-b12)\nOpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)",
"stderr_lines": [
"openjdk version \"1.8.0_191\"",
"OpenJDK Runtime Environment (build 1.8.0_191-b12)",
"OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)"
],
"stdout": "",
"stdout_lines": []
}
TASK [geerlingguy.java : Display the Java version.] ******************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.java/tasks/main.yml:48
ok: [34.229.40.14] => {
"java_version": {
"changed": false,
"cmd": [
"java",
"-version"
],
"delta": "0:00:00.061701",
"end": "2018-10-23 10:02:00.048119",
"failed": false,
"rc": 0,
"start": "2018-10-23 10:01:59.986418",
"stderr": "openjdk version \"1.8.0_191\"\nOpenJDK Runtime Environment (build 1.8.0_191-b12)\nOpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)",
"stderr_lines": [
"openjdk version \"1.8.0_191\"",
"OpenJDK Runtime Environment (build 1.8.0_191-b12)",
"OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)"
],
"stdout": "",
"stdout_lines": []
}
}
TASK [geerlingguy.jenkins : Include OS-Specific variables] ***********************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:3
ok: [34.229.40.14] => {
"ansible_facts": {
"__jenkins_pkg_url": "https://pkg.jenkins.io/redhat",
"__jenkins_repo_key_url": "https://pkg.jenkins.io/redhat/jenkins.io.key",
"__jenkins_repo_url": "https://pkg.jenkins.io/redhat/jenkins.repo",
"jenkins_http_port_param": "JENKINS_PORT",
"jenkins_init_file": "/etc/sysconfig/jenkins",
"jenkins_java_options_env_var": "JENKINS_JAVA_OPTIONS"
},
"ansible_included_var_files": [
"/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/vars/RedHat.yml"
],
"changed": false
}
TASK [geerlingguy.jenkins : Define jenkins_repo_url] *****************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:6
ok: [34.229.40.14] => {
"ansible_facts": {
"jenkins_repo_url": "https://pkg.jenkins.io/redhat/jenkins.repo"
},
"changed": false
}
TASK [geerlingguy.jenkins : Define jenkins_repo_key_url] *************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:11
ok: [34.229.40.14] => {
"ansible_facts": {
"jenkins_repo_key_url": "https://pkg.jenkins.io/redhat/jenkins.io.key"
},
"changed": false
}
TASK [geerlingguy.jenkins : Define jenkins_pkg_url] ******************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:16
ok: [34.229.40.14] => {
"ansible_facts": {
"jenkins_pkg_url": "https://pkg.jenkins.io/redhat"
},
"changed": false
}
TASK [geerlingguy.jenkins : include_tasks] ***************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:22
included: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml for 34.229.40.14
TASK [geerlingguy.jenkins : Ensure dependencies are installed.] ******************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:2
Running yum
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802 `" && echo ansible-tmp-1540303321.29-276029345482802="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303321.29-276029345482802=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp04UoAI TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/yum.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp04UoAI /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/yum.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp04UoAI\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:3662\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 3662 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/yum.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-xjpwlhfbnjydhxmcjakxheeoqgbunnnb; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/yum.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "invocation": {"module_args": {"allow_downgrade": false, "name": ["curl", "libselinux-python", "initscripts"], "bugfix": false, "list": null, "disable_gpg_check": false, "conf_file": null, "install_repoquery": true, "validate_certs": true, "state": "present", "disablerepo": null, "update_cache": false, "disable_plugin": [], "enablerepo": null, "exclude": null, "security": false, "update_only": false, "enable_plugin": [], "installroot": "/", "skip_broken": false}}, "changed": false, "results": ["curl-7.29.0-19.el7.x86_64 providing curl is already installed", "libselinux-python-2.2.2-6.el7.x86_64 providing libselinux-python is already installed", "initscripts-9.49.17-1.el7_0.1.x86_64 providing initscripts is already installed"], "rc": 0}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303321.29-276029345482802/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"bugfix": false,
"conf_file": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": null,
"enable_plugin": [],
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"installroot": "/",
"list": null,
"name": [
"curl",
"libselinux-python",
"initscripts"
],
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"update_only": false,
"validate_certs": true
}
},
"msg": "",
"rc": 0,
"results": [
"curl-7.29.0-19.el7.x86_64 providing curl is already installed",
"libselinux-python-2.2.2-6.el7.x86_64 providing libselinux-python is already installed",
"initscripts-9.49.17-1.el7_0.1.x86_64 providing initscripts is already installed"
]
}
TASK [geerlingguy.jenkins : Ensure Jenkins repo is installed.] *******************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:10
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965 `" && echo ansible-tmp-1540303324.32-191930914092965="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303324.32-191930914092965=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/net_tools/basics/get_url.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp89iqIQ TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/get_url.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp89iqIQ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/get_url.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp89iqIQ\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/get_url.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:26030\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 26030 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/get_url.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jdewiyqbfmnoygypsvsbglvlexcjyejg; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/get_url.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"group": "root", "uid": 0, "url": "https://pkg.jenkins.io/redhat/jenkins.repo", "changed": false, "dest": "/etc/yum.repos.d/jenkins.repo", "state": "file", "gid": 0, "secontext": "system_u:object_r:system_conf_t:s0", "mode": "0644", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "owner": null, "follow": false, "client_key": null, "group": null, "use_proxy": true, "unsafe_writes": null, "serole": null, "content": null, "validate_certs": true, "setype": null, "client_cert": null, "timeout": 10, "url_password": null, "dest": "/etc/yum.repos.d/jenkins.repo", "selevel": null, "force_basic_auth": false, "sha256sum": "", "http_agent": "ansible-httpget", "regexp": null, "src": null, "url": "https://pkg.jenkins.io/redhat/jenkins.repo", "checksum": "", "seuser": null, "headers": null, "delimiter": null, "mode": null, "url_username": null, "attributes": null, "backup": null, "tmp_dest": null}}, "owner": "root", "size": 71, "msg": "HTTP Error 304: Not Modified"}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303324.32-191930914092965/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"dest": "/etc/yum.repos.d/jenkins.repo",
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"attributes": null,
"backup": null,
"checksum": "",
"client_cert": null,
"client_key": null,
"content": null,
"delimiter": null,
"dest": "/etc/yum.repos.d/jenkins.repo",
"directory_mode": null,
"follow": false,
"force": false,
"force_basic_auth": false,
"group": null,
"headers": null,
"http_agent": "ansible-httpget",
"mode": null,
"owner": null,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"sha256sum": "",
"src": null,
"timeout": 10,
"tmp_dest": null,
"unsafe_writes": null,
"url": "https://pkg.jenkins.io/redhat/jenkins.repo",
"url_password": null,
"url_username": null,
"use_proxy": true,
"validate_certs": true
}
},
"mode": "0644",
"msg": "HTTP Error 304: Not Modified",
"owner": "root",
"secontext": "system_u:object_r:system_conf_t:s0",
"size": 71,
"state": "file",
"uid": 0,
"url": "https://pkg.jenkins.io/redhat/jenkins.repo"
}
TASK [geerlingguy.jenkins : Add Jenkins repo GPG key.] ***************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:16
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875 `" && echo ansible-tmp-1540303327.44-265761172852875="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303327.44-265761172852875=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/os/rpm_key.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp7jJvyV TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/rpm_key.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp7jJvyV /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/rpm_key.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp7jJvyV\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/rpm_key.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:20899\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 20899 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/rpm_key.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bmjbfannrinhxtbyswepuqxlcwnmoumq; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/rpm_key.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"invocation": {"module_args": {"state": "present", "validate_certs": true, "key": "https://pkg.jenkins.io/redhat/jenkins.io.key"}}, "changed": false}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303327.44-265761172852875/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"key": "https://pkg.jenkins.io/redhat/jenkins.io.key",
"state": "present",
"validate_certs": true
}
}
}
TASK [geerlingguy.jenkins : Download specific Jenkins version.] ******************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:21
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : Check if we downloaded a specific version of Jenkins.] ***********************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:27
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : Install our specific version of Jenkins.] ************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:33
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : Ensure Jenkins is installed.] ************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/setup-RedHat.yml:40
Running yum
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907 `" && echo ansible-tmp-1540303331.84-276085706869907="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303331.84-276085706869907=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpwLRpQz TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/yum.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpwLRpQz /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/yum.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpwLRpQz\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:3628\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 3628 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/yum.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-gubikufymejznzjbvjcwlhhvbigzesrf; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/yum.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "invocation": {"module_args": {"allow_downgrade": false, "name": ["jenkins"], "bugfix": false, "list": null, "disable_gpg_check": false, "conf_file": null, "install_repoquery": true, "validate_certs": true, "state": "present", "disablerepo": null, "update_cache": false, "disable_plugin": [], "enablerepo": null, "exclude": null, "security": false, "update_only": false, "enable_plugin": [], "installroot": "/", "skip_broken": false}}, "changed": false, "results": ["jenkins-2.148-1.1.noarch providing jenkins is already installed"], "rc": 0}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303331.84-276085706869907/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"bugfix": false,
"conf_file": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": null,
"enable_plugin": [],
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"installroot": "/",
"list": null,
"name": [
"jenkins"
],
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"update_only": false,
"validate_certs": true
}
},
"msg": "",
"rc": 0,
"results": [
"jenkins-2.148-1.1.noarch providing jenkins is already installed"
]
}
TASK [geerlingguy.jenkins : include_tasks] ***************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:25
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : include_tasks] ***************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:29
included: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml for 34.229.40.14
TASK [geerlingguy.jenkins : Check if jenkins_init_file exists.] ******************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:2
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429 `" && echo ansible-tmp-1540303334.61-19832917230429="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303334.61-19832917230429=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/stat.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpzGLRyc TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/stat.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpzGLRyc /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/stat.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpzGLRyc\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/stat.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:5476\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 5476 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/stat.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-sopaxkwqadtkrzafnsmyhcwzpmdpdfhj; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/stat.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/etc/sysconfig/jenkins", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 0, "exists": true, "attr_flags": "", "woth": false, "isreg": true, "device_type": 0, "mtime": 1540243484.0601997, "block_size": 4096, "inode": 16827672, "isgid": false, "size": 3235, "executable": false, "isuid": false, "readable": true, "version": "18446744071660392319", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/plain", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": false, "gr_name": "root", "path": "/etc/sysconfig/jenkins", "xusr": false, "atime": 1540243500.4964855, "isdir": false, "ctime": 1540243484.0611997, "isblk": false, "wgrp": false, "checksum": "cb69458c6fc08ad3c243f43ade3f8d261c90c0d9", "dev": 51714, "roth": false, "isfifo": false, "mode": "0600", "xgrp": false, "rusr": true, "attributes": []}, "changed": false}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303334.61-19832917230429/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"checksum_algorithm": "sha1",
"follow": false,
"get_attributes": true,
"get_checksum": true,
"get_md5": null,
"get_mime": true,
"path": "/etc/sysconfig/jenkins"
}
},
"stat": {
"atime": 1540243500.4964855,
"attr_flags": "",
"attributes": [],
"block_size": 4096,
"blocks": 8,
"charset": "us-ascii",
"checksum": "cb69458c6fc08ad3c243f43ade3f8d261c90c0d9",
"ctime": 1540243484.0611997,
"dev": 51714,
"device_type": 0,
"executable": false,
"exists": true,
"gid": 0,
"gr_name": "root",
"inode": 16827672,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mimetype": "text/plain",
"mode": "0600",
"mtime": 1540243484.0601997,
"nlink": 1,
"path": "/etc/sysconfig/jenkins",
"pw_name": "root",
"readable": true,
"rgrp": false,
"roth": false,
"rusr": true,
"size": 3235,
"uid": 0,
"version": "18446744071660392319",
"wgrp": false,
"woth": false,
"writeable": true,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
}
TASK [geerlingguy.jenkins : Ensure jenkins_init_file exists.] ********************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:7
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : Modify variables in init file.] **********************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:13
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164 `" && echo ansible-tmp-1540303337.39-84636772046164="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303337.39-84636772046164=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/lineinfile.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpOGUerU TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/lineinfile.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpOGUerU /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/lineinfile.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpOGUerU\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/lineinfile.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:6344\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 6344 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/lineinfile.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qqfnrbqnxshatprkvaxfybcfqwpcupmw; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/lineinfile.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "diff": [{"after": "", "before_header": "/etc/sysconfig/jenkins (content)", "after_header": "/etc/sysconfig/jenkins (content)", "before": ""}, {"before_header": "/etc/sysconfig/jenkins (file attributes)", "after_header": "/etc/sysconfig/jenkins (file attributes)"}], "changed": false, "backup": "", "invocation": {"module_args": {"directory_mode": null, "force": null, "remote_src": null, "backrefs": false, "owner": null, "path": "/etc/sysconfig/jenkins", "insertafter": "^JENKINS_ARGS=", "follow": false, "validate": null, "group": null, "insertbefore": null, "unsafe_writes": null, "create": false, "setype": null, "content": null, "serole": null, "state": "present", "dest": "/etc/sysconfig/jenkins", "selevel": null, "regexp": "^JENKINS_ARGS=\\\\\\"\\\\$JENKINS_ARGS ", "line": "JENKINS_ARGS=\\"$JENKINS_ARGS --prefix=\\"", "src": null, "seuser": null, "delimiter": null, "mode": null, "firstmatch": false, "attributes": null, "backup": false}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303337.39-84636772046164/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => (item={u'option': u'JENKINS_ARGS', u'value': u'--prefix='}) => {
"backup": "",
"changed": false,
"diff": [
{
"after": "",
"after_header": "/etc/sysconfig/jenkins (content)",
"before": "",
"before_header": "/etc/sysconfig/jenkins (content)"
},
{
"after_header": "/etc/sysconfig/jenkins (file attributes)",
"before_header": "/etc/sysconfig/jenkins (file attributes)"
}
],
"invocation": {
"module_args": {
"attributes": null,
"backrefs": false,
"backup": false,
"content": null,
"create": false,
"delimiter": null,
"dest": "/etc/sysconfig/jenkins",
"directory_mode": null,
"firstmatch": false,
"follow": false,
"force": null,
"group": null,
"insertafter": "^JENKINS_ARGS=",
"insertbefore": null,
"line": "JENKINS_ARGS=\"$JENKINS_ARGS --prefix=\"",
"mode": null,
"owner": null,
"path": "/etc/sysconfig/jenkins",
"regexp": "^JENKINS_ARGS=\\\"\\$JENKINS_ARGS ",
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "present",
"unsafe_writes": null,
"validate": null
}
},
"item": {
"option": "JENKINS_ARGS",
"value": "--prefix="
},
"msg": ""
}
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408 `" && echo ansible-tmp-1540303339.64-235865620714408="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303339.64-235865620714408=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/lineinfile.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpWyya6B TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/lineinfile.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpWyya6B /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/lineinfile.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpWyya6B\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/lineinfile.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:6414\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 6414 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/lineinfile.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lwxiywoxektaagylpcamlqzylqdqwntg; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/lineinfile.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "diff": [{"after": "", "before_header": "/etc/sysconfig/jenkins (content)", "after_header": "/etc/sysconfig/jenkins (content)", "before": ""}, {"before_header": "/etc/sysconfig/jenkins (file attributes)", "after_header": "/etc/sysconfig/jenkins (file attributes)"}], "changed": false, "backup": "", "invocation": {"module_args": {"directory_mode": null, "force": null, "remote_src": null, "backrefs": false, "owner": null, "path": "/etc/sysconfig/jenkins", "insertafter": "^JENKINS_JAVA_OPTIONS=", "follow": false, "validate": null, "group": null, "insertbefore": null, "unsafe_writes": null, "create": false, "setype": null, "content": null, "serole": null, "state": "present", "dest": "/etc/sysconfig/jenkins", "selevel": null, "regexp": "^JENKINS_JAVA_OPTIONS=\\\\\\"\\\\$JENKINS_JAVA_OPTIONS ", "line": "JENKINS_JAVA_OPTIONS=\\"$JENKINS_JAVA_OPTIONS -Djenkins.install.runSetupWizard=false\\"", "src": null, "seuser": null, "delimiter": null, "mode": null, "firstmatch": false, "attributes": null, "backup": false}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303339.64-235865620714408/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => (item={u'option': u'JENKINS_JAVA_OPTIONS', u'value': u'-Djenkins.install.runSetupWizard=false'}) => {
"backup": "",
"changed": false,
"diff": [
{
"after": "",
"after_header": "/etc/sysconfig/jenkins (content)",
"before": "",
"before_header": "/etc/sysconfig/jenkins (content)"
},
{
"after_header": "/etc/sysconfig/jenkins (file attributes)",
"before_header": "/etc/sysconfig/jenkins (file attributes)"
}
],
"invocation": {
"module_args": {
"attributes": null,
"backrefs": false,
"backup": false,
"content": null,
"create": false,
"delimiter": null,
"dest": "/etc/sysconfig/jenkins",
"directory_mode": null,
"firstmatch": false,
"follow": false,
"force": null,
"group": null,
"insertafter": "^JENKINS_JAVA_OPTIONS=",
"insertbefore": null,
"line": "JENKINS_JAVA_OPTIONS=\"$JENKINS_JAVA_OPTIONS -Djenkins.install.runSetupWizard=false\"",
"mode": null,
"owner": null,
"path": "/etc/sysconfig/jenkins",
"regexp": "^JENKINS_JAVA_OPTIONS=\\\"\\$JENKINS_JAVA_OPTIONS ",
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "present",
"unsafe_writes": null,
"validate": null
}
},
"item": {
"option": "JENKINS_JAVA_OPTIONS",
"value": "-Djenkins.install.runSetupWizard=false"
},
"msg": ""
}
TASK [geerlingguy.jenkins : Set the Jenkins home directory.] *********************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:23
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375 `" && echo ansible-tmp-1540303342.49-74277413263375="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303342.49-74277413263375=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/lineinfile.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp1J_UBS TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/lineinfile.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp1J_UBS /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/lineinfile.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp1J_UBS\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/lineinfile.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:6255\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 6255 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/lineinfile.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dutriegmanjyismvizjuineoyiuqyudj; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/lineinfile.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "diff": [{"after": "", "before_header": "/etc/sysconfig/jenkins (content)", "after_header": "/etc/sysconfig/jenkins (content)", "before": ""}, {"before_header": "/etc/sysconfig/jenkins (file attributes)", "after_header": "/etc/sysconfig/jenkins (file attributes)"}], "changed": false, "backup": "", "invocation": {"module_args": {"directory_mode": null, "force": null, "remote_src": null, "backrefs": false, "insertafter": null, "path": "/etc/sysconfig/jenkins", "owner": null, "follow": false, "line": "JENKINS_HOME=/var/lib/jenkins", "group": null, "insertbefore": null, "unsafe_writes": null, "create": false, "state": "present", "content": null, "serole": null, "setype": null, "dest": "/etc/sysconfig/jenkins", "selevel": null, "regexp": "^JENKINS_HOME=.*", "validate": null, "src": null, "seuser": null, "delimiter": null, "mode": null, "firstmatch": false, "attributes": null, "backup": false}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303342.49-74277413263375/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"backup": "",
"changed": false,
"diff": [
{
"after": "",
"after_header": "/etc/sysconfig/jenkins (content)",
"before": "",
"before_header": "/etc/sysconfig/jenkins (content)"
},
{
"after_header": "/etc/sysconfig/jenkins (file attributes)",
"before_header": "/etc/sysconfig/jenkins (file attributes)"
}
],
"invocation": {
"module_args": {
"attributes": null,
"backrefs": false,
"backup": false,
"content": null,
"create": false,
"delimiter": null,
"dest": "/etc/sysconfig/jenkins",
"directory_mode": null,
"firstmatch": false,
"follow": false,
"force": null,
"group": null,
"insertafter": null,
"insertbefore": null,
"line": "JENKINS_HOME=/var/lib/jenkins",
"mode": null,
"owner": null,
"path": "/etc/sysconfig/jenkins",
"regexp": "^JENKINS_HOME=.*",
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "present",
"unsafe_writes": null,
"validate": null
}
},
"msg": ""
}
TASK [geerlingguy.jenkins : Immediately restart Jenkins on init config changes.] *************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:30
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : Set HTTP port in Jenkins config.] ********************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:34
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864 `" && echo ansible-tmp-1540303345.25-179016322364864="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303345.25-179016322364864=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/lineinfile.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp4S4pfh TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/lineinfile.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp4S4pfh /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/lineinfile.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp4S4pfh\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/lineinfile.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:6260\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 6260 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/lineinfile.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-mkpkynxphkbaukabpyscncxgftjjlurn; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/lineinfile.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "diff": [{"after": "", "before_header": "/etc/sysconfig/jenkins (content)", "after_header": "/etc/sysconfig/jenkins (content)", "before": ""}, {"before_header": "/etc/sysconfig/jenkins (file attributes)", "after_header": "/etc/sysconfig/jenkins (file attributes)"}], "changed": false, "backup": "", "invocation": {"module_args": {"directory_mode": null, "force": null, "remote_src": null, "backrefs": true, "owner": null, "path": "/etc/sysconfig/jenkins", "insertafter": null, "follow": false, "validate": null, "group": null, "insertbefore": null, "unsafe_writes": null, "create": false, "setype": null, "content": null, "serole": null, "state": "present", "dest": "/etc/sysconfig/jenkins", "selevel": null, "regexp": "^JENKINS_PORT=", "line": "JENKINS_PORT=8080", "src": null, "seuser": null, "delimiter": null, "mode": null, "firstmatch": false, "attributes": null, "backup": false}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303345.25-179016322364864/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"backup": "",
"changed": false,
"diff": [
{
"after": "",
"after_header": "/etc/sysconfig/jenkins (content)",
"before": "",
"before_header": "/etc/sysconfig/jenkins (content)"
},
{
"after_header": "/etc/sysconfig/jenkins (file attributes)",
"before_header": "/etc/sysconfig/jenkins (file attributes)"
}
],
"invocation": {
"module_args": {
"attributes": null,
"backrefs": true,
"backup": false,
"content": null,
"create": false,
"delimiter": null,
"dest": "/etc/sysconfig/jenkins",
"directory_mode": null,
"firstmatch": false,
"follow": false,
"force": null,
"group": null,
"insertafter": null,
"insertbefore": null,
"line": "JENKINS_PORT=8080",
"mode": null,
"owner": null,
"path": "/etc/sysconfig/jenkins",
"regexp": "^JENKINS_PORT=",
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "present",
"unsafe_writes": null,
"validate": null
}
},
"msg": ""
}
TASK [geerlingguy.jenkins : Ensure jenkins_home /var/lib/jenkins exists] *********************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:42
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653 `" && echo ansible-tmp-1540303347.74-269079028669653="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303347.74-269079028669653=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/file.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpjpYcHu TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/file.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpjpYcHu /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/file.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpjpYcHu\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:8654\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 8654 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/file.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bbtjxgxmkygfvieqapuddsxrzumwbomu; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/file.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"group": "jenkins", "uid": 997, "changed": false, "owner": "jenkins", "state": "directory", "gid": 995, "secontext": "system_u:object_r:var_lib_t:s0", "mode": "0755", "path": "/var/lib/jenkins", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/var/lib/jenkins", "owner": "jenkins", "follow": true, "group": "jenkins", "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "setype": null, "selevel": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": "u+rwx", "attributes": null, "backup": null}}, "diff": {"after": {"path": "/var/lib/jenkins"}, "before": {"path": "/var/lib/jenkins"}}, "size": 4096}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303347.74-269079028669653/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"diff": {
"after": {
"path": "/var/lib/jenkins"
},
"before": {
"path": "/var/lib/jenkins"
}
},
"gid": 995,
"group": "jenkins",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": "jenkins",
"mode": "u+rwx",
"owner": "jenkins",
"path": "/var/lib/jenkins",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null
}
},
"mode": "0755",
"owner": "jenkins",
"path": "/var/lib/jenkins",
"secontext": "system_u:object_r:var_lib_t:s0",
"size": 4096,
"state": "directory",
"uid": 997
}
TASK [geerlingguy.jenkins : Create custom init scripts directory.] ***************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:51
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405 `" && echo ansible-tmp-1540303350.31-241383137712405="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303350.31-241383137712405=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/file.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpkkfN2W TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/file.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpkkfN2W /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/file.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpkkfN2W\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:8648\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 8648 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/file.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dhyluxzbhddwplncjosabolownqajavh; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/file.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"group": "jenkins", "uid": 997, "changed": false, "owner": "jenkins", "state": "directory", "gid": 995, "secontext": "unconfined_u:object_r:var_lib_t:s0", "mode": "0775", "path": "/var/lib/jenkins/init.groovy.d", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/var/lib/jenkins/init.groovy.d", "owner": "jenkins", "follow": true, "group": "jenkins", "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "setype": null, "selevel": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": 509, "attributes": null, "backup": null}}, "diff": {"after": {"path": "/var/lib/jenkins/init.groovy.d"}, "before": {"path": "/var/lib/jenkins/init.groovy.d"}}, "size": 6}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303350.31-241383137712405/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"diff": {
"after": {
"path": "/var/lib/jenkins/init.groovy.d"
},
"before": {
"path": "/var/lib/jenkins/init.groovy.d"
}
},
"gid": 995,
"group": "jenkins",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": "jenkins",
"mode": 509,
"owner": "jenkins",
"path": "/var/lib/jenkins/init.groovy.d",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null
}
},
"mode": "0775",
"owner": "jenkins",
"path": "/var/lib/jenkins/init.groovy.d",
"secontext": "unconfined_u:object_r:var_lib_t:s0",
"size": 6,
"state": "directory",
"uid": 997
}
META: ran handlers
TASK [geerlingguy.jenkins : Immediately restart Jenkins on http or user changes.] ************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/settings.yml:62
skipping: [34.229.40.14] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [geerlingguy.jenkins : Ensure Jenkins is started and runs on startup.] ******************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:32
Running systemd
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252 `" && echo ansible-tmp-1540303352.58-93170051201252="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303352.58-93170051201252=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/system/systemd.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp5bW6mF TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/systemd.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp5bW6mF /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/systemd.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp5bW6mF\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/systemd.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:11177\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 11177 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/systemd.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-krpudhennkhidqtrtxxipcuonxlkghms; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/systemd.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"status": {"ExecStart": "{ path=/etc/rc.d/init.d/jenkins ; argv[]=/etc/rc.d/init.d/jenkins start ; ignore_errors=no ; start_time=[Mon 2018-10-22 17:25:01 EDT] ; stop_time=[Mon 2018-10-22 17:25:02 EDT] ; pid=2201 ; code=exited ; status=0 }", "TimeoutStopUSec": "5min", "ControlGroup": "/system.slice/jenkins.service", "GuessMainPID": "no", "ActiveExitTimestamp": "Mon 2018-10-22 17:25:00 EDT", "ExecMainCode": "0", "ExecMainPID": "0", "LimitSIGPENDING": "7788", "Wants": "system.slice", "LoadState": "loaded", "ConditionTimestampMonotonic": "146297445", "StartLimitInterval": "10000000", "WatchdogTimestampMonotonic": "0", "LimitSTACK": "18446744073709551615", "ActiveEnterTimestampMonotonic": "147216277", "AllowIsolate": "no", "IgnoreOnSnapshot": "no", "CanIsolate": "no", "CPUSchedulingPriority": "0", "KillSignal": "15", "LimitFSIZE": "18446744073709551615", "IgnoreOnIsolate": "no", "LimitCPU": "18446744073709551615", "ActiveEnterTimestamp": "Mon 2018-10-22 17:25:02 EDT", "MemoryLimit": "18446744073709551615", "CanStart": "yes", "Before": "shutdown.target multi-user.target graphical.target", "LimitAS": "18446744073709551615", "RootDirectoryStartOnly": "no", "InactiveExitTimestampMonotonic": "146297822", "SendSIGHUP": "no", "TimeoutStartUSec": "5min", "Type": "forking", "SyslogPriority": "30", "SameProcessGroup": "no", "LimitNPROC": "7788", "SourcePath": "/etc/rc.d/init.d/jenkins", "UMask": "0022", "NonBlocking": "no", "InactiveEnterTimestampMonotonic": "146297283", "RefuseManualStop": "no", "CapabilityBoundingSet": "18446744073709551615", "TTYReset": "no", "OOMScoreAdjust": "0", "RefuseManualStart": "no", "KillMode": "process", "SyslogLevelPrefix": "yes", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "ExecReload": "{ path=/etc/rc.d/init.d/jenkins ; argv[]=/etc/rc.d/init.d/jenkins reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/etc/rc.d/init.d/jenkins ; argv[]=/etc/rc.d/init.d/jenkins stop ; ignore_errors=no ; start_time=[Mon 2018-10-22 17:25:00 EDT] ; stop_time=[Mon 2018-10-22 17:25:01 EDT] ; pid=2191 ; code=exited ; status=0 }", "SecureBits": "0", "LimitCORE": "18446744073709551615", "JobTimeoutUSec": "0", "SubState": "running", "CPUSchedulingResetOnFork": "no", "Result": "success", "CPUShares": "1024", "ConditionResult": "yes", "TTYVTDisallocate": "no", "MainPID": "0", "InactiveExitTimestamp": "Mon 2018-10-22 17:25:01 EDT", "WatchdogUSec": "0", "ActiveState": "active", "Nice": "0", "LimitDATA": "18446744073709551615", "LimitRTTIME": "18446744073709551615", "WantedBy": "multi-user.target graphical.target", "RestartUSec": "100ms", "Transient": "no", "CPUAccounting": "no", "CPUSchedulingPolicy": "0", "PrivateNetwork": "no", "Restart": "no", "RemainAfterExit": "yes", "LimitNOFILE": "4096", "CanReload": "yes", "StartLimitBurst": "5", "NeedDaemonReload": "no", "TTYVHangup": "no", "InactiveEnterTimestamp": "Mon 2018-10-22 17:25:01 EDT", "StandardInput": "null", "DefaultDependencies": "yes", "Requires": "basic.target", "ExecMainStatus": "0", "LimitMEMLOCK": "65536", "StopWhenUnneeded": "no", "LimitMSGQUEUE": "819200", "Slice": "system.slice", "ExecMainExitTimestampMonotonic": "0", "NotifyAccess": "none", "PermissionsStartOnly": "no", "BlockIOAccounting": "no", "CanStop": "yes", "PrivateTmp": "no", "NoNewPrivileges": "no", "LimitLOCKS": "18446744073709551615", "ExecMainStartTimestampMonotonic": "0", "TimerSlackNSec": "50000", "LimitNICE": "0", "After": "remote-fs.target network.target time-sync.target nss-lookup.target sendmail.service systemd-journald.socket basic.target system.slice rh-cloud-firstboot.service netconsole.service", "StartLimitAction": "none", "Conflicts": "shutdown.target", "ConditionTimestamp": "Mon 2018-10-22 17:25:01 EDT", "OnFailureIsolate": "no", "StandardOutput": "journal", "MountFlags": "0", "DevicePolicy": "auto", "StandardError": "inherit", "SendSIGKILL": "yes", "MemoryAccounting": "no", "IgnoreSIGPIPE": "no", "IOScheduling": "0", "Description": "LSB: Jenkins Automation Server", "ActiveExitTimestampMonotonic": "145193202", "BlockIOWeight": "1000", "Names": "jenkins.service", "ControlPID": "0", "Id": "jenkins.service"}, "name": "jenkins", "changed": false, "enabled": true, "state": "started", "invocation": {"module_args": {"no_block": false, "force": null, "name": "jenkins", "enabled": true, "daemon_reload": false, "state": "started", "user": false, "masked": null}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303352.58-93170051201252/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"enabled": true,
"invocation": {
"module_args": {
"daemon_reload": false,
"enabled": true,
"force": null,
"masked": null,
"name": "jenkins",
"no_block": false,
"state": "started",
"user": false
}
},
"name": "jenkins",
"state": "started",
"status": {
"ActiveEnterTimestamp": "Mon 2018-10-22 17:25:02 EDT",
"ActiveEnterTimestampMonotonic": "147216277",
"ActiveExitTimestamp": "Mon 2018-10-22 17:25:00 EDT",
"ActiveExitTimestampMonotonic": "145193202",
"ActiveState": "active",
"After": "remote-fs.target network.target time-sync.target nss-lookup.target sendmail.service systemd-journald.socket basic.target system.slice rh-cloud-firstboot.service netconsole.service",
"AllowIsolate": "no",
"Before": "shutdown.target multi-user.target graphical.target",
"BlockIOAccounting": "no",
"BlockIOWeight": "1000",
"CPUAccounting": "no",
"CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no",
"CPUShares": "1024",
"CanIsolate": "no",
"CanReload": "yes",
"CanStart": "yes",
"CanStop": "yes",
"CapabilityBoundingSet": "18446744073709551615",
"ConditionResult": "yes",
"ConditionTimestamp": "Mon 2018-10-22 17:25:01 EDT",
"ConditionTimestampMonotonic": "146297445",
"Conflicts": "shutdown.target",
"ControlGroup": "/system.slice/jenkins.service",
"ControlPID": "0",
"DefaultDependencies": "yes",
"Description": "LSB: Jenkins Automation Server",
"DevicePolicy": "auto",
"ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "0",
"ExecMainStartTimestampMonotonic": "0",
"ExecMainStatus": "0",
"ExecReload": "{ path=/etc/rc.d/init.d/jenkins ; argv[]=/etc/rc.d/init.d/jenkins reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStart": "{ path=/etc/rc.d/init.d/jenkins ; argv[]=/etc/rc.d/init.d/jenkins start ; ignore_errors=no ; start_time=[Mon 2018-10-22 17:25:01 EDT] ; stop_time=[Mon 2018-10-22 17:25:02 EDT] ; pid=2201 ; code=exited ; status=0 }",
"ExecStop": "{ path=/etc/rc.d/init.d/jenkins ; argv[]=/etc/rc.d/init.d/jenkins stop ; ignore_errors=no ; start_time=[Mon 2018-10-22 17:25:00 EDT] ; stop_time=[Mon 2018-10-22 17:25:01 EDT] ; pid=2191 ; code=exited ; status=0 }",
"GuessMainPID": "no",
"IOScheduling": "0",
"Id": "jenkins.service",
"IgnoreOnIsolate": "no",
"IgnoreOnSnapshot": "no",
"IgnoreSIGPIPE": "no",
"InactiveEnterTimestamp": "Mon 2018-10-22 17:25:01 EDT",
"InactiveEnterTimestampMonotonic": "146297283",
"InactiveExitTimestamp": "Mon 2018-10-22 17:25:01 EDT",
"InactiveExitTimestampMonotonic": "146297822",
"JobTimeoutUSec": "0",
"KillMode": "process",
"KillSignal": "15",
"LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615",
"LimitCPU": "18446744073709551615",
"LimitDATA": "18446744073709551615",
"LimitFSIZE": "18446744073709551615",
"LimitLOCKS": "18446744073709551615",
"LimitMEMLOCK": "65536",
"LimitMSGQUEUE": "819200",
"LimitNICE": "0",
"LimitNOFILE": "4096",
"LimitNPROC": "7788",
"LimitRSS": "18446744073709551615",
"LimitRTPRIO": "0",
"LimitRTTIME": "18446744073709551615",
"LimitSIGPENDING": "7788",
"LimitSTACK": "18446744073709551615",
"LoadState": "loaded",
"MainPID": "0",
"MemoryAccounting": "no",
"MemoryLimit": "18446744073709551615",
"MountFlags": "0",
"Names": "jenkins.service",
"NeedDaemonReload": "no",
"Nice": "0",
"NoNewPrivileges": "no",
"NonBlocking": "no",
"NotifyAccess": "none",
"OOMScoreAdjust": "0",
"OnFailureIsolate": "no",
"PermissionsStartOnly": "no",
"PrivateNetwork": "no",
"PrivateTmp": "no",
"RefuseManualStart": "no",
"RefuseManualStop": "no",
"RemainAfterExit": "yes",
"Requires": "basic.target",
"Restart": "no",
"RestartUSec": "100ms",
"Result": "success",
"RootDirectoryStartOnly": "no",
"SameProcessGroup": "no",
"SecureBits": "0",
"SendSIGHUP": "no",
"SendSIGKILL": "yes",
"Slice": "system.slice",
"SourcePath": "/etc/rc.d/init.d/jenkins",
"StandardError": "inherit",
"StandardInput": "null",
"StandardOutput": "journal",
"StartLimitAction": "none",
"StartLimitBurst": "5",
"StartLimitInterval": "10000000",
"StopWhenUnneeded": "no",
"SubState": "running",
"SyslogLevelPrefix": "yes",
"SyslogPriority": "30",
"TTYReset": "no",
"TTYVHangup": "no",
"TTYVTDisallocate": "no",
"TimeoutStartUSec": "5min",
"TimeoutStopUSec": "5min",
"TimerSlackNSec": "50000",
"Transient": "no",
"Type": "forking",
"UMask": "0022",
"WantedBy": "multi-user.target graphical.target",
"Wants": "system.slice",
"WatchdogTimestampMonotonic": "0",
"WatchdogUSec": "0"
}
}
TASK [geerlingguy.jenkins : Wait for Jenkins to start up before proceeding.] *****************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:35
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500 `" && echo ansible-tmp-1540303355.03-118253186524500="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303355.03-118253186524500=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpDrLwBQ TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/command.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpDrLwBQ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/command.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpDrLwBQ\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/command.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:3737\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 3737 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/command.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lrhceffzkoozgkrqtljvavapndplvita; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/command.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"changed": true, "end": "2018-10-23 10:02:37.149196", "stdout": "HTTP/1.1 200 OK\\r\\nDate: Tue, 23 Oct 2018 14:02:37 GMT\\r\\nX-Content-Type-Options: nosniff\\r\\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\\r\\nCache-Control: no-cache,no-store,must-revalidate\\r\\nX-Hudson-Theme: default\\r\\nReferrer-Policy: same-origin\\r\\nContent-Type: text/html;charset=utf-8\\r\\nSet-Cookie: JSESSIONID.53857e81=node0196tqyeiucg39eszm2vf1kzvg26.node0;Path=/;HttpOnly\\r\\nX-Hudson: 1.395\\r\\nX-Jenkins: 2.148\\r\\nX-Jenkins-Session: a3112fe2\\r\\nX-Hudson-CLI-Port: 54768\\r\\nX-Jenkins-CLI-Port: 54768\\r\\nX-Jenkins-CLI2-Port: 54768\\r\\nX-Frame-Options: sameorigin\\r\\nX-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgvoGhAvHeFf1XxWLnnc5kvzza0RXvENoa+Zd9ScZ6JiUCrCA8fRQHUApjXhT4cdFs3dRN8DFqW1o5IQt947GAZqlq3jhvqVcQq7hMprX/RBmXzivkP5CpiLrWlhCtsRLAc+LW8gglfm7gsz2roMK+pODDmz1H8DRm4trgruxlEeF7b7SL84+jGjjoXX7wySiLdxYNdJ9K8aUfNiYRgQivg9upUSqsNkK5FyCykrR8R3IfWZknB9APvCXRlF7Y9L4P+RbpFeG6rfhQLWqz7xjUm/spihINwUZg8TK1hiZx3WHnpYgT6B08dMoaMgwHYfIJXRG7JVJrNhcgWRin+lc5wIDAQAB\\r\\nContent-Length: 17502\\r\\nServer: Jetty(9.4.z-SNAPSHOT)\\r\\n\\r\\n\\n\\n\\n\\n\\n \\n <!DOCTYPE html><html><head resURL=\\"/static/a3112fe2\\" data-rooturl=\\"\\" data-resurl=\\"/static/a3112fe2\\">\\n \\n\\n <title>Jenkins</title><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/css/layout-common.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/css/style.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/css/color.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/css/responsive-grid.css\\" type=\\"text/css\\" /><link rel=\\"shortcut icon\\" href=\\"/static/a3112fe2/favicon.ico\\" type=\\"image/vnd.microsoft.icon\\" /><link color=\\"black\\" rel=\\"mask-icon\\" href=\\"/images/mask-icon.svg\\" /><script>var isRunAsTest=false; var rootURL=\\"\\"; var resURL=\\"/static/a3112fe2\\";</script><script src=\\"/static/a3112fe2/scripts/prototype.js\\" type=\\"text/javascript\\"></script><script src=\\"/static/a3112fe2/scripts/behavior.js\\" type=\\"text/javascript\\"></script><script src=\'/adjuncts/a3112fe2/org/kohsuke/stapler/bind.js\' type=\'text/javascript\'></script><script src=\\"/static/a3112fe2/scripts/yui/yahoo/yahoo-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/dom/dom-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/event/event-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/animation/animation-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/dragdrop/dragdrop-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/container/container-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/connection/connection-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/datasource/datasource-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/autocomplete/autocomplete-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/menu/menu-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/element/element-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/button/button-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/yui/storage/storage-min.js\\"></script><script src=\\"/static/a3112fe2/scripts/hudson-behavior.js\\" type=\\"text/javascript\\"></script><script src=\\"/static/a3112fe2/scripts/sortable.js\\" type=\\"text/javascript\\"></script><script>crumb.init(\\"\\", \\"\\");</script><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/scripts/yui/container/assets/container.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/scripts/yui/assets/skins/sam/skin.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/scripts/yui/container/assets/skins/sam/container.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/scripts/yui/button/assets/skins/sam/button.css\\" type=\\"text/css\\" /><link rel=\\"stylesheet\\" href=\\"/static/a3112fe2/scripts/yui/menu/assets/skins/sam/menu.css\\" type=\\"text/css\\" /><link rel=\\"search\\" href=\\"/opensearch.xml\\" type=\\"application/opensearchdescription+xml\\" title=\\"Jenkins\\" /><meta name=\\"ROBOTS\\" content=\\"INDEX,NOFOLLOW\\" /><meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\" /><link rel=\\"alternate\\" href=\\"/rssAll\\" title=\\"Jenkins:all (all builds)\\" type=\\"application/rss+xml\\" /><link rel=\\"alternate\\" href=\\"/rssAll?flavor=rss20\\" title=\\"Jenkins:all (all builds) (RSS 2.0)\\" type=\\"application/rss+xml\\" /><link rel=\\"alternate\\" href=\\"/rssFailed\\" title=\\"Jenkins:all (failed builds)\\" type=\\"application/rss+xml\\" /><link rel=\\"alternate\\" href=\\"/rssFailed?flavor=rss20\\" title=\\"Jenkins:all (failed builds) (RSS 2.0)\\" type=\\"application/rss+xml\\" /><script src=\\"/static/a3112fe2/jsbundles/page-init.js\\" type=\\"text/javascript\\"></script></head><body data-model-type=\\"hudson.cli.CLIAction\\" id=\\"jenkins\\" class=\\"yui-skin-sam two-column jenkins-2.148\\" data-version=\\"2.148\\"><a href=\\"#skip2content\\" class=\\"skiplink\\">Skip to content</a><div id=\\"page-head\\"><div id=\\"header\\"><div class=\\"logo\\"><a id=\\"jenkins-home-link\\" href=\\"/\\"><img src=\\"/static/a3112fe2/images/headshot.png\\" alt=\\"[Jenkins]\\" id=\\"jenkins-head-icon\\" /><img src=\\"/static/a3112fe2/images/title.png\\" alt=\\"Jenkins\\" width=\\"139\\" id=\\"jenkins-name-icon\\" height=\\"34\\" /></a></div><div class=\\"login\\">\\u00a0<a href=\\"/login?from=%2Fcli%2F\\"><b>log in</b></a></div><div class=\\"searchbox hidden-xs\\"><form role=\\"search\\" method=\\"get\\" name=\\"search\\" action=\\"/search/\\" style=\\"position:relative;\\" class=\\"no-json\\"><div id=\\"search-box-minWidth\\"></div><div id=\\"search-box-sizer\\"></div><div id=\\"searchform\\"><input role=\\"searchbox\\" name=\\"q\\" placeholder=\\"search\\" id=\\"search-box\\" class=\\"has-default-text\\" />\\u00a0<a href=\\"https://jenkins.io/redirect/search-box\\"><img src=\\"/static/a3112fe2/images/16x16/help.png\\" style=\\"width: 16px; height: 16px; \\" class=\\"icon-help icon-sm\\" /></a><div id=\\"search-box-completion\\"></div><script>createSearchBox(\\"/search/\\");</script></div></form></div></div><div id=\\"breadcrumbBar\\"><tr id=\\"top-nav\\"><td id=\\"left-top-nav\\" colspan=\\"2\\"><link rel=\'stylesheet\' href=\'/adjuncts/a3112fe2/lib/layout/breadcrumbs.css\' type=\'text/css\' /><script src=\'/adjuncts/a3112fe2/lib/layout/breadcrumbs.js\' type=\'text/javascript\'></script><div class=\\"top-sticker noedge\\"><div class=\\"top-sticker-inner\\"><div id=\\"right-top-nav\\"></div><ul id=\\"breadcrumbs\\"><li class=\\"item\\"><a href=\\"/\\" class=\\"model-link inside\\">Jenkins</a></li><li href=\\"/\\" class=\\"children\\"></li><li class=\\"item\\"><a href=\\"/cli/\\" class=\\" inside\\">Jenkins CLI</a></li><li class=\\"separator\\"></li></ul><div id=\\"breadcrumb-menu-target\\"></div></div></div></td></tr></div></div><div id=\\"page-body\\" class=\\"clear\\"><div id=\\"side-panel\\"><div id=\\"tasks\\"><div class=\\"task\\"><a href=\\"/asynchPeople/\\" class=\\"task-icon-link\\"><img src=\\"/static/a3112fe2/images/24x24/user.png\\" style=\\"width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;\\" class=\\"icon-user icon-md\\" /></a>\\u00a0<a href=\\"/asynchPeople/\\" class=\\"task-link\\">People</a></div><div class=\\"task\\"><a href=\\"/view/all/builds\\" class=\\"task-icon-link\\"><img src=\\"/static/a3112fe2/images/24x24/notepad.png\\" style=\\"width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;\\" class=\\"icon-notepad icon-md\\" /></a>\\u00a0<a href=\\"/view/all/builds\\" class=\\"task-link\\">Build History</a></div></div><div id=\\"buildQueue\\" class=\\"container-fluid pane-frame track-mouse expanded\\"><div class=\\"row\\"><div class=\\"col-xs-24 pane-header\\"><a href=\\"/toggleCollapse?paneId=buildQueue\\" title=\\"collapse\\" class=\\"collapse\\"><img src=\\"/static/a3112fe2/images/16x16/collapse.png\\" alt=\\"collapse\\" style=\\"width: 16px; height: 16px; \\" class=\\"icon-collapse icon-sm\\" /></a>Build Queue</div></div><div class=\\"row pane-content\\"><table class=\\"pane \\"><script src=\'/adjuncts/a3112fe2/lib/form/link/link.js\' type=\'text/javascript\'></script><tr><td class=\\"pane\\" colspan=\\"2\\">No builds in the queue.</td></tr></table></div></div><script defer=\\"defer\\">refreshPart(\'buildQueue\',\\"/ajaxBuildQueue\\");</script><div id=\\"executors\\" class=\\"container-fluid pane-frame track-mouse expanded\\"><div class=\\"row\\"><div class=\\"col-xs-24 pane-header\\"><a href=\\"/toggleCollapse?paneId=executors\\" title=\\"collapse\\" class=\\"collapse\\"><img src=\\"/static/a3112fe2/images/16x16/collapse.png\\" alt=\\"collapse\\" style=\\"width: 16px; height: 16px; \\" class=\\"icon-collapse icon-sm\\" /></a><a href=\'/computer/\'>Build Executor Status</a></div></div><div class=\\"row pane-content\\"><table class=\\"pane \\"><colgroup><col width=\\"30\\" /><col width=\\"200*\\" /><col width=\\"24\\" /></colgroup><tr></tr><tr><td class=\\"pane\\" align=\\"right\\" style=\\"vertical-align: top\\">1</td><td class=\\"pane\\">Idle</td><td class=\\"pane\\"></td><td class=\\"pane\\"></td></tr><tr><td class=\\"pane\\" align=\\"right\\" style=\\"vertical-align: top\\">2</td><td class=\\"pane\\">Idle</td><td class=\\"pane\\"></td><td class=\\"pane\\"></td></tr></table></div></div><script defer=\\"defer\\">refreshPart(\'executors\',\\"/ajaxExecutors\\");</script></div><div id=\\"main-panel\\"><a name=\\"skip2content\\"></a><h1><img src=\\"/static/a3112fe2/images/48x48/terminal.png\\" style=\\"width: 48px; height: 48px; \\" class=\\"icon-terminal icon-xlg\\" />\\n Jenkins CLI\\n </h1><p>You can access various features in Jenkins through a command-line tool. See <a href=\\"https://jenkins.io/redirect/cli\\">the documentation</a> for more details of this feature. To get started, download <a href=\\"/jnlpJars/jenkins-cli.jar\\">jenkins-cli.jar</a>, and run it as follows:</p><style type=\\"text/css\\">\\n pre {\\n color: white;\\n background-color: black;\\n padding: 1em;\\n font-weight: bold;\\n }\\n </style><pre id=\\"example\\">java -jar <a style=\\"color: white\\" href=\\"/jnlpJars/jenkins-cli.jar\\">jenkins-cli.jar</a> -s http://localhost:8080/ help</pre><h2>Available Commands</h2><table><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/add-job-to-view\\">add-job-to-view</a></td><td>Adds jobs to view.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/build\\">build</a></td><td>Builds a job, and optionally waits until its completion.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/cancel-quiet-down\\">cancel-quiet-down</a></td><td>Cancel the effect of the \\"quiet-down\\" command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/clear-queue\\">clear-queue</a></td><td>Clears the build queue.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/connect-node\\">connect-node</a></td><td>Reconnect to a node(s)</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/console\\">console</a></td><td>Retrieves console output of a build.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/copy-job\\">copy-job</a></td><td>Copies a job.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/create-job\\">create-job</a></td><td>Creates a new job by reading stdin as a configuration XML file.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/create-node\\">create-node</a></td><td>Creates a new node by reading stdin as a XML configuration.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/create-view\\">create-view</a></td><td>Creates a new view by reading stdin as a XML configuration.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/delete-builds\\">delete-builds</a></td><td>Deletes build record(s).</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/delete-job\\">delete-job</a></td><td>Deletes job(s).</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/delete-node\\">delete-node</a></td><td>Deletes node(s)</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/delete-view\\">delete-view</a></td><td>Deletes view(s).</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/disable-job\\">disable-job</a></td><td>Disables a job.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/disconnect-node\\">disconnect-node</a></td><td>Disconnects from a node.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/enable-job\\">enable-job</a></td><td>Enables a job.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/enable-plugin\\">enable-plugin</a></td><td>Enables one or more installed plugins transitively.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/get-job\\">get-job</a></td><td>Dumps the job definition XML to stdout.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/get-node\\">get-node</a></td><td>Dumps the node definition XML to stdout.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/get-view\\">get-view</a></td><td>Dumps the view definition XML to stdout.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/groovy\\">groovy</a></td><td>Executes the specified Groovy script. </td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/groovysh\\">groovysh</a></td><td>Runs an interactive groovy shell.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/help\\">help</a></td><td>Lists all the available commands or a detailed description of single command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/install-plugin\\">install-plugin</a></td><td>Installs a plugin either from a file, an URL, or from update center. </td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/install-tool\\">install-tool</a></td><td>Performs automatic tool installation, and print its location to stdout. Can be only called from inside a build. [deprecated]</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/keep-build\\">keep-build</a></td><td>Mark the build to keep the build forever.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/list-changes\\">list-changes</a></td><td>Dumps the changelog for the specified build(s).</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/list-jobs\\">list-jobs</a></td><td>Lists all jobs in a specific view or item group.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/list-plugins\\">list-plugins</a></td><td>Outputs a list of installed plugins.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/login\\">login</a></td><td>Saves the current credentials to allow future commands to run without explicit credential information. [deprecated]</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/logout\\">logout</a></td><td>Deletes the credentials stored with the login command. [deprecated]</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/offline-node\\">offline-node</a></td><td>Stop using a node for performing builds temporarily, until the next \\"online-node\\" command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/online-node\\">online-node</a></td><td>Resume using a node for performing builds, to cancel out the earlier \\"offline-node\\" command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/quiet-down\\">quiet-down</a></td><td>Quiet down Jenkins, in preparation for a restart. Don\\u2019t start any builds.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/reload-configuration\\">reload-configuration</a></td><td>Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/reload-job\\">reload-job</a></td><td>Reload job(s)</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/remove-job-from-view\\">remove-job-from-view</a></td><td>Removes jobs from view.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/restart\\">restart</a></td><td>Restart Jenkins.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/safe-restart\\">safe-restart</a></td><td>Safely restart Jenkins.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/safe-shutdown\\">safe-shutdown</a></td><td>Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/session-id\\">session-id</a></td><td>Outputs the session ID, which changes every time Jenkins restarts.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/set-build-description\\">set-build-description</a></td><td>Sets the description of a build.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/set-build-display-name\\">set-build-display-name</a></td><td>Sets the displayName of a build.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/set-build-parameter\\">set-build-parameter</a></td><td>Update/set the build parameter of the current build in progress. [deprecated]</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/set-build-result\\">set-build-result</a></td><td>Sets the result of the current build. Works only if invoked from within a build. [deprecated]</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/shutdown\\">shutdown</a></td><td>Immediately shuts down Jenkins server.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/update-job\\">update-job</a></td><td>Updates the job definition XML from stdin. The opposite of the get-job command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/update-node\\">update-node</a></td><td>Updates the node definition XML from stdin. The opposite of the get-node command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/update-view\\">update-view</a></td><td>Updates the view definition XML from stdin. The opposite of the get-view command.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/version\\">version</a></td><td>Outputs the current version.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/wait-node-offline\\">wait-node-offline</a></td><td>Wait for a node to become offline.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/wait-node-online\\">wait-node-online</a></td><td>Wait for a node to become online.</td></tr><tr><td><a style=\\"color: black; font-weight: bold\\" href=\\"command/who-am-i\\">who-am-i</a></td><td>Reports your credential and permissions.</td></tr></table></div></div><footer><div class=\\"container-fluid\\"><div class=\\"row\\"><div class=\\"col-md-6\\" id=\\"footer\\"></div><div class=\\"col-md-18\\"><span class=\\"page_generated\\">Page generated: Oct 23, 2018 10:02:37 AM EDT</span><span class=\\"jenkins_ver\\"><a href=\\"https://jenkins.io/\\">Jenkins ver. 2.148</a></span></div></div></div></footer></body></html>", "cmd": ["curl", "-D", "-", "--silent", "--max-time", "5", "http://localhost:8080/cli/"], "rc": 0, "start": "2018-10-23 10:02:36.965433", "stderr": "", "delta": "0:00:00.183763", "invocation": {"module_args": {"warn": false, "executable": null, "_uses_shell": false, "_raw_params": "curl -D - --silent --max-time 5 http://localhost:8080/cli/", "removes": null, "argv": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303355.03-118253186524500/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"attempts": 1,
"changed": false,
"cmd": [
"curl",
"-D",
"-",
"--silent",
"--max-time",
"5",
"http://localhost:8080/cli/"
],
"delta": "0:00:00.183763",
"end": "2018-10-23 10:02:37.149196",
"invocation": {
"module_args": {
"_raw_params": "curl -D - --silent --max-time 5 http://localhost:8080/cli/",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": false
}
},
"rc": 0,
"start": "2018-10-23 10:02:36.965433",
"stderr": "",
"stderr_lines": [],
"stdout": "HTTP/1.1 200 OK\r\nDate: Tue, 23 Oct 2018 14:02:37 GMT\r\nX-Content-Type-Options: nosniff\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-cache,no-store,must-revalidate\r\nX-Hudson-Theme: default\r\nReferrer-Policy: same-origin\r\nContent-Type: text/html;charset=utf-8\r\nSet-Cookie: JSESSIONID.53857e81=node0196tqyeiucg39eszm2vf1kzvg26.node0;Path=/;HttpOnly\r\nX-Hudson: 1.395\r\nX-Jenkins: 2.148\r\nX-Jenkins-Session: a3112fe2\r\nX-Hudson-CLI-Port: 54768\r\nX-Jenkins-CLI-Port: 54768\r\nX-Jenkins-CLI2-Port: 54768\r\nX-Frame-Options: sameorigin\r\nX-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgvoGhAvHeFf1XxWLnnc5kvzza0RXvENoa+Zd9ScZ6JiUCrCA8fRQHUApjXhT4cdFs3dRN8DFqW1o5IQt947GAZqlq3jhvqVcQq7hMprX/RBmXzivkP5CpiLrWlhCtsRLAc+LW8gglfm7gsz2roMK+pODDmz1H8DRm4trgruxlEeF7b7SL84+jGjjoXX7wySiLdxYNdJ9K8aUfNiYRgQivg9upUSqsNkK5FyCykrR8R3IfWZknB9APvCXRlF7Y9L4P+RbpFeG6rfhQLWqz7xjUm/spihINwUZg8TK1hiZx3WHnpYgT6B08dMoaMgwHYfIJXRG7JVJrNhcgWRin+lc5wIDAQAB\r\nContent-Length: 17502\r\nServer: Jetty(9.4.z-SNAPSHOT)\r\n\r\n\n\n\n\n\n \n <!DOCTYPE html><html><head resURL=\"/static/a3112fe2\" data-rooturl=\"\" data-resurl=\"/static/a3112fe2\">\n \n\n <title>Jenkins</title><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/layout-common.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/style.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/color.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/responsive-grid.css\" type=\"text/css\" /><link rel=\"shortcut icon\" href=\"/static/a3112fe2/favicon.ico\" type=\"image/vnd.microsoft.icon\" /><link color=\"black\" rel=\"mask-icon\" href=\"/images/mask-icon.svg\" /><script>var isRunAsTest=false; var rootURL=\"\"; var resURL=\"/static/a3112fe2\";</script><script src=\"/static/a3112fe2/scripts/prototype.js\" type=\"text/javascript\"></script><script src=\"/static/a3112fe2/scripts/behavior.js\" type=\"text/javascript\"></script><script src='/adjuncts/a3112fe2/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src=\"/static/a3112fe2/scripts/yui/yahoo/yahoo-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/dom/dom-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/event/event-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/animation/animation-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/dragdrop/dragdrop-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/container/container-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/connection/connection-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/datasource/datasource-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/autocomplete/autocomplete-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/menu/menu-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/element/element-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/button/button-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/storage/storage-min.js\"></script><script src=\"/static/a3112fe2/scripts/hudson-behavior.js\" type=\"text/javascript\"></script><script src=\"/static/a3112fe2/scripts/sortable.js\" type=\"text/javascript\"></script><script>crumb.init(\"\", \"\");</script><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/container/assets/container.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/assets/skins/sam/skin.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/container/assets/skins/sam/container.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/button/assets/skins/sam/button.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/menu/assets/skins/sam/menu.css\" type=\"text/css\" /><link rel=\"search\" href=\"/opensearch.xml\" type=\"application/opensearchdescription+xml\" title=\"Jenkins\" /><meta name=\"ROBOTS\" content=\"INDEX,NOFOLLOW\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /><link rel=\"alternate\" href=\"/rssAll\" title=\"Jenkins:all (all builds)\" type=\"application/rss+xml\" /><link rel=\"alternate\" href=\"/rssAll?flavor=rss20\" title=\"Jenkins:all (all builds) (RSS 2.0)\" type=\"application/rss+xml\" /><link rel=\"alternate\" href=\"/rssFailed\" title=\"Jenkins:all (failed builds)\" type=\"application/rss+xml\" /><link rel=\"alternate\" href=\"/rssFailed?flavor=rss20\" title=\"Jenkins:all (failed builds) (RSS 2.0)\" type=\"application/rss+xml\" /><script src=\"/static/a3112fe2/jsbundles/page-init.js\" type=\"text/javascript\"></script></head><body data-model-type=\"hudson.cli.CLIAction\" id=\"jenkins\" class=\"yui-skin-sam two-column jenkins-2.148\" data-version=\"2.148\"><a href=\"#skip2content\" class=\"skiplink\">Skip to content</a><div id=\"page-head\"><div id=\"header\"><div class=\"logo\"><a id=\"jenkins-home-link\" href=\"/\"><img src=\"/static/a3112fe2/images/headshot.png\" alt=\"[Jenkins]\" id=\"jenkins-head-icon\" /><img src=\"/static/a3112fe2/images/title.png\" alt=\"Jenkins\" width=\"139\" id=\"jenkins-name-icon\" height=\"34\" /></a></div><div class=\"login\"> <a href=\"/login?from=%2Fcli%2F\"><b>log in</b></a></div><div class=\"searchbox hidden-xs\"><form role=\"search\" method=\"get\" name=\"search\" action=\"/search/\" style=\"position:relative;\" class=\"no-json\"><div id=\"search-box-minWidth\"></div><div id=\"search-box-sizer\"></div><div id=\"searchform\"><input role=\"searchbox\" name=\"q\" placeholder=\"search\" id=\"search-box\" class=\"has-default-text\" /> <a href=\"https://jenkins.io/redirect/search-box\"><img src=\"/static/a3112fe2/images/16x16/help.png\" style=\"width: 16px; height: 16px; \" class=\"icon-help icon-sm\" /></a><div id=\"search-box-completion\"></div><script>createSearchBox(\"/search/\");</script></div></form></div></div><div id=\"breadcrumbBar\"><tr id=\"top-nav\"><td id=\"left-top-nav\" colspan=\"2\"><link rel='stylesheet' href='/adjuncts/a3112fe2/lib/layout/breadcrumbs.css' type='text/css' /><script src='/adjuncts/a3112fe2/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class=\"top-sticker noedge\"><div class=\"top-sticker-inner\"><div id=\"right-top-nav\"></div><ul id=\"breadcrumbs\"><li class=\"item\"><a href=\"/\" class=\"model-link inside\">Jenkins</a></li><li href=\"/\" class=\"children\"></li><li class=\"item\"><a href=\"/cli/\" class=\" inside\">Jenkins CLI</a></li><li class=\"separator\"></li></ul><div id=\"breadcrumb-menu-target\"></div></div></div></td></tr></div></div><div id=\"page-body\" class=\"clear\"><div id=\"side-panel\"><div id=\"tasks\"><div class=\"task\"><a href=\"/asynchPeople/\" class=\"task-icon-link\"><img src=\"/static/a3112fe2/images/24x24/user.png\" style=\"width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;\" class=\"icon-user icon-md\" /></a> <a href=\"/asynchPeople/\" class=\"task-link\">People</a></div><div class=\"task\"><a href=\"/view/all/builds\" class=\"task-icon-link\"><img src=\"/static/a3112fe2/images/24x24/notepad.png\" style=\"width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;\" class=\"icon-notepad icon-md\" /></a> <a href=\"/view/all/builds\" class=\"task-link\">Build History</a></div></div><div id=\"buildQueue\" class=\"container-fluid pane-frame track-mouse expanded\"><div class=\"row\"><div class=\"col-xs-24 pane-header\"><a href=\"/toggleCollapse?paneId=buildQueue\" title=\"collapse\" class=\"collapse\"><img src=\"/static/a3112fe2/images/16x16/collapse.png\" alt=\"collapse\" style=\"width: 16px; height: 16px; \" class=\"icon-collapse icon-sm\" /></a>Build Queue</div></div><div class=\"row pane-content\"><table class=\"pane \"><script src='/adjuncts/a3112fe2/lib/form/link/link.js' type='text/javascript'></script><tr><td class=\"pane\" colspan=\"2\">No builds in the queue.</td></tr></table></div></div><script defer=\"defer\">refreshPart('buildQueue',\"/ajaxBuildQueue\");</script><div id=\"executors\" class=\"container-fluid pane-frame track-mouse expanded\"><div class=\"row\"><div class=\"col-xs-24 pane-header\"><a href=\"/toggleCollapse?paneId=executors\" title=\"collapse\" class=\"collapse\"><img src=\"/static/a3112fe2/images/16x16/collapse.png\" alt=\"collapse\" style=\"width: 16px; height: 16px; \" class=\"icon-collapse icon-sm\" /></a><a href='/computer/'>Build Executor Status</a></div></div><div class=\"row pane-content\"><table class=\"pane \"><colgroup><col width=\"30\" /><col width=\"200*\" /><col width=\"24\" /></colgroup><tr></tr><tr><td class=\"pane\" align=\"right\" style=\"vertical-align: top\">1</td><td class=\"pane\">Idle</td><td class=\"pane\"></td><td class=\"pane\"></td></tr><tr><td class=\"pane\" align=\"right\" style=\"vertical-align: top\">2</td><td class=\"pane\">Idle</td><td class=\"pane\"></td><td class=\"pane\"></td></tr></table></div></div><script defer=\"defer\">refreshPart('executors',\"/ajaxExecutors\");</script></div><div id=\"main-panel\"><a name=\"skip2content\"></a><h1><img src=\"/static/a3112fe2/images/48x48/terminal.png\" style=\"width: 48px; height: 48px; \" class=\"icon-terminal icon-xlg\" />\n Jenkins CLI\n </h1><p>You can access various features in Jenkins through a command-line tool. See <a href=\"https://jenkins.io/redirect/cli\">the documentation</a> for more details of this feature. To get started, download <a href=\"/jnlpJars/jenkins-cli.jar\">jenkins-cli.jar</a>, and run it as follows:</p><style type=\"text/css\">\n pre {\n color: white;\n background-color: black;\n padding: 1em;\n font-weight: bold;\n }\n </style><pre id=\"example\">java -jar <a style=\"color: white\" href=\"/jnlpJars/jenkins-cli.jar\">jenkins-cli.jar</a> -s http://localhost:8080/ help</pre><h2>Available Commands</h2><table><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/add-job-to-view\">add-job-to-view</a></td><td>Adds jobs to view.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/build\">build</a></td><td>Builds a job, and optionally waits until its completion.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/cancel-quiet-down\">cancel-quiet-down</a></td><td>Cancel the effect of the \"quiet-down\" command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/clear-queue\">clear-queue</a></td><td>Clears the build queue.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/connect-node\">connect-node</a></td><td>Reconnect to a node(s)</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/console\">console</a></td><td>Retrieves console output of a build.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/copy-job\">copy-job</a></td><td>Copies a job.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/create-job\">create-job</a></td><td>Creates a new job by reading stdin as a configuration XML file.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/create-node\">create-node</a></td><td>Creates a new node by reading stdin as a XML configuration.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/create-view\">create-view</a></td><td>Creates a new view by reading stdin as a XML configuration.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-builds\">delete-builds</a></td><td>Deletes build record(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-job\">delete-job</a></td><td>Deletes job(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-node\">delete-node</a></td><td>Deletes node(s)</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-view\">delete-view</a></td><td>Deletes view(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/disable-job\">disable-job</a></td><td>Disables a job.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/disconnect-node\">disconnect-node</a></td><td>Disconnects from a node.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/enable-job\">enable-job</a></td><td>Enables a job.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/enable-plugin\">enable-plugin</a></td><td>Enables one or more installed plugins transitively.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/get-job\">get-job</a></td><td>Dumps the job definition XML to stdout.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/get-node\">get-node</a></td><td>Dumps the node definition XML to stdout.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/get-view\">get-view</a></td><td>Dumps the view definition XML to stdout.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/groovy\">groovy</a></td><td>Executes the specified Groovy script. </td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/groovysh\">groovysh</a></td><td>Runs an interactive groovy shell.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/help\">help</a></td><td>Lists all the available commands or a detailed description of single command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/install-plugin\">install-plugin</a></td><td>Installs a plugin either from a file, an URL, or from update center. </td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/install-tool\">install-tool</a></td><td>Performs automatic tool installation, and print its location to stdout. Can be only called from inside a build. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/keep-build\">keep-build</a></td><td>Mark the build to keep the build forever.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/list-changes\">list-changes</a></td><td>Dumps the changelog for the specified build(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/list-jobs\">list-jobs</a></td><td>Lists all jobs in a specific view or item group.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/list-plugins\">list-plugins</a></td><td>Outputs a list of installed plugins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/login\">login</a></td><td>Saves the current credentials to allow future commands to run without explicit credential information. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/logout\">logout</a></td><td>Deletes the credentials stored with the login command. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/offline-node\">offline-node</a></td><td>Stop using a node for performing builds temporarily, until the next \"online-node\" command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/online-node\">online-node</a></td><td>Resume using a node for performing builds, to cancel out the earlier \"offline-node\" command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/quiet-down\">quiet-down</a></td><td>Quiet down Jenkins, in preparation for a restart. Don’t start any builds.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/reload-configuration\">reload-configuration</a></td><td>Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/reload-job\">reload-job</a></td><td>Reload job(s)</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/remove-job-from-view\">remove-job-from-view</a></td><td>Removes jobs from view.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/restart\">restart</a></td><td>Restart Jenkins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/safe-restart\">safe-restart</a></td><td>Safely restart Jenkins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/safe-shutdown\">safe-shutdown</a></td><td>Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/session-id\">session-id</a></td><td>Outputs the session ID, which changes every time Jenkins restarts.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-description\">set-build-description</a></td><td>Sets the description of a build.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-display-name\">set-build-display-name</a></td><td>Sets the displayName of a build.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-parameter\">set-build-parameter</a></td><td>Update/set the build parameter of the current build in progress. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-result\">set-build-result</a></td><td>Sets the result of the current build. Works only if invoked from within a build. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/shutdown\">shutdown</a></td><td>Immediately shuts down Jenkins server.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/update-job\">update-job</a></td><td>Updates the job definition XML from stdin. The opposite of the get-job command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/update-node\">update-node</a></td><td>Updates the node definition XML from stdin. The opposite of the get-node command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/update-view\">update-view</a></td><td>Updates the view definition XML from stdin. The opposite of the get-view command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/version\">version</a></td><td>Outputs the current version.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/wait-node-offline\">wait-node-offline</a></td><td>Wait for a node to become offline.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/wait-node-online\">wait-node-online</a></td><td>Wait for a node to become online.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/who-am-i\">who-am-i</a></td><td>Reports your credential and permissions.</td></tr></table></div></div><footer><div class=\"container-fluid\"><div class=\"row\"><div class=\"col-md-6\" id=\"footer\"></div><div class=\"col-md-18\"><span class=\"page_generated\">Page generated: Oct 23, 2018 10:02:37 AM EDT</span><span class=\"jenkins_ver\"><a href=\"https://jenkins.io/\">Jenkins ver. 2.148</a></span></div></div></div></footer></body></html>",
"stdout_lines": [
"HTTP/1.1 200 OK",
"Date: Tue, 23 Oct 2018 14:02:37 GMT",
"X-Content-Type-Options: nosniff",
"Expires: Thu, 01 Jan 1970 00:00:00 GMT",
"Cache-Control: no-cache,no-store,must-revalidate",
"X-Hudson-Theme: default",
"Referrer-Policy: same-origin",
"Content-Type: text/html;charset=utf-8",
"Set-Cookie: JSESSIONID.53857e81=node0196tqyeiucg39eszm2vf1kzvg26.node0;Path=/;HttpOnly",
"X-Hudson: 1.395",
"X-Jenkins: 2.148",
"X-Jenkins-Session: a3112fe2",
"X-Hudson-CLI-Port: 54768",
"X-Jenkins-CLI-Port: 54768",
"X-Jenkins-CLI2-Port: 54768",
"X-Frame-Options: sameorigin",
"X-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgvoGhAvHeFf1XxWLnnc5kvzza0RXvENoa+Zd9ScZ6JiUCrCA8fRQHUApjXhT4cdFs3dRN8DFqW1o5IQt947GAZqlq3jhvqVcQq7hMprX/RBmXzivkP5CpiLrWlhCtsRLAc+LW8gglfm7gsz2roMK+pODDmz1H8DRm4trgruxlEeF7b7SL84+jGjjoXX7wySiLdxYNdJ9K8aUfNiYRgQivg9upUSqsNkK5FyCykrR8R3IfWZknB9APvCXRlF7Y9L4P+RbpFeG6rfhQLWqz7xjUm/spihINwUZg8TK1hiZx3WHnpYgT6B08dMoaMgwHYfIJXRG7JVJrNhcgWRin+lc5wIDAQAB",
"Content-Length: 17502",
"Server: Jetty(9.4.z-SNAPSHOT)",
"",
"",
"",
"",
"",
"",
" ",
" <!DOCTYPE html><html><head resURL=\"/static/a3112fe2\" data-rooturl=\"\" data-resurl=\"/static/a3112fe2\">",
" ",
"",
" <title>Jenkins</title><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/layout-common.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/style.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/color.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/css/responsive-grid.css\" type=\"text/css\" /><link rel=\"shortcut icon\" href=\"/static/a3112fe2/favicon.ico\" type=\"image/vnd.microsoft.icon\" /><link color=\"black\" rel=\"mask-icon\" href=\"/images/mask-icon.svg\" /><script>var isRunAsTest=false; var rootURL=\"\"; var resURL=\"/static/a3112fe2\";</script><script src=\"/static/a3112fe2/scripts/prototype.js\" type=\"text/javascript\"></script><script src=\"/static/a3112fe2/scripts/behavior.js\" type=\"text/javascript\"></script><script src='/adjuncts/a3112fe2/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src=\"/static/a3112fe2/scripts/yui/yahoo/yahoo-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/dom/dom-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/event/event-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/animation/animation-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/dragdrop/dragdrop-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/container/container-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/connection/connection-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/datasource/datasource-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/autocomplete/autocomplete-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/menu/menu-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/element/element-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/button/button-min.js\"></script><script src=\"/static/a3112fe2/scripts/yui/storage/storage-min.js\"></script><script src=\"/static/a3112fe2/scripts/hudson-behavior.js\" type=\"text/javascript\"></script><script src=\"/static/a3112fe2/scripts/sortable.js\" type=\"text/javascript\"></script><script>crumb.init(\"\", \"\");</script><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/container/assets/container.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/assets/skins/sam/skin.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/container/assets/skins/sam/container.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/button/assets/skins/sam/button.css\" type=\"text/css\" /><link rel=\"stylesheet\" href=\"/static/a3112fe2/scripts/yui/menu/assets/skins/sam/menu.css\" type=\"text/css\" /><link rel=\"search\" href=\"/opensearch.xml\" type=\"application/opensearchdescription+xml\" title=\"Jenkins\" /><meta name=\"ROBOTS\" content=\"INDEX,NOFOLLOW\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /><link rel=\"alternate\" href=\"/rssAll\" title=\"Jenkins:all (all builds)\" type=\"application/rss+xml\" /><link rel=\"alternate\" href=\"/rssAll?flavor=rss20\" title=\"Jenkins:all (all builds) (RSS 2.0)\" type=\"application/rss+xml\" /><link rel=\"alternate\" href=\"/rssFailed\" title=\"Jenkins:all (failed builds)\" type=\"application/rss+xml\" /><link rel=\"alternate\" href=\"/rssFailed?flavor=rss20\" title=\"Jenkins:all (failed builds) (RSS 2.0)\" type=\"application/rss+xml\" /><script src=\"/static/a3112fe2/jsbundles/page-init.js\" type=\"text/javascript\"></script></head><body data-model-type=\"hudson.cli.CLIAction\" id=\"jenkins\" class=\"yui-skin-sam two-column jenkins-2.148\" data-version=\"2.148\"><a href=\"#skip2content\" class=\"skiplink\">Skip to content</a><div id=\"page-head\"><div id=\"header\"><div class=\"logo\"><a id=\"jenkins-home-link\" href=\"/\"><img src=\"/static/a3112fe2/images/headshot.png\" alt=\"[Jenkins]\" id=\"jenkins-head-icon\" /><img src=\"/static/a3112fe2/images/title.png\" alt=\"Jenkins\" width=\"139\" id=\"jenkins-name-icon\" height=\"34\" /></a></div><div class=\"login\"> <a href=\"/login?from=%2Fcli%2F\"><b>log in</b></a></div><div class=\"searchbox hidden-xs\"><form role=\"search\" method=\"get\" name=\"search\" action=\"/search/\" style=\"position:relative;\" class=\"no-json\"><div id=\"search-box-minWidth\"></div><div id=\"search-box-sizer\"></div><div id=\"searchform\"><input role=\"searchbox\" name=\"q\" placeholder=\"search\" id=\"search-box\" class=\"has-default-text\" /> <a href=\"https://jenkins.io/redirect/search-box\"><img src=\"/static/a3112fe2/images/16x16/help.png\" style=\"width: 16px; height: 16px; \" class=\"icon-help icon-sm\" /></a><div id=\"search-box-completion\"></div><script>createSearchBox(\"/search/\");</script></div></form></div></div><div id=\"breadcrumbBar\"><tr id=\"top-nav\"><td id=\"left-top-nav\" colspan=\"2\"><link rel='stylesheet' href='/adjuncts/a3112fe2/lib/layout/breadcrumbs.css' type='text/css' /><script src='/adjuncts/a3112fe2/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class=\"top-sticker noedge\"><div class=\"top-sticker-inner\"><div id=\"right-top-nav\"></div><ul id=\"breadcrumbs\"><li class=\"item\"><a href=\"/\" class=\"model-link inside\">Jenkins</a></li><li href=\"/\" class=\"children\"></li><li class=\"item\"><a href=\"/cli/\" class=\" inside\">Jenkins CLI</a></li><li class=\"separator\"></li></ul><div id=\"breadcrumb-menu-target\"></div></div></div></td></tr></div></div><div id=\"page-body\" class=\"clear\"><div id=\"side-panel\"><div id=\"tasks\"><div class=\"task\"><a href=\"/asynchPeople/\" class=\"task-icon-link\"><img src=\"/static/a3112fe2/images/24x24/user.png\" style=\"width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;\" class=\"icon-user icon-md\" /></a> <a href=\"/asynchPeople/\" class=\"task-link\">People</a></div><div class=\"task\"><a href=\"/view/all/builds\" class=\"task-icon-link\"><img src=\"/static/a3112fe2/images/24x24/notepad.png\" style=\"width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;\" class=\"icon-notepad icon-md\" /></a> <a href=\"/view/all/builds\" class=\"task-link\">Build History</a></div></div><div id=\"buildQueue\" class=\"container-fluid pane-frame track-mouse expanded\"><div class=\"row\"><div class=\"col-xs-24 pane-header\"><a href=\"/toggleCollapse?paneId=buildQueue\" title=\"collapse\" class=\"collapse\"><img src=\"/static/a3112fe2/images/16x16/collapse.png\" alt=\"collapse\" style=\"width: 16px; height: 16px; \" class=\"icon-collapse icon-sm\" /></a>Build Queue</div></div><div class=\"row pane-content\"><table class=\"pane \"><script src='/adjuncts/a3112fe2/lib/form/link/link.js' type='text/javascript'></script><tr><td class=\"pane\" colspan=\"2\">No builds in the queue.</td></tr></table></div></div><script defer=\"defer\">refreshPart('buildQueue',\"/ajaxBuildQueue\");</script><div id=\"executors\" class=\"container-fluid pane-frame track-mouse expanded\"><div class=\"row\"><div class=\"col-xs-24 pane-header\"><a href=\"/toggleCollapse?paneId=executors\" title=\"collapse\" class=\"collapse\"><img src=\"/static/a3112fe2/images/16x16/collapse.png\" alt=\"collapse\" style=\"width: 16px; height: 16px; \" class=\"icon-collapse icon-sm\" /></a><a href='/computer/'>Build Executor Status</a></div></div><div class=\"row pane-content\"><table class=\"pane \"><colgroup><col width=\"30\" /><col width=\"200*\" /><col width=\"24\" /></colgroup><tr></tr><tr><td class=\"pane\" align=\"right\" style=\"vertical-align: top\">1</td><td class=\"pane\">Idle</td><td class=\"pane\"></td><td class=\"pane\"></td></tr><tr><td class=\"pane\" align=\"right\" style=\"vertical-align: top\">2</td><td class=\"pane\">Idle</td><td class=\"pane\"></td><td class=\"pane\"></td></tr></table></div></div><script defer=\"defer\">refreshPart('executors',\"/ajaxExecutors\");</script></div><div id=\"main-panel\"><a name=\"skip2content\"></a><h1><img src=\"/static/a3112fe2/images/48x48/terminal.png\" style=\"width: 48px; height: 48px; \" class=\"icon-terminal icon-xlg\" />",
" Jenkins CLI",
" </h1><p>You can access various features in Jenkins through a command-line tool. See <a href=\"https://jenkins.io/redirect/cli\">the documentation</a> for more details of this feature. To get started, download <a href=\"/jnlpJars/jenkins-cli.jar\">jenkins-cli.jar</a>, and run it as follows:</p><style type=\"text/css\">",
" pre {",
" color: white;",
" background-color: black;",
" padding: 1em;",
" font-weight: bold;",
" }",
" </style><pre id=\"example\">java -jar <a style=\"color: white\" href=\"/jnlpJars/jenkins-cli.jar\">jenkins-cli.jar</a> -s http://localhost:8080/ help</pre><h2>Available Commands</h2><table><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/add-job-to-view\">add-job-to-view</a></td><td>Adds jobs to view.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/build\">build</a></td><td>Builds a job, and optionally waits until its completion.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/cancel-quiet-down\">cancel-quiet-down</a></td><td>Cancel the effect of the \"quiet-down\" command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/clear-queue\">clear-queue</a></td><td>Clears the build queue.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/connect-node\">connect-node</a></td><td>Reconnect to a node(s)</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/console\">console</a></td><td>Retrieves console output of a build.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/copy-job\">copy-job</a></td><td>Copies a job.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/create-job\">create-job</a></td><td>Creates a new job by reading stdin as a configuration XML file.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/create-node\">create-node</a></td><td>Creates a new node by reading stdin as a XML configuration.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/create-view\">create-view</a></td><td>Creates a new view by reading stdin as a XML configuration.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-builds\">delete-builds</a></td><td>Deletes build record(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-job\">delete-job</a></td><td>Deletes job(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-node\">delete-node</a></td><td>Deletes node(s)</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/delete-view\">delete-view</a></td><td>Deletes view(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/disable-job\">disable-job</a></td><td>Disables a job.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/disconnect-node\">disconnect-node</a></td><td>Disconnects from a node.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/enable-job\">enable-job</a></td><td>Enables a job.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/enable-plugin\">enable-plugin</a></td><td>Enables one or more installed plugins transitively.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/get-job\">get-job</a></td><td>Dumps the job definition XML to stdout.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/get-node\">get-node</a></td><td>Dumps the node definition XML to stdout.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/get-view\">get-view</a></td><td>Dumps the view definition XML to stdout.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/groovy\">groovy</a></td><td>Executes the specified Groovy script. </td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/groovysh\">groovysh</a></td><td>Runs an interactive groovy shell.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/help\">help</a></td><td>Lists all the available commands or a detailed description of single command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/install-plugin\">install-plugin</a></td><td>Installs a plugin either from a file, an URL, or from update center. </td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/install-tool\">install-tool</a></td><td>Performs automatic tool installation, and print its location to stdout. Can be only called from inside a build. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/keep-build\">keep-build</a></td><td>Mark the build to keep the build forever.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/list-changes\">list-changes</a></td><td>Dumps the changelog for the specified build(s).</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/list-jobs\">list-jobs</a></td><td>Lists all jobs in a specific view or item group.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/list-plugins\">list-plugins</a></td><td>Outputs a list of installed plugins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/login\">login</a></td><td>Saves the current credentials to allow future commands to run without explicit credential information. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/logout\">logout</a></td><td>Deletes the credentials stored with the login command. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/offline-node\">offline-node</a></td><td>Stop using a node for performing builds temporarily, until the next \"online-node\" command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/online-node\">online-node</a></td><td>Resume using a node for performing builds, to cancel out the earlier \"offline-node\" command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/quiet-down\">quiet-down</a></td><td>Quiet down Jenkins, in preparation for a restart. Don’t start any builds.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/reload-configuration\">reload-configuration</a></td><td>Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/reload-job\">reload-job</a></td><td>Reload job(s)</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/remove-job-from-view\">remove-job-from-view</a></td><td>Removes jobs from view.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/restart\">restart</a></td><td>Restart Jenkins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/safe-restart\">safe-restart</a></td><td>Safely restart Jenkins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/safe-shutdown\">safe-shutdown</a></td><td>Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/session-id\">session-id</a></td><td>Outputs the session ID, which changes every time Jenkins restarts.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-description\">set-build-description</a></td><td>Sets the description of a build.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-display-name\">set-build-display-name</a></td><td>Sets the displayName of a build.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-parameter\">set-build-parameter</a></td><td>Update/set the build parameter of the current build in progress. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/set-build-result\">set-build-result</a></td><td>Sets the result of the current build. Works only if invoked from within a build. [deprecated]</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/shutdown\">shutdown</a></td><td>Immediately shuts down Jenkins server.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/update-job\">update-job</a></td><td>Updates the job definition XML from stdin. The opposite of the get-job command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/update-node\">update-node</a></td><td>Updates the node definition XML from stdin. The opposite of the get-node command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/update-view\">update-view</a></td><td>Updates the view definition XML from stdin. The opposite of the get-view command.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/version\">version</a></td><td>Outputs the current version.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/wait-node-offline\">wait-node-offline</a></td><td>Wait for a node to become offline.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/wait-node-online\">wait-node-online</a></td><td>Wait for a node to become online.</td></tr><tr><td><a style=\"color: black; font-weight: bold\" href=\"command/who-am-i\">who-am-i</a></td><td>Reports your credential and permissions.</td></tr></table></div></div><footer><div class=\"container-fluid\"><div class=\"row\"><div class=\"col-md-6\" id=\"footer\"></div><div class=\"col-md-18\"><span class=\"page_generated\">Page generated: Oct 23, 2018 10:02:37 AM EDT</span><span class=\"jenkins_ver\"><a href=\"https://jenkins.io/\">Jenkins ver. 2.148</a></span></div></div></div></footer></body></html>"
]
}
TASK [geerlingguy.jenkins : Get the jenkins-cli jarfile from the Jenkins server.] ************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:46
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248 `" && echo ansible-tmp-1540303357.76-41624168693248="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303357.76-41624168693248=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/net_tools/basics/get_url.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp17n1NS TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/get_url.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp17n1NS /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/get_url.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp17n1NS\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/get_url.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:26025\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 26025 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/get_url.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-vqnxzctviueealtmumueaxmuwhyymrro; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/get_url.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"group": "root", "uid": 0, "url": "http://localhost:8080/jnlpJars/jenkins-cli.jar", "changed": false, "dest": "/opt/jenkins-cli.jar", "state": "file", "gid": 0, "secontext": "system_u:object_r:usr_t:s0", "mode": "0644", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "owner": null, "follow": false, "client_key": null, "group": null, "use_proxy": true, "unsafe_writes": null, "serole": null, "content": null, "validate_certs": true, "setype": null, "client_cert": null, "timeout": 10, "url_password": null, "dest": "/opt/jenkins-cli.jar", "selevel": null, "force_basic_auth": false, "sha256sum": "", "http_agent": "ansible-httpget", "regexp": null, "src": null, "url": "http://localhost:8080/jnlpJars/jenkins-cli.jar", "checksum": "", "seuser": null, "headers": null, "delimiter": null, "mode": null, "url_username": null, "attributes": null, "backup": null, "tmp_dest": null}}, "owner": "root", "size": 3597948, "msg": "HTTP Error 304: Not Modified"}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303357.76-41624168693248/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"attempts": 1,
"changed": false,
"dest": "/opt/jenkins-cli.jar",
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"attributes": null,
"backup": null,
"checksum": "",
"client_cert": null,
"client_key": null,
"content": null,
"delimiter": null,
"dest": "/opt/jenkins-cli.jar",
"directory_mode": null,
"follow": false,
"force": false,
"force_basic_auth": false,
"group": null,
"headers": null,
"http_agent": "ansible-httpget",
"mode": null,
"owner": null,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"sha256sum": "",
"src": null,
"timeout": 10,
"tmp_dest": null,
"unsafe_writes": null,
"url": "http://localhost:8080/jnlpJars/jenkins-cli.jar",
"url_password": null,
"url_username": null,
"use_proxy": true,
"validate_certs": true
}
},
"mode": "0644",
"msg": "HTTP Error 304: Not Modified",
"owner": "root",
"secontext": "system_u:object_r:usr_t:s0",
"size": 3597948,
"state": "file",
"uid": 0,
"url": "http://localhost:8080/jnlpJars/jenkins-cli.jar"
}
TASK [geerlingguy.jenkins : Remove Jenkins security init scripts after first startup.] *******************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:56
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311 `" && echo ansible-tmp-1540303360.14-100003373522311="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303360.14-100003373522311=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/file.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmprYJgkW TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/file.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmprYJgkW /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/file.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmprYJgkW\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:8614\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 8614 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/file.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-nkihycvakohqvnqoruxqfqfqywsysfgx; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/file.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/var/lib/jenkins/init.groovy.d/basic-security.groovy", "owner": null, "follow": true, "group": null, "unsafe_writes": null, "serole": null, "content": null, "state": "absent", "setype": null, "selevel": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": null, "attributes": null, "backup": null}}, "path": "/var/lib/jenkins/init.groovy.d/basic-security.groovy", "state": "absent", "changed": false}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303360.14-100003373522311/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": null,
"mode": null,
"owner": null,
"path": "/var/lib/jenkins/init.groovy.d/basic-security.groovy",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "absent",
"unsafe_writes": null
}
},
"path": "/var/lib/jenkins/init.groovy.d/basic-security.groovy",
"state": "absent"
}
TASK [geerlingguy.jenkins : include_tasks] ***************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/main.yml:62
included: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml for 34.229.40.14
TASK [geerlingguy.jenkins : Get Jenkins admin password from file.] ***************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml:3
skipping: [34.229.40.14] => {
"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
"changed": false
}
TASK [geerlingguy.jenkins : Set Jenkins admin password fact.] ********************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml:10
ok: [34.229.40.14] => {
"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
"changed": false
}
TASK [geerlingguy.jenkins : Create update directory] *****************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml:16
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246 `" && echo ansible-tmp-1540303363.06-222161840703246="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303363.06-222161840703246=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/file.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpMV2KMG TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/file.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpMV2KMG /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/file.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpMV2KMG\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:8629\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 8629 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/file.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-uenairaszrleempeqerkkcydodoewztb; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/file.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"group": "jenkins", "uid": 997, "changed": false, "owner": "jenkins", "state": "directory", "gid": 995, "secontext": "system_u:object_r:var_lib_t:s0", "mode": "0755", "path": "/var/lib/jenkins/updates", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/var/lib/jenkins/updates", "owner": "jenkins", "follow": true, "group": "jenkins", "unsafe_writes": null, "serole": null, "content": null, "state": "directory", "setype": null, "selevel": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": null, "attributes": null, "backup": null}}, "diff": {"after": {"path": "/var/lib/jenkins/updates"}, "before": {"path": "/var/lib/jenkins/updates"}}, "size": 65}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303363.06-222161840703246/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"diff": {
"after": {
"path": "/var/lib/jenkins/updates"
},
"before": {
"path": "/var/lib/jenkins/updates"
}
},
"gid": 995,
"group": "jenkins",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": "jenkins",
"mode": null,
"owner": "jenkins",
"path": "/var/lib/jenkins/updates",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null
}
},
"mode": "0755",
"owner": "jenkins",
"path": "/var/lib/jenkins/updates",
"secontext": "system_u:object_r:var_lib_t:s0",
"size": 65,
"state": "directory",
"uid": 997
}
TASK [geerlingguy.jenkins : Download current plugin updates from Jenkins update site] ********************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml:23
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814 `" && echo ansible-tmp-1540303365.41-198663742265814="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303365.41-198663742265814=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/net_tools/basics/get_url.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpvDd_Xo TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/get_url.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpvDd_Xo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/get_url.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpvDd_Xo\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/get_url.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:26098\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 26098 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/get_url.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-hnrcnmgswmpaoellpcmekorkqguqaxsx; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/get_url.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"src": "/home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/tmpAKMjCW", "changed": false, "group": "jenkins", "uid": 997, "dest": "/var/lib/jenkins/updates/default.json", "status_code": 200, "md5sum": "0433ddd919d9fe7775fe0cd8ef8c57f5", "url": "http://updates.jenkins-ci.org/update-center.json", "state": "file", "gid": 995, "secontext": "system_u:object_r:var_lib_t:s0", "mode": "0440", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "regexp": null, "owner": "jenkins", "follow": false, "client_key": null, "group": "jenkins", "use_proxy": true, "unsafe_writes": null, "setype": null, "content": null, "validate_certs": true, "serole": null, "client_cert": null, "timeout": 10, "src": null, "dest": "/var/lib/jenkins/updates/default.json", "selevel": null, "force_basic_auth": false, "sha256sum": "", "http_agent": "ansible-httpget", "path": "/var/lib/jenkins/updates/default.json", "url_password": null, "url": "http://updates.jenkins-ci.org/update-center.json", "checksum": "", "seuser": null, "headers": null, "delimiter": null, "mode": 288, "url_username": null, "attributes": null, "backup": null, "tmp_dest": null}}, "owner": "jenkins", "checksum_src": "d8cbbf7c88afb0499cca276daa0cd3de65ee646b", "size": 1568924, "checksum_dest": "d8cbbf7c88afb0499cca276daa0cd3de65ee646b", "msg": "OK (1568924 bytes)"}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"checksum_dest": "d8cbbf7c88afb0499cca276daa0cd3de65ee646b",
"checksum_src": "d8cbbf7c88afb0499cca276daa0cd3de65ee646b",
"dest": "/var/lib/jenkins/updates/default.json",
"gid": 995,
"group": "jenkins",
"invocation": {
"module_args": {
"attributes": null,
"backup": null,
"checksum": "",
"client_cert": null,
"client_key": null,
"content": null,
"delimiter": null,
"dest": "/var/lib/jenkins/updates/default.json",
"directory_mode": null,
"follow": false,
"force": false,
"force_basic_auth": false,
"group": "jenkins",
"headers": null,
"http_agent": "ansible-httpget",
"mode": 288,
"owner": "jenkins",
"path": "/var/lib/jenkins/updates/default.json",
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"sha256sum": "",
"src": null,
"timeout": 10,
"tmp_dest": null,
"unsafe_writes": null,
"url": "http://updates.jenkins-ci.org/update-center.json",
"url_password": null,
"url_username": null,
"use_proxy": true,
"validate_certs": true
}
},
"md5sum": "0433ddd919d9fe7775fe0cd8ef8c57f5",
"mode": "0440",
"msg": "OK (1568924 bytes)",
"owner": "jenkins",
"secontext": "system_u:object_r:var_lib_t:s0",
"size": 1568924,
"src": "/home/ec2-user/.ansible/tmp/ansible-tmp-1540303365.41-198663742265814/tmpAKMjCW",
"state": "file",
"status_code": 200,
"uid": 997,
"url": "http://updates.jenkins-ci.org/update-center.json"
}
TASK [geerlingguy.jenkins : Remove first and last line from json file] ***********************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml:32
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253 `" && echo ansible-tmp-1540303368.49-63015698942253="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303368.49-63015698942253=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/files/replace.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpeaVF3x TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/replace.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpeaVF3x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/replace.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpeaVF3x\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/replace.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:3716\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 3716 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/replace.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-nwgkwmirvnkxsenwpocaoxjdytrauito; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/replace.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "invocation": {"module_args": {"directory_mode": null, "force": null, "encoding": "utf-8", "replace": "", "path": "/var/lib/jenkins/updates/default.json", "owner": null, "follow": false, "before": null, "group": null, "unsafe_writes": null, "remote_src": null, "setype": null, "content": null, "serole": null, "selevel": null, "after": null, "regexp": "1d;$d", "validate": null, "src": null, "seuser": null, "delimiter": null, "mode": null, "attributes": null, "backup": false}}, "changed": false}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303368.49-63015698942253/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"after": null,
"attributes": null,
"backup": false,
"before": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"encoding": "utf-8",
"follow": false,
"force": null,
"group": null,
"mode": null,
"owner": null,
"path": "/var/lib/jenkins/updates/default.json",
"regexp": "1d;$d",
"remote_src": null,
"replace": "",
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"unsafe_writes": null,
"validate": null
}
},
"msg": ""
}
TASK [geerlingguy.jenkins : Install Jenkins plugins using password.] *************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/roles/geerlingguy.jenkins/tasks/plugins.yml:37
META: ran handlers
TASK [Install dependencies] ******************************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:28
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282 `" && echo ansible-tmp-1540303370.99-35781974170282="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303370.99-35781974170282=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpCYxyrL TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/yum.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpCYxyrL /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/yum.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpCYxyrL\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:3620\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 3620 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/yum.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lmpkpfqztzncpmcbinpynxzhulpevwld; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/yum.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"msg": "", "invocation": {"module_args": {"allow_downgrade": false, "name": ["git", "python2-pip"], "bugfix": false, "list": null, "disable_gpg_check": false, "conf_file": null, "install_repoquery": true, "validate_certs": true, "state": "installed", "disablerepo": null, "update_cache": false, "disable_plugin": [], "enablerepo": null, "exclude": null, "security": false, "update_only": false, "enable_plugin": [], "installroot": "/", "skip_broken": false}}, "changed": false, "results": ["git-1.8.3.1-14.el7_5.x86_64 providing git is already installed", "python2-pip-8.1.2-6.el7.noarch providing python2-pip is already installed"], "rc": 0}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303370.99-35781974170282/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"bugfix": false,
"conf_file": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": null,
"enable_plugin": [],
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"installroot": "/",
"list": null,
"name": [
"git",
"python2-pip"
],
"security": false,
"skip_broken": false,
"state": "installed",
"update_cache": false,
"update_only": false,
"validate_certs": true
}
},
"msg": "",
"rc": 0,
"results": [
"git-1.8.3.1-14.el7_5.x86_64 providing git is already installed",
"python2-pip-8.1.2-6.el7.noarch providing python2-pip is already installed"
]
}
TASK [Force upgrade pip] *********************************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:34
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069 `" && echo ansible-tmp-1540303373.51-219623888100069="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303373.51-219623888100069=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/language/pip.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmplwa774 TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/pip.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmplwa774 /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/pip.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmplwa774\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/pip.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:7559\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 7559 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/pip.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-vogbzlndjkixtgasiouvfyygpvdsnhel; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/pip.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"virtualenv": null, "changed": false, "requirements": null, "name": ["pip"], "stdout": "Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (18.1)\\n", "cmd": "/bin/pip2 install --upgrade pip", "state": "present", "version": null, "stderr": "/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\\n SNIMissingWarning\\n/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\\n InsecurePlatformWarning\\n", "invocation": {"module_args": {"virtualenv": null, "virtualenv_site_packages": false, "virtualenv_command": "virtualenv", "chdir": null, "requirements": null, "name": ["pip"], "virtualenv_python": null, "umask": null, "editable": false, "executable": null, "use_mirrors": true, "extra_args": "--upgrade", "state": "present", "version": null}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303373.51-219623888100069/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"cmd": "/bin/pip2 install --upgrade pip",
"invocation": {
"module_args": {
"chdir": null,
"editable": false,
"executable": null,
"extra_args": "--upgrade",
"name": [
"pip"
],
"requirements": null,
"state": "present",
"umask": null,
"use_mirrors": true,
"version": null,
"virtualenv": null,
"virtualenv_command": "virtualenv",
"virtualenv_python": null,
"virtualenv_site_packages": false
}
},
"name": [
"pip"
],
"requirements": null,
"state": "present",
"stderr": "/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n SNIMissingWarning\n/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecurePlatformWarning\n",
"stderr_lines": [
"/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings",
" SNIMissingWarning",
"/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings",
" InsecurePlatformWarning"
],
"stdout": "Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (18.1)\n",
"stdout_lines": [
"Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (18.1)"
],
"version": null,
"virtualenv": null
}
TASK [Install dependencies for Jenkins modules] **********************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:39
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219 `" && echo ansible-tmp-1540303376.36-86465873566219="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303376.36-86465873566219=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/packaging/language/pip.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpSMWTo_ TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/pip.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpSMWTo_ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/pip.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpSMWTo_\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/pip.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:7542\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 7542 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/pip.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-cqnsjqxihvgsihzdtiibpmdbzzloimtz; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/pip.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"virtualenv": null, "changed": false, "requirements": null, "name": ["python-jenkins"], "stdout": "Requirement already satisfied: python-jenkins in /usr/lib/python2.7/site-packages (1.3.0)\\nRequirement already satisfied: pbr>=0.8.2 in /usr/lib/python2.7/site-packages (from python-jenkins) (5.0.0)\\nRequirement already satisfied: multi-key-dict in /usr/lib/python2.7/site-packages (from python-jenkins) (2.0.3)\\nRequirement already satisfied: requests in /usr/lib/python2.7/site-packages (from python-jenkins) (1.1.0)\\nRequirement already satisfied: six>=1.3.0 in /usr/lib/python2.7/site-packages (from python-jenkins) (1.6.1)\\n", "cmd": "/bin/pip2 install python-jenkins", "state": "present", "version": null, "stderr": "", "invocation": {"module_args": {"virtualenv": null, "extra_args": null, "virtualenv_command": "virtualenv", "chdir": null, "requirements": null, "name": ["python-jenkins"], "virtualenv_python": null, "umask": null, "editable": false, "executable": null, "use_mirrors": true, "virtualenv_site_packages": false, "state": "present", "version": null}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303376.36-86465873566219/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [34.229.40.14] => {
"changed": false,
"cmd": "/bin/pip2 install python-jenkins",
"invocation": {
"module_args": {
"chdir": null,
"editable": false,
"executable": null,
"extra_args": null,
"name": [
"python-jenkins"
],
"requirements": null,
"state": "present",
"umask": null,
"use_mirrors": true,
"version": null,
"virtualenv": null,
"virtualenv_command": "virtualenv",
"virtualenv_python": null,
"virtualenv_site_packages": false
}
},
"name": [
"python-jenkins"
],
"requirements": null,
"state": "present",
"stderr": "",
"stderr_lines": [],
"stdout": "Requirement already satisfied: python-jenkins in /usr/lib/python2.7/site-packages (1.3.0)\nRequirement already satisfied: pbr>=0.8.2 in /usr/lib/python2.7/site-packages (from python-jenkins) (5.0.0)\nRequirement already satisfied: multi-key-dict in /usr/lib/python2.7/site-packages (from python-jenkins) (2.0.3)\nRequirement already satisfied: requests in /usr/lib/python2.7/site-packages (from python-jenkins) (1.1.0)\nRequirement already satisfied: six>=1.3.0 in /usr/lib/python2.7/site-packages (from python-jenkins) (1.6.1)\n",
"stdout_lines": [
"Requirement already satisfied: python-jenkins in /usr/lib/python2.7/site-packages (1.3.0)",
"Requirement already satisfied: pbr>=0.8.2 in /usr/lib/python2.7/site-packages (from python-jenkins) (5.0.0)",
"Requirement already satisfied: multi-key-dict in /usr/lib/python2.7/site-packages (from python-jenkins) (2.0.3)",
"Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (from python-jenkins) (1.1.0)",
"Requirement already satisfied: six>=1.3.0 in /usr/lib/python2.7/site-packages (from python-jenkins) (1.6.1)"
],
"version": null,
"virtualenv": null
}
TASK [Install build pipeline] ****************************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:43
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697 `" && echo ansible-tmp-1540303379.27-51591244177697="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303379.27-51591244177697=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jenkins_plugin.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp2pKLnK TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/jenkins_plugin.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp2pKLnK /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/jenkins_plugin.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmp2pKLnK\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/jenkins_plugin.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:26118\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 26118 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/jenkins_plugin.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jmaaztnruxoxatzhhsgifapmjwjkdovi; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/jenkins_plugin.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (0, '\r\n{"invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "owner": "jenkins", "follow": false, "client_key": null, "group": "jenkins", "use_proxy": true, "unsafe_writes": null, "serole": null, "updates_url": "https://updates.jenkins-ci.org", "content": null, "state": "present", "version": null, "updates_expiration": 86400, "params": null, "client_cert": null, "setype": null, "timeout": 30.0, "url_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "selevel": null, "force_basic_auth": true, "http_agent": "ansible-httpget", "regexp": null, "jenkins_home": "/var/lib/jenkins", "src": null, "name": "[\'build-pipeline-plugin\', \'workflow-aggregator\']", "url": "http://localhost:8080", "validate_certs": true, "seuser": null, "with_dependencies": true, "delimiter": null, "mode": "0644", "url_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "attributes": null, "backup": null}}, "state": "present", "changed": true, "plugin": "[\'build-pipeline-plugin\', \'workflow-aggregator\']"}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303379.27-51591244177697/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [34.229.40.14] => {
"changed": true,
"invocation": {
"module_args": {
"attributes": null,
"backup": null,
"client_cert": null,
"client_key": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": false,
"force": false,
"force_basic_auth": true,
"group": "jenkins",
"http_agent": "ansible-httpget",
"jenkins_home": "/var/lib/jenkins",
"mode": "0644",
"name": "['build-pipeline-plugin', 'workflow-aggregator']",
"owner": "jenkins",
"params": null,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "present",
"timeout": 30.0,
"unsafe_writes": null,
"updates_expiration": 86400,
"updates_url": "https://updates.jenkins-ci.org",
"url": "http://localhost:8080",
"url_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"url_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_proxy": true,
"validate_certs": true,
"version": null,
"with_dependencies": true
}
},
"plugin": "['build-pipeline-plugin', 'workflow-aggregator']",
"state": "present"
}
TASK [Set up pipeline] ***********************************************************************************************************************************************************************************************************************
task path: /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.yml:51
File lookup using /Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/_files/jobs.xml as file
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"''
<34.229.40.14> (0, '/home/ec2-user\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064 `" && echo ansible-tmp-1540303382.56-190839948327064="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064 `" ) && sleep 0'"'"''
<34.229.40.14> (0, 'ansible-tmp-1540303382.56-190839948327064=/home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jenkins_job.py
<34.229.40.14> PUT /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpIraIat TO /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/jenkins_job.py
<34.229.40.14> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 '[34.229.40.14]'
<34.229.40.14> (0, 'sftp> put /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpIraIat /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/jenkins_job.py\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug3: Sent message fd 12 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ec2-user size 0\r\ndebug3: Looking up /Users/jddaniel/.ansible/tmp/ansible-local-82980rZGqxw/tmpIraIat\r\ndebug3: Sent message fd 12 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/jenkins_job.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:3631\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 3631 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/ /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/jenkins_job.py && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 -tt 34.229.40.14 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bsogvzlsswhglrqstmltxwyeoykpqgsv; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/jenkins_job.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<34.229.40.14> (1, '\r\n{"msg": "python-jenkins required for this module. see http://python-jenkins.readthedocs.io/en/latest/install.html", "failed": true, "exception": " File \\"/tmp/ansible_DnWaWR/ansible_module_jenkins_job.py\\", line 151, in <module>\\n import jenkins\\n File \\"/usr/lib/python2.7/site-packages/jenkins/__init__.py\\", line 61, in <module>\\n from requests.packages.urllib3.exceptions import InsecureRequestWarning\\n", "invocation": {"module_args": {"name": "test-auto", "url": "http://localhost:8080", "enabled": null, "state": "present", "token": null, "user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "config": "<?xml version=\'1.0\' encoding=\'UTF-8\'?>\\n<flow-definition plugin=\\"workflow-job@2.10\\">\\n <actions/>\\n <description></description>\\n <keepDependencies>false</keepDependencies>\\n <properties>\\n <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>\\n <triggers/>\\n </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>\\n </properties>\\n <definition class=\\"org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition\\" plugin=\\"workflow-cps@2.30\\">\\n <script>\\n node { echo &apos;Hello World&apos; }\\n </script>\\n <sandbox>true</sandbox>\\n </definition>\\n <triggers/>\\n</flow-definition>"}}}\r\n', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to 34.229.40.14 closed.\r\n')
<34.229.40.14> ESTABLISH SSH CONNECTION FOR USER: ec2-user
<34.229.40.14> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/_keys/test-jenkins"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/Users/jddaniel/.ansible/cp/8ad97e2f42 34.229.40.14 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1540303382.56-190839948327064/ > /dev/null 2>&1 && sleep 0'"'"''
<34.229.40.14> (0, '', 'OpenSSH_7.6p1, LibreSSL 2.6.2\r\ndebug1: Reading configuration data /Users/jddaniel/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 82994\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
The full traceback is:
File "/tmp/ansible_DnWaWR/ansible_module_jenkins_job.py", line 151, in <module>
import jenkins
File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 61, in <module>
from requests.packages.urllib3.exceptions import InsecureRequestWarning
fatal: [34.229.40.14]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"config": "<?xml version='1.0' encoding='UTF-8'?>\n<flow-definition plugin=\"workflow-job@2.10\">\n <actions/>\n <description></description>\n <keepDependencies>false</keepDependencies>\n <properties>\n <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>\n <triggers/>\n </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>\n </properties>\n <definition class=\"org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition\" plugin=\"workflow-cps@2.30\">\n <script>\n node { echo &apos;Hello World&apos; }\n </script>\n <sandbox>true</sandbox>\n </definition>\n <triggers/>\n</flow-definition>",
"enabled": null,
"name": "test-auto",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"state": "present",
"token": null,
"url": "http://localhost:8080",
"user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
}
},
"msg": "python-jenkins required for this module. see http://python-jenkins.readthedocs.io/en/latest/install.html"
}
to retry, use: --limit @/Users/jddaniel/Repositories/Infra/Hashi/Terraform/terraform-jenkins/ansible/jenkins.retry
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
34.229.40.14 : ok=38 changed=2 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment