Skip to content

Instantly share code, notes, and snippets.

@petemounce
Created June 23, 2019 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petemounce/ccee3b32e19a0f7c21abf9a2868d8695 to your computer and use it in GitHub Desktop.
Save petemounce/ccee3b32e19a0f7c21abf9a2868d8695 to your computer and use it in GitHub Desktop.
---
all:
hosts:
1.2.3.4
vars:
# https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#windows-ssh-setup
# Windows works differently than unix; with Windows, we don't need become because typically the user will be an administrator to be able to do anything at all.
# With ansible_become: true on Windows, you get a ShellModule error.
ansible_become: false
ansible_connection: ssh
# When powershell, Windows must also have HKLM:/SOFTWARE/OpenSSH set up.
ansible_shell_type: powershell
ansible_ssh_private_key_file: "/Users/myusername/src/ip/platform/private_key"
ansible_user: packer_user
ansible_host_key_checking: false
ansible_pipelining: true # conflicts with 'become', see ansible docs. But Windows has become:false, so use it there.
# defaults are "-C -o ControlMaster=auto -o ControlPersist=60s"
# ansible_ssh_args: ""
---
- hosts: all
gather_facts: true
vars:
id: 1
tasks:
- name: set an environment variable at machine-level
win_environment:
name: "{{ item.thing }}"
level: "{{ item.level }}"
value: "{{ item.thing }}"
with_items:
- {thing: "machine_level{{ id }}", level: machine}
- {thing: "user_level{{ id }}", level: user}
- {thing: "process_level{{ id }}", level: process}
- name: add an element to machine PATH
win_path:
elements:
- 'c:\machine{{ id }}'
- 'C:\Windows\System32'
state: present
- name: add an element to user PATH
win_path:
elements:
- 'c:\user{{ id }}'
scope: user
state: present
- name: assert expectations before sshd restart
win_shell: |
echo "machine - $($env:machine_level{{ id }})"
echo "user - $($env:user_level{{ id }})"
echo "process - $($env:process_level{{ id }})"
echo "PATH - $($env:PATH)"
- name: restart sshd
win_service:
name: sshd
state: restarted
async: 60
poll: 0
register: sshd_restart
- name: wait for connectivity to be resumed after sshd restart
async_status:
jid: "{{ sshd_restart.ansible_job_id }}"
register: job_result
until: job_result.finished
retries: 60
delay: 1
- name: assert expectations after sshd restart
win_shell: |
echo "machine - $($env:machine_level{{ id }})"
echo "user - $($env:user_level{{ id }})"
echo "process - $($env:process_level{{ id }})"
echo "PATH - $($env:PATH)"
- name: reset
meta: reset_connection
- name: assert expectations after reset connection
win_shell: |
echo "machine - $($env:machine_level{{ id }})"
echo "user - $($env:user_level{{ id }})"
echo "process - $($env:process_level{{ id }})"
echo "PATH - $($env:PATH)"
$ ansible -i ssh.yml -m win_ping all -v
Using /Users/myusername/scratch/ansible.cfg as config file
1.2.3.4 | SUCCESS => {
"changed": false,
"ping": "pong"
}
myusername at myusername-mac-c02xp0p7jgh6 in ~/scratch (bk/ENG-544-cippuku-nanny●●)
$ ansible-playbook -i ssh.yml playbook.yml -vvvv --extra-vars "debug=true id=1"
ansible-playbook 2.8.1
config file = /Users/myusername/scratch/ansible.cfg
configured module search path = [u'/Users/myusername/.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.16 (default, Apr 12 2019, 15:32:40) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)]
Using /Users/myusername/scratch/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /Users/myusername/scratch/ssh.yml as it did not pass it's verify_file() method
script declined parsing /Users/myusername/scratch/ssh.yml as it did not pass it's verify_file() method
Parsed /Users/myusername/scratch/ssh.yml inventory source with yaml plugin
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
Loading callback plugin profile_tasks of type aggregate, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/profile_tasks.pyc
Loading callback plugin timer of type aggregate, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/timer.pyc
PLAYBOOK: playbook.yml *******************************************************************************************************************************************************************************************************************
Positional arguments: playbook.yml
become_method: sudo
inventory: (u'/Users/myusername/scratch/ssh.yml',)
forks: 5
tags: (u'all',)
extra_vars: (u'debug=true id=1',)
verbosity: 4
connection: smart
timeout: 10
1 plays in playbook.yml
PLAY [all] *******************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:2
Sunday 23 June 2019 23:38:35 +0100 (0:00:00.118) 0:00:00.119 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/setup.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEI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AHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (1, '{"changed":false,"ansible_facts":{"ansible_ip_addresses":["10.49.0.10","fe80::f105:c294:2850:9b1a"],"ansible_windows_domain_role":"Stand-alone server","ansible_distribution_version":"10.0.14393.0","ansible_distribution_major_version":"10","ansible_os_name":"Microsoft Windows Server 2016 Datacenter","ansible_system_description":"","ansible_machine_id":"S-1-5-21-2333966996-955903950-2426413611","ansible_product_serial":"GoogleCloud-282D7A5EF1C63C38C37CB935C5827C56","ansible_system_vendor":"Google","ansible_owner_contact":"","ansible_user_id":"remote_user","ansible_date_time":{"time":"22:38:41","date":"2019-06-23","second":"41","tz":"Greenwich Standard Time","iso8601_micro":"2019-06-23T22:38:41.697682Z","iso8601_basic_short":"20190623T223841","minute":"38","day":"23","weekday":"Sunday","iso8601":"2019-06-23T22:38:41Z","tz_offset":"+00:00","iso8601_basic":"20190623T223841697682","epoch":"1561329521.69768","weekday_number":"0","hour":"22","year":"2019","month":"06","weeknumber":"24"},"ansible_user_sid":"S-1-5-21-2333966996-955903950-2426413611-1000","ansible_powershell_version":5,"ansible_processor":["GenuineIntel","Intel(R) Xeon(R) CPU @ 2.30GHz","GenuineIntel","Intel(R) Xeon(R) CPU @ 2.30GHz"],"ansible_domain":"","ansible_uptime_seconds":296,"ansible_architecture":"64-bit","ansible_win_rm_certificate_expires":"2020-06-22 22:34:34","ansible_windows_domain_member":false,"ansible_swaptotal_mb":0,"ansible_hostname":"INSTANCE-3","ansible_os_family":"Windows","ansible_virtualization_role":"NA","ansible_user_gecos":"","ansible_processor_count":1,"ansible_os_product_type":"server","ansible_user_dir":"C:\\\\Users\\\\remote_user","ansible_bios_version":"Google","ansible_virtualization_type":"NA","ansible_lastboot":"2019-06-23 22:33:50Z","ansible_distribution":"Microsoft Windows Server 2016 Datacenter","ansible_bios_date":"01/01/2011","ansible_processor_cores":1,"ansible_product_name":"Google Compute Engine","ansible_interfaces":[{"connection_name":"Ethernet","interface_name":"Google VirtIO Ethernet Adapter","macaddress":"42:01:0A:31:00:0A","default_gateway":"10.49.0.1","interface_index":3,"dns_domain":"c.solar-virtue-183310.internal"}],"ansible_processor_threads_per_core":2,"ansible_memtotal_mb":7680,"ansible_processor_vcpus":2,"module_setup":true,"ansible_nodename":"instance-3.","ansible_fqdn":"instance-3.","gather_subset":["all"],"ansible_kernel":"10.0.14393.0","ansible_env":{"HOME":"C:\\\\Users\\\\remote_user","ComSpec":"C:\\\\Windows\\\\system32\\\\cmd.exe","c28fc6f98a2c44abbbd89d6a3037d0d9_POSIX_FD_STATE":"AAAAAAICAgA=","LOCALAPPDATA":"C:\\\\Users\\\\remote_user\\\\AppData\\\\Local","PSModulePath":"C:\\\\Users\\\\remote_user\\\\Documents\\\\WindowsPowerShell\\\\Modules;C:\\\\Program Files (x86)\\\\WindowsPowerShell\\\\Modules;C:\\\\Program Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules;C:\\\\Program Files (x86)\\\\Google\\\\Cloud SDK\\\\google-cloud-sdk\\\\platform\\\\PowerShell","SystemRoot":"C:\\\\Windows","ProgramData":"C:\\\\ProgramData","SHELL":"c:\\\\windows\\\\system32\\\\windowspowershell\\\\v1.0\\\\powershell.exe","ALLUSERSPROFILE":"C:\\\\ProgramData","CommonProgramFiles(x86)":"C:\\\\Program Files (x86)\\\\Common Files","SSH_CONNECTION":"82.71.9.253 52906 10.49.0.10 22","ProgramW6432":"C:\\\\Program Files","Path":"C:\\\\Program Files\\\\OpenSSH-Win64;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\ProgramData\\\\GooGet;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\metadata_scripts;C:\\\\Program Files (x86)\\\\Google\\\\Cloud SDK\\\\google-cloud-sdk\\\\bin;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\sysprep;C:\\\\Windows\\\\system32\\\\config\\\\systemprofile\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\Program Files\\\\OpenSSH-Win64;;C:\\\\Users\\\\remote_user\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;","USERPROFILE":"C:\\\\Users\\\\remote_user","OS":"Windows_NT","GooGetRoot":"C:\\\\ProgramData\\\\GooGet","ProgramFiles(x86)":"C:\\\\Program Files (x86)","PSExecutionPolicyPreference":"Unrestricted","USERDOMAIN":"WORKGROUP","SystemDrive":"C:","CommonProgramFiles":"C:\\\\Program Files\\\\Common Files","LOGNAME":"remote_user","ProgramFiles":"C:\\\\Program Files","USERNAME":"remote_user","PROCESSOR_LEVEL":"6","SSH_CLIENT":"82.71.9.253 52906 22","COMPUTERNAME":"INSTANCE-3","USER":"remote_user","NUMBER_OF_PROCESSORS":"2","HOMEPATH":"\\\\Users\\\\remote_user","PUBLIC":"C:\\\\Users\\\\Public","PROCESSOR_REVISION":"3f00","APPDATA":"C:\\\\Users\\\\remote_user\\\\AppData\\\\Roaming","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 63 Stepping 0, GenuineIntel","HOMEDRIVE":"C:","PROCESSOR_ARCHITECTURE":"AMD64","CommonProgramW6432":"C:\\\\Program Files\\\\Common Files","PROMPT":"remote_user@INSTANCE-3 $P$G","windir":"C:\\\\Windows","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL","TEMP":"C:\\\\Users\\\\remote_user\\\\AppData\\\\Local\\\\Temp","TMP":"C:\\\\Users\\\\remote_user\\\\AppData\\\\Local\\\\Temp"},"ansible_windows_domain":"WORKGROUP","ansible_reboot_pending":false,"ansible_system":"Win32NT","ansible_owner_name":""}}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/Users/myusername/.ansible/cp/0facc3efe3" does not exist\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to 1.2.3.4 [1.2.3.4] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9495 ms remain after connect\r\ndebug1: identity file /Users/myusername/src/ip/platform/private_key type 0\r\ndebug1: identity file /Users/myusername/src/ip/platform/private_key-cert type -1\r\ndebug1: identity file /Users/myusername/.ssh/dot-ssh/personal/id_rsa type -1\r\ndebug1: identity file /Users/myusername/.ssh/dot-ssh/personal/id_rsa-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.9\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_7.9\r\ndebug1: match: OpenSSH_for_Windows_7.9 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 1.2.3.4:22 as \'remote_user\'\r\ndebug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:12\r\ndebug3: load_hostkeys: loaded 1 keys from 1.2.3.4\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-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,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-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: 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-group14-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519\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: none\r\ndebug2: compression stoc: none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:b9wPHHObjqtLF3s83mEfPgnQn7W21c+SDuTIhhg52NY\r\ndebug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:12\r\ndebug3: load_hostkeys: loaded 1 keys from 1.2.3.4\r\ndebug1: Host \'1.2.3.4\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/myusername/.ssh/known_hosts:12\r\nHost key fingerprint is SHA256:b9wPHHObjqtLF3s83mEfPgnQn7W21c+SDuTIhhg52NY\n+---[ECDSA 256]---+\n| |\n| |\n| . |\n| o o . . .|\n| . * E * o =|\n| . + = * O Bo|\n| . . O O O*=|\n| + . O=**|\n| oooo=o+|\n+----[SHA256]-----+\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 134217728 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 134217728 blocks\r\ndebug1: Will attempt key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit\r\ndebug1: Will attempt key: /Users/myusername/.ssh/dot-ssh/personal/id_rsa explicit\r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>\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,password,keyboard-interactive\r\ndebug3: start over, passed a different list publickey,password,keyboard-interactive\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: Search for item with query: {\n acct = "/Users/myusername/src/ip/platform/private_key";\n agrp = "com.apple.ssh.passphrases";\n class = genp;\n labl = "SSH: /Users/myusername/src/ip/platform/private_key";\n nleg = 1;\n "r_Data" = 1;\n svce = OpenSSH;\n "u_AuthUI" = "u_AuthUIF";\n}\r\ndebug2: using passphrase from keychain\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 1.2.3.4 ([1.2.3.4]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /Users/myusername/.ansible/cp/0facc3efe3.hh8suNEDkuAC7zuL\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/myusername/.ansible/cp/0facc3efe3]\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 0x20\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 10026\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: mux_master_process_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: mux_master_process_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 10028\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 2879\r\ndebug2: mux_master_process_new_session: channel 1: request tty 0, X 0, agent 1, subsys 0, term "xterm-256color", cmd "chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARw\r\ndebug3: mux_master_process_new_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: mux_master_process_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 80\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 2: request auth-agent-req@openssh.com confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_GB.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEE\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\ndebug3: receive packet: type 4\r\ndebug1: Remote: Agent forwarding disabled: mkdtemp() failed: No such file or directory\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\ndebug2: channel 2: read<=0 rfd 6 len 0\r\ndebug2: channel 2: read failed\r\ndebug2: channel 2: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 2: input open -> drain\r\ndebug2: channel 2: ibuf empty\r\ndebug2: channel 2: send eof\r\ndebug3: send packet: type 96\r\ndebug2: channel 2: input drain -> closed\r\ndebug2: channel 2: rcvd ext data 11\r\n#< CLIXML\r\ndebug2: channel 2: written 11 to efd 8\r\ndebug2: channel 2: rcvd ext data 256\r\ndebug2: channel 2: rcvd ext data 125\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug2: channel 2: written 381 to efd 8\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: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 2: output drain -> closed\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 1\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: chan_shutdown_read (i0 o1 sock 5 wfd 5 efd -1 [closed])\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 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i3 o1 sock 5 wfd 5 efd -1 [closed])\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\ndebug3: mux_client_read_packet: read header failed: Broken pipe\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 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug2: Received exit status from master 1\r\n')
<1.2.3.4> Failed to connect to the host via ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/myusername/.ssh/config
debug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0
debug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common
debug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *
debug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0
debug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce
debug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0
debug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin
debug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 1: Applying options for *
debug2: checking match for 'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh' host 1.2.3.4 originally 1.2.3.4
debug3: /etc/ssh/ssh_config line 7: not matched 'canonical'
debug3: /etc/ssh/ssh_config line 7: not matched 'host "1.2.3.4"'
debug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"
debug2: match not found
debug2: resolve_canonicalize: hostname 1.2.3.4 is address
debug1: auto-mux: Trying existing master
debug1: Control socket "/Users/myusername/.ansible/cp/0facc3efe3" does not exist
debug2: ssh_connect_direct
debug1: Connecting to 1.2.3.4 [1.2.3.4] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 9495 ms remain after connect
debug1: identity file /Users/myusername/src/ip/platform/private_key type 0
debug1: identity file /Users/myusername/src/ip/platform/private_key-cert type -1
debug1: identity file /Users/myusername/.ssh/dot-ssh/personal/id_rsa type -1
debug1: identity file /Users/myusername/.ssh/dot-ssh/personal/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_7.9
debug1: match: OpenSSH_for_Windows_7.9 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 1.2.3.4:22 as 'remote_user'
debug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:12
debug3: load_hostkeys: loaded 1 keys from 1.2.3.4
debug3: 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
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: 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-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: 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,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: 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
debug2: 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
debug2: compression ctos: zlib@openssh.com,zlib,none
debug2: compression stoc: zlib@openssh.com,zlib,none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: 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-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: 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
debug2: 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
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:b9wPHHObjqtLF3s83mEfPgnQn7W21c+SDuTIhhg52NY
debug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:12
debug3: load_hostkeys: loaded 1 keys from 1.2.3.4
debug1: Host '1.2.3.4' is known and matches the ECDSA host key.
debug1: Found key in /Users/myusername/.ssh/known_hosts:12
Host key fingerprint is SHA256:b9wPHHObjqtLF3s83mEfPgnQn7W21c+SDuTIhhg52NY
+---[ECDSA 256]---+
| |
| |
| . |
| o o . . .|
| . * E * o =|
| . + = * O Bo|
| . . O O O*=|
| + . O=**|
| oooo=o+|
+----[SHA256]-----+
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug1: Will attempt key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit
debug1: Will attempt key: /Users/myusername/.ssh/dot-ssh/personal/id_rsa explicit
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey
debug3: authmethod_lookup publickey
debug3: remaining preferred: ,gssapi-keyex,hostbased,publickey
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit
debug3: sign_and_send_pubkey: RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw
debug3: sign_and_send_pubkey: signing using rsa-sha2-512
debug3: Search for item with query: {
acct = "/Users/myusername/src/ip/platform/private_key";
agrp = "com.apple.ssh.passphrases";
class = genp;
labl = "SSH: /Users/myusername/src/ip/platform/private_key";
nleg = 1;
"r_Data" = 1;
svce = OpenSSH;
"u_AuthUI" = "u_AuthUIF";
}
debug2: using passphrase from keychain
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to 1.2.3.4 ([1.2.3.4]:22).
debug1: setting up multiplex master socket
debug3: muxserver_listen: temporary control path /Users/myusername/.ansible/cp/0facc3efe3.hh8suNEDkuAC7zuL
debug2: fd 4 setting O_NONBLOCK
debug3: fd 4 is O_NONBLOCK
debug3: fd 4 is O_NONBLOCK
debug1: channel 0: new [/Users/myusername/.ansible/cp/0facc3efe3]
debug3: muxserver_listen: mux listener channel 0 fd 4
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x20
debug1: control_persist_detach: backgrounding master process
debug2: control_persist_detach: background process is 10026
debug2: fd 4 setting O_NONBLOCK
debug1: forking to background
debug1: Entering interactive session.
debug1: pledge: id
debug2: set_control_persist_exit_time: schedule exit in 60 seconds
debug1: multiplexing control connection
debug3: fd 5 is O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 1: new [mux-control]
debug3: channel_post_mux_listener: new mux channel 1 fd 5
debug3: mux_master_read_cb: channel 1: hello sent
debug2: set_control_persist_exit_time: cancel scheduled exit
debug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4
debug2: mux_master_process_hello: channel 1 slave version 4
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4
debug2: mux_master_process_alive_check: channel 1: alive check
debug3: mux_client_request_alive: done pid = 10028
debug3: mux_client_request_session: session request sent
debug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 2879
debug2: mux_master_process_new_session: channel 1: request tty 0, X 0, agent 1, subsys 0, term "xterm-256color", cmd "chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARw
debug3: mux_master_process_new_session: got fds stdin 6, stdout 7, stderr 8
debug2: fd 6 setting O_NONBLOCK
debug2: fd 7 setting O_NONBLOCK
debug2: fd 8 setting O_NONBLOCK
debug1: channel 2: new [client-session]
debug2: mux_master_process_new_session: channel_new: 2 linked to control channel 1
debug2: channel 2: send open
debug3: send packet: type 90
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 2: callback start
debug1: Requesting authentication agent forwarding.
debug2: channel 2: request auth-agent-req@openssh.com confirm 0
debug3: send packet: type 98
debug2: client_session2_setup: id 2
debug1: Sending environment.
debug1: Sending env LANG = en_GB.UTF-8
debug2: channel 2: request env confirm 0
debug3: send packet: type 98
debug1: Sending command: chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEE
debug2: channel 2: request exec confirm 1
debug3: send packet: type 98
debug3: mux_session_confirm: sending success reply
debug2: channel_input_open_confirmation: channel 2: callback done
debug2: channel 2: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 4
debug1: Remote: Agent forwarding disabled: mkdtemp() failed: No such file or directory
debug2: channel 2: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 2
debug2: exec request accepted on channel 2
debug2: channel 2: read<=0 rfd 6 len 0
debug2: channel 2: read failed
debug2: channel 2: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])
debug2: channel 2: input open -> drain
debug2: channel 2: ibuf empty
debug2: channel 2: send eof
debug3: send packet: type 96
debug2: channel 2: input drain -> closed
debug2: channel 2: rcvd ext data 11
#< CLIXML
debug2: channel 2: written 11 to efd 8
debug2: channel 2: rcvd ext data 256
debug2: channel 2: rcvd ext data 125
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug2: channel 2: written 381 to efd 8
debug3: receive packet: type 96
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: channel 2: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])
debug2: channel 2: output drain -> closed
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug3: mux_exit_message: channel 2: exit message, exitval 1
debug3: receive packet: type 97
debug2: channel 2: rcvd close
debug3: channel 2: will not send data after close
debug2: channel 2: send close
debug3: send packet: type 97
debug2: channel 2: is dead
debug2: channel 2: gc: notify user
debug3: mux_master_session_cleanup_cb: entering for channel 2
debug2: channel 1: rcvd close
debug2: channel 1: output open -> drain
debug2: channel 1: chan_shutdown_read (i0 o1 sock 5 wfd 5 efd -1 [closed])
debug2: channel 1: input open -> closed
debug2: channel 2: gc: user detached
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: client-session, nchannels 3
debug3: channel 2: status: The following connections are open:
#1 mux-control (t16 nr0 i3/0 o1/16 e[closed]/0 fd 5/5/-1 sock 5 cc -1)
#2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)
debug2: channel 1: obuf empty
debug2: channel 1: chan_shutdown_write (i3 o1 sock 5 wfd 5 efd -1 [closed])
debug2: channel 1: output drain -> closed
debug2: channel 1: is dead (local)
debug2: channel 1: gc: notify user
debug3: mux_master_control_cleanup_cb: entering for channel 1
debug2: channel 1: gc: user detached
debug2: channel 1: is dead (local)
debug2: channel 1: garbage collecting
debug3: mux_client_read_packet: read header failed: Broken pipe
debug1: channel 1: free: mux-control, nchannels 2
debug3: channel 1: status: The following connections are open:
#1 mux-control (t16 nr0 i3/0 o3/0 e[closed]/0 fd 5/5/-1 sock 5 cc -1)
debug2: set_control_persist_exit_time: schedule exit in 60 seconds
debug2: Received exit status from master 1
ok: [1.2.3.4] => {
"ansible_facts": {
"ansible_architecture": "64-bit",
"ansible_bios_date": "01/01/2011",
"ansible_bios_version": "Google",
"ansible_date_time": {
"date": "2019-06-23",
"day": "23",
"epoch": "1561329521.69768",
"hour": "22",
"iso8601": "2019-06-23T22:38:41Z",
"iso8601_basic": "20190623T223841697682",
"iso8601_basic_short": "20190623T223841",
"iso8601_micro": "2019-06-23T22:38:41.697682Z",
"minute": "38",
"month": "06",
"second": "41",
"time": "22:38:41",
"tz": "Greenwich Standard Time",
"tz_offset": "+00:00",
"weekday": "Sunday",
"weekday_number": "0",
"weeknumber": "24",
"year": "2019"
},
"ansible_distribution": "Microsoft Windows Server 2016 Datacenter",
"ansible_distribution_major_version": "10",
"ansible_distribution_version": "10.0.14393.0",
"ansible_domain": "",
"ansible_env": {
"ALLUSERSPROFILE": "C:\\ProgramData",
"APPDATA": "C:\\Users\\remote_user\\AppData\\Roaming",
"COMPUTERNAME": "INSTANCE-3",
"ComSpec": "C:\\Windows\\system32\\cmd.exe",
"CommonProgramFiles": "C:\\Program Files\\Common Files",
"CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
"CommonProgramW6432": "C:\\Program Files\\Common Files",
"GooGetRoot": "C:\\ProgramData\\GooGet",
"HOME": "C:\\Users\\remote_user",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\remote_user",
"LOCALAPPDATA": "C:\\Users\\remote_user\\AppData\\Local",
"LOGNAME": "remote_user",
"NUMBER_OF_PROCESSORS": "2",
"OS": "Windows_NT",
"PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",
"PROCESSOR_ARCHITECTURE": "AMD64",
"PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 63 Stepping 0, GenuineIntel",
"PROCESSOR_LEVEL": "6",
"PROCESSOR_REVISION": "3f00",
"PROMPT": "remote_user@INSTANCE-3 $P$G",
"PSExecutionPolicyPreference": "Unrestricted",
"PSModulePath": "C:\\Users\\remote_user\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\platform\\PowerShell",
"PUBLIC": "C:\\Users\\Public",
"Path": "C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;",
"ProgramData": "C:\\ProgramData",
"ProgramFiles": "C:\\Program Files",
"ProgramFiles(x86)": "C:\\Program Files (x86)",
"ProgramW6432": "C:\\Program Files",
"SHELL": "c:\\windows\\system32\\windowspowershell\\v1.0\\powershell.exe",
"SSH_CLIENT": "82.71.9.253 52906 22",
"SSH_CONNECTION": "82.71.9.253 52906 10.49.0.10 22",
"SystemDrive": "C:",
"SystemRoot": "C:\\Windows",
"TEMP": "C:\\Users\\remote_user\\AppData\\Local\\Temp",
"TMP": "C:\\Users\\remote_user\\AppData\\Local\\Temp",
"USER": "remote_user",
"USERDOMAIN": "WORKGROUP",
"USERNAME": "remote_user",
"USERPROFILE": "C:\\Users\\remote_user",
"c28fc6f98a2c44abbbd89d6a3037d0d9_POSIX_FD_STATE": "AAAAAAICAgA=",
"windir": "C:\\Windows"
},
"ansible_fqdn": "instance-3.",
"ansible_hostname": "INSTANCE-3",
"ansible_interfaces": [
{
"connection_name": "Ethernet",
"default_gateway": "10.49.0.1",
"dns_domain": "c.solar-virtue-183310.internal",
"interface_index": 3,
"interface_name": "Google VirtIO Ethernet Adapter",
"macaddress": "42:01:0A:31:00:0A"
}
],
"ansible_ip_addresses": [
"10.49.0.10",
"fe80::f105:c294:2850:9b1a"
],
"ansible_kernel": "10.0.14393.0",
"ansible_lastboot": "2019-06-23 22:33:50Z",
"ansible_machine_id": "S-1-5-21-2333966996-955903950-2426413611",
"ansible_memtotal_mb": 7680,
"ansible_nodename": "instance-3.",
"ansible_os_family": "Windows",
"ansible_os_name": "Microsoft Windows Server 2016 Datacenter",
"ansible_os_product_type": "server",
"ansible_owner_contact": "",
"ansible_owner_name": "",
"ansible_powershell_version": 5,
"ansible_processor": [
"GenuineIntel",
"Intel(R) Xeon(R) CPU @ 2.30GHz",
"GenuineIntel",
"Intel(R) Xeon(R) CPU @ 2.30GHz"
],
"ansible_processor_cores": 1,
"ansible_processor_count": 1,
"ansible_processor_threads_per_core": 2,
"ansible_processor_vcpus": 2,
"ansible_product_name": "Google Compute Engine",
"ansible_product_serial": "GoogleCloud-282D7A5EF1C63C38C37CB935C5827C56",
"ansible_reboot_pending": false,
"ansible_swaptotal_mb": 0,
"ansible_system": "Win32NT",
"ansible_system_description": "",
"ansible_system_vendor": "Google",
"ansible_uptime_seconds": 296,
"ansible_user_dir": "C:\\Users\\remote_user",
"ansible_user_gecos": "",
"ansible_user_id": "remote_user",
"ansible_user_sid": "S-1-5-21-2333966996-955903950-2426413611-1000",
"ansible_virtualization_role": "NA",
"ansible_virtualization_type": "NA",
"ansible_win_rm_certificate_expires": "2020-06-22 22:34:34",
"ansible_windows_domain": "WORKGROUP",
"ansible_windows_domain_member": false,
"ansible_windows_domain_role": "Stand-alone server",
"gather_subset": [
"all"
],
"module_setup": true
},
"changed": false
}
META: ran handlers
TASK [set an environment variable at machine-level] **************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:8
Sunday 23 June 2019 23:38:47 +0100 (0:00:12.304) 0:00:12.423 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_environment.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -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QQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"changed":true,"invocation":{"module_args":{"level":"machine","state":"present","name":"machine_level1","value":"machine_level1"}},"before_value":null,"value":"machine_level1"}\r\n\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => (item={u'thing': u'machine_level1', u'level': u'machine'}) => {
"ansible_loop_var": "item",
"before_value": null,
"changed": true,
"invocation": {
"module_args": {
"level": "machine",
"name": "machine_level1",
"state": "present",
"value": "machine_level1"
}
},
"item": {
"level": "machine",
"thing": "machine_level1"
},
"value": "machine_level1"
}
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_environment.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQB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EIAaABBAEgAawBBAGIAQQBCAHYAQQBHAEUAQQBaAEEAQQBpAEEAQwBBAEEAZgBRAEEASwBBAEYATQBBAFoAUQBCADAAQQBDADAAQQBWAGcAQgBoAEEASABJAEEAYQBRAEIAaABBAEcASQBBAGIAQQBCAGwAQQBDAEEAQQBMAFEAQgBPAEEARwBFAEEAYgBRAEIAbABBAEMAQQBBAGEAZwBCAHoAQQBHADgAQQBiAGcAQgBmAEEASABJAEEAWQBRAEIAMwBBAEMAQQBBAEwAUQBCAFcAQQBHAEUAQQBiAEEAQgAxAEEARwBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"changed":true,"invocation":{"module_args":{"level":"user","state":"present","name":"user_level1","value":"user_level1"}},"before_value":null,"value":"user_level1"}\r\n\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => (item={u'thing': u'user_level1', u'level': u'user'}) => {
"ansible_loop_var": "item",
"before_value": null,
"changed": true,
"invocation": {
"module_args": {
"level": "user",
"name": "user_level1",
"state": "present",
"value": "user_level1"
}
},
"item": {
"level": "user",
"thing": "user_level1"
},
"value": "user_level1"
}
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_environment.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIA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EAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"changed":true,"invocation":{"module_args":{"level":"process","state":"present","name":"process_level1","value":"process_level1"}},"before_value":null,"value":"process_level1"}\r\n\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => (item={u'thing': u'process_level1', u'level': u'process'}) => {
"ansible_loop_var": "item",
"before_value": null,
"changed": true,
"invocation": {
"module_args": {
"level": "process",
"name": "process_level1",
"state": "present",
"value": "process_level1"
}
},
"item": {
"level": "process",
"thing": "process_level1"
},
"value": "process_level1"
}
TASK [add an element to machine PATH] ****************************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:18
Sunday 23 June 2019 23:38:57 +0100 (0:00:10.198) 0:00:22.622 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_path.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARwBVAEEAZQBBAEIAbABBAEcATQBBAFgAdwBCADMAQQBIAEkAQQBZAFEAQgB3AEEASABBAEEAWgBRAEIAeQBBAEYAOABBAGMAdwBCADAAQQBIAEkAQQBMAGcAQgBUAEEASABBAEEAYgBBAEIAcABBAEgAUQBBAEsAQQBCAEEAQQBDAGcAQQBJAGcAQgBnAEEARABBAEEAWQBBAEE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wBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"changed":true,"path_value":"C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\ProgramData\\\\GooGet;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\metadata_scripts;C:\\\\Program Files (x86)\\\\Google\\\\Cloud SDK\\\\google-cloud-sdk\\\\bin;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\sysprep;C:\\\\Windows\\\\system32\\\\config\\\\systemprofile\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\Program Files\\\\OpenSSH-Win64;c:\\\\machine1;C:\\\\Windows\\\\System32"}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => {
"changed": true,
"path_value": "C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;c:\\machine1;C:\\Windows\\System32"
}
TASK [add an element to user PATH] *******************************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:25
Sunday 23 June 2019 23:39:00 +0100 (0:00:02.738) 0:00:25.361 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_path.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGw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EgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"changed":true,"path_value":"%USERPROFILE%\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\user1"}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => {
"changed": true,
"path_value": "%USERPROFILE%\\AppData\\Local\\Microsoft\\WindowsApps;c:\\user1"
}
TASK [assert expectations before sshd restart] *******************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:32
Sunday 23 June 2019 23:39:03 +0100 (0:00:02.977) 0:00:28.338 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_shell.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARwBVAEEAZQBBAEIAbABBAEcATQBBAFgAdwBCADMAQQBIAEkAQQBZAFEAQgB3AEEASABBAEEAWgB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EARwBFAEEAYgBRAEIAbABBAEMAQQBBAGEAZwBCAHoAQQBHADgAQQBiAGcAQgBmAEEASABJAEEAWQBRAEIAMwBBAEMAQQBBAEwAUQBCAFcAQQBHAEUAQQBiAEEAQgAxAEEARwBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"start":"2019-06-23 10:39:07.418520","stdout":"machine - \\r\\nuser - \\r\\nprocess - \\r\\nPATH - C:\\\\Program Files\\\\OpenSSH-Win64;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\ProgramData\\\\GooGet;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\metadata_scripts;C:\\\\Program Files (x86)\\\\Google\\\\Cloud SDK\\\\google-cloud-sdk\\\\bin;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\sysprep;C:\\\\Windows\\\\system32\\\\config\\\\systemprofile\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\Program Files\\\\OpenSSH-Win64;;C:\\\\Users\\\\remote_user\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;\\r\\n","cmd":"echo \\"machine - $($env:machine_level1)\\"\\necho \\"user - $($env:user_level1)\\"\\necho \\"process - $($env:process_level1)\\"\\necho \\"PATH - $($env:PATH)\\"","stderr":"","changed":true,"rc":0,"delta":"0:00:01.132812","end":"2019-06-23 10:39:08.551332"}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => {
"changed": true,
"cmd": "echo \"machine - $($env:machine_level1)\"\necho \"user - $($env:user_level1)\"\necho \"process - $($env:process_level1)\"\necho \"PATH - $($env:PATH)\"",
"delta": "0:00:01.132812",
"end": "2019-06-23 10:39:08.551332",
"rc": 0,
"start": "2019-06-23 10:39:07.418520",
"stderr": "",
"stderr_lines": [],
"stdout": "machine - \r\nuser - \r\nprocess - \r\nPATH - C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;\r\n",
"stdout_lines": [
"machine - ",
"user - ",
"process - ",
"PATH - C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;"
]
}
TASK [restart sshd] **********************************************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:39
Sunday 23 June 2019 23:39:08 +0100 (0:00:05.166) 0:00:33.505 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_service.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0AR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YwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"_ansible_suppress_tmpdir_delete":true,"started":1,"ansible_async_watchdog_pid":3608,"results_file":"C:\\\\Users\\\\remote_user\\\\.ansible_async\\\\814083505908.1432","finished":0,"ansible_job_id":"814083505908.1432"}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [1.2.3.4] => {
"ansible_async_watchdog_pid": 3608,
"ansible_job_id": "814083505908.1432",
"changed": false,
"finished": 0,
"results_file": "C:\\Users\\remote_user\\.ansible_async\\814083505908.1432",
"started": 1
}
TASK [wait for connectivity to be resumed after sshd restart] ****************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:47
Sunday 23 June 2019 23:39:13 +0100 (0:00:04.879) 0:00:38.385 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/async_status.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARwBVAEEAZQBBAEIAbABBAEcAT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EIAaABBAEcASQBBAGIAQQBCAGwAQQBDAEEAQQBMAFEAQgBPAEEARwBFAEEAYgBRAEIAbABBAEMAQQBBAGEAZwBCAHoAQQBHADgAQQBiAGcAQgBmAEEASABJAEEAWQBRAEIAMwBBAEMAQQBBAEwAUQBCAFcAQQBHAEUAQQBiAEEAQgAxAEEARwBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"_ansible_suppress_tmpdir_delete":true,"started":1,"ansible_async_watchdog_pid":3608,"results_file":"C:\\\\Users\\\\remote_user\\\\.ansible_async\\\\814083505908.1432","finished":0,"ansible_job_id":"814083505908.1432","changed":false}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
FAILED - RETRYING: wait for connectivity to be resumed after sshd restart (60 retries left).Result was: {
"ansible_async_watchdog_pid": 3608,
"ansible_job_id": "814083505908.1432",
"attempts": 1,
"changed": false,
"finished": 0,
"results_file": "C:\\Users\\remote_user\\.ansible_async\\814083505908.1432",
"retries": 61,
"started": 1
}
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/async_status.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAG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BvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"_ansible_suppress_tmpdir_delete":true,"started":1,"ansible_async_watchdog_pid":3608,"results_file":"C:\\\\Users\\\\remote_user\\\\.ansible_async\\\\814083505908.1432","finished":0,"ansible_job_id":"814083505908.1432","changed":false}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
FAILED - RETRYING: wait for connectivity to be resumed after sshd restart (59 retries left).Result was: {
"ansible_async_watchdog_pid": 3608,
"ansible_job_id": "814083505908.1432",
"attempts": 2,
"changed": false,
"finished": 0,
"results_file": "C:\\Users\\remote_user\\.ansible_async\\814083505908.1432",
"retries": 61,
"started": 1
}
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/async_status.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAA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EAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"description":"SSH protocol based service to provide secure encrypted communications between two untrusted hosts over an insecure network.","changed":true,"name":"sshd","_ansible_suppress_tmpdir_delete":true,"depended_by":[],"display_name":"OpenSSH SSH Server","start_mode":"auto","results_file":"C:\\\\Users\\\\remote_user\\\\.ansible_async\\\\814083505908.1432","ansible_job_id":"814083505908.1432","finished":1,"username":"LocalSystem","can_pause_and_continue":false,"state":"running","started":1,"desktop_interact":false,"path":"\\"C:\\\\Program Files\\\\OpenSSH-Win64\\\\sshd.exe\\"","exists":true,"dependencies":[],"ansible_async_watchdog_pid":3608}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => {
"ansible_async_watchdog_pid": 3608,
"ansible_job_id": "814083505908.1432",
"attempts": 3,
"can_pause_and_continue": false,
"changed": true,
"depended_by": [],
"dependencies": [],
"description": "SSH protocol based service to provide secure encrypted communications between two untrusted hosts over an insecure network.",
"desktop_interact": false,
"display_name": "OpenSSH SSH Server",
"exists": true,
"finished": 1,
"name": "sshd",
"path": "\"C:\\Program Files\\OpenSSH-Win64\\sshd.exe\"",
"results_file": "C:\\Users\\remote_user\\.ansible_async\\814083505908.1432",
"start_mode": "auto",
"started": 1,
"state": "running",
"username": "LocalSystem"
}
TASK [assert expectations after sshd restart] ********************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:55
Sunday 23 June 2019 23:39:31 +0100 (0:00:17.629) 0:00:56.014 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_shell.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBB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QgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"start":"2019-06-23 10:39:35.400738","stdout":"machine - \\r\\nuser - \\r\\nprocess - \\r\\nPATH - C:\\\\Program Files\\\\OpenSSH-Win64;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\ProgramData\\\\GooGet;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\metadata_scripts;C:\\\\Program Files (x86)\\\\Google\\\\Cloud SDK\\\\google-cloud-sdk\\\\bin;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\sysprep;C:\\\\Windows\\\\system32\\\\config\\\\systemprofile\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\Program Files\\\\OpenSSH-Win64;;C:\\\\Users\\\\remote_user\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;\\r\\n","cmd":"echo \\"machine - $($env:machine_level1)\\"\\necho \\"user - $($env:user_level1)\\"\\necho \\"process - $($env:process_level1)\\"\\necho \\"PATH - $($env:PATH)\\"","stderr":"","changed":true,"rc":0,"delta":"0:00:00.859379","end":"2019-06-23 10:39:36.260118"}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\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 = 10028\r\ndebug3: mux_client_request_session: session request sent\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [1.2.3.4] => {
"changed": true,
"cmd": "echo \"machine - $($env:machine_level1)\"\necho \"user - $($env:user_level1)\"\necho \"process - $($env:process_level1)\"\necho \"PATH - $($env:PATH)\"",
"delta": "0:00:00.859379",
"end": "2019-06-23 10:39:36.260118",
"rc": 0,
"start": "2019-06-23 10:39:35.400738",
"stderr": "",
"stderr_lines": [],
"stdout": "machine - \r\nuser - \r\nprocess - \r\nPATH - C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;\r\n",
"stdout_lines": [
"machine - ",
"user - ",
"process - ",
"PATH - C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;"
]
}
sending stop: ['ssh', '-vvv', '-C', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'IdentityFile="/Users/myusername/src/ip/platform/private_key"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User="remote_user"', '-o', 'ConnectTimeout=10', '-o', 'ControlPath=/Users/myusername/.ansible/cp/0facc3efe3', '-O', 'stop', '1.2.3.4']
META: reset connection
TASK [assert expectations after reset connection] ****************************************************************************************************************************************************************************************
task path: /Users/myusername/scratch/playbook.yml:65
Sunday 23 June 2019 23:39:36 +0100 (0:00:05.552) 0:01:01.566 ***********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_shell.ps1
Pipelining is enabled.
<1.2.3.4> ESTABLISH SSH CONNECTION FOR USER: remote_user
<1.2.3.4> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/myusername/src/ip/platform/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="remote_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/0facc3efe3 1.2.3.4 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASAB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QBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<1.2.3.4> (0, '{"start":"2019-06-23 10:39:40.603851","stdout":"machine - machine_level1\\r\\nuser - user_level1\\r\\nprocess - \\r\\nPATH - C:\\\\Program Files\\\\OpenSSH-Win64;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\ProgramData\\\\GooGet;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\metadata_scripts;C:\\\\Program Files (x86)\\\\Google\\\\Cloud SDK\\\\google-cloud-sdk\\\\bin;C:\\\\Program Files\\\\Google\\\\Compute Engine\\\\sysprep;C:\\\\Windows\\\\system32\\\\config\\\\systemprofile\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\Program Files\\\\OpenSSH-Win64;c:\\\\machine1;C:\\\\Windows\\\\System32;;C:\\\\Users\\\\remote_user\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;c:\\\\user1\\r\\n","cmd":"echo \\"machine - $($env:machine_level1)\\"\\necho \\"user - $($env:user_level1)\\"\\necho \\"process - $($env:process_level1)\\"\\necho \\"PATH - $($env:PATH)\\"","stderr":"","changed":true,"rc":0,"delta":"0:00:00.625029","end":"2019-06-23 10:39:41.228881"}\r\n', 'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/myusername/.ssh/config\r\ndebug3: /Users/myusername/.ssh/config line 3: Including file /Users/myusername/.ssh/dot-ssh/config-common depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-common\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-common line 19: Applying options for *\r\ndebug3: /Users/myusername/.ssh/config line 4: Including file /Users/myusername/.ssh/dot-ssh/config-work-gce depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-work-gce\r\ndebug3: /Users/myusername/.ssh/config line 5: Including file /Users/myusername/.ssh/dot-ssh/config-Darwin depth 0\r\ndebug1: Reading configuration data /Users/myusername/.ssh/dot-ssh/config-Darwin\r\ndebug1: /Users/myusername/.ssh/dot-ssh/config-Darwin line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 1: Applying options for *\r\ndebug2: checking match for \'canonical host *.corp-eu1.internal.improbable.io exec /improbable/it/bin/dial-or-not.sh\' host 1.2.3.4 originally 1.2.3.4\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "1.2.3.4"\' \r\ndebug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"\r\ndebug2: match not found\r\ndebug2: resolve_canonicalize: hostname 1.2.3.4 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/Users/myusername/.ansible/cp/0facc3efe3" does not exist\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to 1.2.3.4 [1.2.3.4] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9869 ms remain after connect\r\ndebug1: identity file /Users/myusername/src/ip/platform/private_key type 0\r\ndebug1: identity file /Users/myusername/src/ip/platform/private_key-cert type -1\r\ndebug1: identity file /Users/myusername/.ssh/dot-ssh/personal/id_rsa type -1\r\ndebug1: identity file /Users/myusername/.ssh/dot-ssh/personal/id_rsa-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.9\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_7.9\r\ndebug1: match: OpenSSH_for_Windows_7.9 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 1.2.3.4:22 as \'remote_user\'\r\ndebug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:12\r\ndebug3: load_hostkeys: loaded 1 keys from 1.2.3.4\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-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,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-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: 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-group14-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519\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: none\r\ndebug2: compression stoc: none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:b9wPHHObjqtLF3s83mEfPgnQn7W21c+SDuTIhhg52NY\r\ndebug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:12\r\ndebug3: load_hostkeys: loaded 1 keys from 1.2.3.4\r\ndebug1: Host \'1.2.3.4\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/myusername/.ssh/known_hosts:12\r\nHost key fingerprint is SHA256:b9wPHHObjqtLF3s83mEfPgnQn7W21c+SDuTIhhg52NY\n+---[ECDSA 256]---+\n| |\n| |\n| . |\n| o o . . .|\n| . * E * o =|\n| . + = * O Bo|\n| . . O O O*=|\n| + . O=**|\n| oooo=o+|\n+----[SHA256]-----+\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 134217728 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 134217728 blocks\r\ndebug1: Will attempt key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit\r\ndebug1: Will attempt key: /Users/myusername/.ssh/dot-ssh/personal/id_rsa explicit\r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>\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,password,keyboard-interactive\r\ndebug3: start over, passed a different list publickey,password,keyboard-interactive\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/myusername/src/ip/platform/private_key RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw explicit\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Rx8xkgWnFd6T7y8lfFTN91pborV1tSd/FxvKHmhj3Nw\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: Search for item with query: {\n acct = "/Users/myusername/src/ip/platform/private_key";\n agrp = "com.apple.ssh.passphrases";\n class = genp;\n labl = "SSH: /Users/myusername/src/ip/platform/private_key";\n nleg = 1;\n "r_Data" = 1;\n svce = OpenSSH;\n "u_AuthUI" = "u_AuthUIF";\n}\r\ndebug2: using passphrase from keychain\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 1.2.3.4 ([1.2.3.4]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /Users/myusername/.ansible/cp/0facc3efe3.NwoQ8r7TOFCcsXum\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/myusername/.ansible/cp/0facc3efe3]\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 0x20\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 10057\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: mux_master_process_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: mux_master_process_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 10059\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 2879\r\ndebug2: mux_master_process_new_session: channel 1: request tty 0, X 0, agent 1, subsys 0, term "xterm-256color", cmd "chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARw\r\ndebug3: mux_master_process_new_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: mux_master_process_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 80\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 2: request auth-agent-req@openssh.com confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_GB.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEE\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\ndebug3: receive packet: type 4\r\ndebug1: Remote: Agent forwarding disabled: mkdtemp() failed: No such file or directory\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\ndebug2: channel 2: read<=0 rfd 6 len 0\r\ndebug2: channel 2: read failed\r\ndebug2: channel 2: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 2: input open -> drain\r\ndebug2: channel 2: ibuf empty\r\ndebug2: channel 2: send eof\r\ndebug3: send packet: type 96\r\ndebug2: channel 2: input drain -> closed\r\ndebug2: channel 2: rcvd ext data 11\r\n#< CLIXML\r\ndebug2: channel 2: written 11 to efd 8\r\ndebug2: channel 2: rcvd ext data 256\r\ndebug2: channel 2: rcvd ext data 125\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug2: channel 2: written 381 to efd 8\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: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 2: output drain -> closed\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 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: chan_shutdown_read (i0 o1 sock 5 wfd 5 efd -1 [closed])\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 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i3 o1 sock 5 wfd 5 efd -1 [closed])\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 e[closed]/0 fd 5/5/-1 sock 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')
changed: [1.2.3.4] => {
"changed": true,
"cmd": "echo \"machine - $($env:machine_level1)\"\necho \"user - $($env:user_level1)\"\necho \"process - $($env:process_level1)\"\necho \"PATH - $($env:PATH)\"",
"delta": "0:00:00.625029",
"end": "2019-06-23 10:39:41.228881",
"rc": 0,
"start": "2019-06-23 10:39:40.603851",
"stderr": "",
"stderr_lines": [],
"stdout": "machine - machine_level1\r\nuser - user_level1\r\nprocess - \r\nPATH - C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;c:\\machine1;C:\\Windows\\System32;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;c:\\user1\r\n",
"stdout_lines": [
"machine - machine_level1",
"user - user_level1",
"process - ",
"PATH - C:\\Program Files\\OpenSSH-Win64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\GooGet;C:\\Program Files\\Google\\Compute Engine\\metadata_scripts;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Google\\Compute Engine\\sysprep;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;c:\\Program Files\\OpenSSH-Win64;c:\\machine1;C:\\Windows\\System32;;C:\\Users\\remote_user\\AppData\\Local\\Microsoft\\WindowsApps;c:\\user1"
]
}
META: ran handlers
META: ran handlers
PLAY RECAP *******************************************************************************************************************************************************************************************************************************
1.2.3.4 : ok=9 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Sunday 23 June 2019 23:39:42 +0100 (0:00:05.638) 0:01:07.204 ***********
===============================================================================
wait for connectivity to be resumed after sshd restart --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 17.63s
/Users/myusername/scratch/playbook.yml:47 -----------------------------------------------------------------------------------------------------------------------------------------------
Gathering Facts ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 12.30s
/Users/myusername/scratch/playbook.yml:2 ------------------------------------------------------------------------------------------------------------------------------------------------
set an environment variable at machine-level ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 10.20s
/Users/myusername/scratch/playbook.yml:8 ------------------------------------------------------------------------------------------------------------------------------------------------
assert expectations after reset connection ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.64s
/Users/myusername/scratch/playbook.yml:65 -----------------------------------------------------------------------------------------------------------------------------------------------
assert expectations after sshd restart -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.55s
/Users/myusername/scratch/playbook.yml:55 -----------------------------------------------------------------------------------------------------------------------------------------------
assert expectations before sshd restart ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.17s
/Users/myusername/scratch/playbook.yml:32 -----------------------------------------------------------------------------------------------------------------------------------------------
restart sshd ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 4.88s
/Users/myusername/scratch/playbook.yml:39 -----------------------------------------------------------------------------------------------------------------------------------------------
add an element to user PATH ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.98s
/Users/myusername/scratch/playbook.yml:25 -----------------------------------------------------------------------------------------------------------------------------------------------
add an element to machine PATH ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.74s
/Users/myusername/scratch/playbook.yml:18 -----------------------------------------------------------------------------------------------------------------------------------------------
Playbook run took 0 days, 0 hours, 1 minutes, 7 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment