Skip to content

Instantly share code, notes, and snippets.

@petemounce
Last active November 16, 2022 11:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save petemounce/d9e175b4e62d3a52e9cbb95bf9f35bbc to your computer and use it in GitHub Desktop.
Save petemounce/d9e175b4e62d3a52e9cbb95bf9f35bbc to your computer and use it in GitHub Desktop.
ansible 2.8.1 windows openssh environment variables
param(
[string] $username = "tweeter",
[string] $open_ssh_version = "v7.9.0.0p1-Beta"
)
$ErrorActionPreference = 'Stop'; # stop on all errors
$log_stamp = get-date -format 'yyyyMMdd-HHmmss'
Start-Transcript -Path "$(pwd)/bootstrap.$($log_stamp).log" -IncludeInvocationHeader
# Make the administrator user
$Count = Get-Random -min 24 -max 32
$TempPassword = -join ((65..90) + (97..122) + (48..57) | Get-Random -Count $Count | % {[char]$_})
New-LocalUser -Name $username -PasswordNeverExpires -Password ($TempPassword | ConvertTo-SecureString -AsPlainText -Force) | out-null
Add-LocalGroupMember -Group "Administrators" -Member $username | out-null
# Install openssh
# https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH
$url = "https://github.com/PowerShell/Win32-OpenSSH/releases/download/$($open_ssh_version)/OpenSSH-Win64.zip"
$output = "$($env:TEMP)/OpenSSH-Win64.zip"
# github went TLS 1.2 only from 2018
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
(New-Object System.Net.WebClient).DownloadFile($url, $output)
Expand-Archive -Path $output -DestinationPath "$($env:PROGRAMFILES)"
. "$($env:PROGRAMFILES)/OpenSSH-Win64/install-sshd.ps1"
# Set default shell for sshd connections to powershell to avoid legacy cmd nonsense
# https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell
[System.Environment]::SetEnvironmentVariable("PATH", "$($env:PATH);c:\Program Files\OpenSSH-Win64", [System.EnvironmentVariableTarget]::Machine)
New-Item -path "HKLM:\SOFTWARE\OpenSSH" -force
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShellCommandOption -Value "/c" -PropertyType String -Force
# An sshd_config that's basically the stock one but
# * allows public key authentication (which is commented by default)
$sshd_config = "$($env:PROGRAMDATA)/ssh"
New-Item "$($sshd_config)" -Type Directory -Force
$sshd_config_file = "$($sshd_config)/sshd_config"
$sshd_config_base64 = get-gcemetadata -path "instance/attributes/sshd-config-base64"
$sshd_config_text = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($sshd_config_base64))
Set-Content -Path "$($sshd_config_file)" -Value "$($sshd_config_text)"
# Put the public key in the system-wide config location to avoid needing to programmatically create user profile. Sigh.
$public_key_base64 = get-gcemetadata -path "instance/attributes/public-key-base64"
$public_key = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($public_key_base64))
$system_authorized_keys_file = "$($sshd_config)/administrators_authorized_keys"
if (Test-Path "$($system_authorized_keys_file)") {
Remove-Item -Path "$($system_authorized_keys_file)" -force
}
Set-Content -Path "$($system_authorized_keys_file)" -Value "$($public_key)"
# Ensure access control on authorized_keys meets the requirements
# https://stackoverflow.com/questions/16212816/setting-up-openssh-for-windows-using-public-key-authentication
# https://github.com/jen20/packer-aws-windows-ssh/blob/master/files/configure-source-ssh.ps1#L99-L114
$acl = Get-ACL -Path $system_authorized_keys_file
$acl.SetAccessRuleProtection($True, $True)
Set-Acl -Path $system_authorized_keys_file -AclObject $acl
$acl = Get-ACL -Path $system_authorized_keys_file
$ar = New-Object System.Security.AccessControl.FileSystemAccessRule( `
"NT Authority\Authenticated Users", "ReadAndExecute", "Allow")
$acl.RemoveAccessRule($ar)
$ar = New-Object System.Security.AccessControl.FileSystemAccessRule( `
"BUILTIN\Administrators", "FullControl", "Allow")
$acl.RemoveAccessRule($ar)
$ar = New-Object System.Security.AccessControl.FileSystemAccessRule( `
"BUILTIN\Users", "FullControl", "Allow")
$acl.RemoveAccessRule($ar)
Set-Acl -Path $system_authorized_keys_file -AclObject $acl
Restart-Service sshd
Set-Service sshd -StartupType Automatic
# lastly, open up the firewall port
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
Stop-Transcript
myusername at myusername-mac-c02xp0p7jgh6 in ~/src/ip/platform/packer/improbable.io/buildkite/ansible (bk/ENG-1729-choco●)
$ ansible-playbook -i ssh.yml playbook.yml -vvvv
ansible-playbook 2.8.1
config file = /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/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/src/ip/platform/packer/improbable.io/buildkite/ansible/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/ssh.yml as it did not pass it's verify_file() method
script declined parsing /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/ssh.yml as it did not pass it's verify_file() method
Parsed /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/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/src/ip/platform/packer/improbable.io/buildkite/ansible/ssh.yml',)
forks: 5
tags: (u'all',)
verbosity: 4
connection: smart
timeout: 10
1 plays in playbook.yml
PLAY [all] *******************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************
task path: /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/playbook.yml:2
Thursday 13 June 2019 23:27:32 +0100 (0:00:00.092) 0:00:00.092 *********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/setup.ps1
Pipelining is enabled.
<11.22.33.44> ESTABLISH SSH CONNECTION FOR USER: packer_user
<11.22.33.44> 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="packer_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/08fdb7a023 11.22.33.44 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjA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BAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<11.22.33.44> (1, '{"changed":false,"ansible_facts":{"ansible_ip_addresses":["10.49.0.72","fe80::e575:f5c2:26a0:7516"],"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-153332693-3247124691-3336140837","ansible_product_serial":"GoogleCloud-08B9796542CD71F758A348519C6E05DC","ansible_system_vendor":"Google","ansible_owner_contact":"","ansible_user_id":"packer_user","ansible_date_time":{"time":"22:27:54","date":"2019-06-13","second":"54","tz":"Greenwich Standard Time","iso8601_micro":"2019-06-13T22:27:54.566168Z","iso8601_basic_short":"20190613T222754","minute":"27","day":"13","weekday":"Thursday","iso8601":"2019-06-13T22:27:54Z","tz_offset":"+00:00","iso8601_basic":"20190613T222754566168","epoch":"1560464874.58178","weekday_number":"4","hour":"22","year":"2019","month":"06","weeknumber":"23"},"ansible_user_sid":"S-1-5-21-153332693-3247124691-3336140837-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":329,"ansible_architecture":"64-bit","ansible_win_rm_certificate_expires":"2020-06-12 22:23:14","ansible_windows_domain_member":false,"ansible_swaptotal_mb":0,"ansible_hostname":"INSTANCE-1","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\\\\packer_user","ansible_bios_version":"Google","ansible_virtualization_type":"NA","ansible_lastboot":"2019-06-13 22:22:32Z","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:48","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-1.","ansible_fqdn":"instance-1.","gather_subset":["all"],"ansible_kernel":"10.0.14393.0","ansible_env":{"HOME":"C:\\\\Users\\\\packer_user","ComSpec":"C:\\\\Windows\\\\system32\\\\cmd.exe","c28fc6f98a2c44abbbd89d6a3037d0d9_POSIX_FD_STATE":"AAAAAAICAgA=","LOCALAPPDATA":"C:\\\\Users\\\\packer_user\\\\AppData\\\\Local","PSModulePath":"C:\\\\Users\\\\packer_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 55887 10.49.0.72 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\\\\packer_user\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;","USERPROFILE":"C:\\\\Users\\\\packer_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":"packer_user","ProgramFiles":"C:\\\\Program Files","USERNAME":"packer_user","PROCESSOR_LEVEL":"6","SSH_CLIENT":"82.71.9.253 55887 22","COMPUTERNAME":"INSTANCE-1","USER":"packer_user","NUMBER_OF_PROCESSORS":"2","HOMEPATH":"\\\\Users\\\\packer_user","PUBLIC":"C:\\\\Users\\\\Public","PROCESSOR_REVISION":"3f00","APPDATA":"C:\\\\Users\\\\packer_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":"packer_user@INSTANCE-1 $P$G","windir":"C:\\\\Windows","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL","TEMP":"C:\\\\Users\\\\packer_user\\\\AppData\\\\Local\\\\Temp","TMP":"C:\\\\Users\\\\packer_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 11.22.33.44 originally 11.22.33.44\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "11.22.33.44"\' \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 11.22.33.44 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/Users/myusername/.ansible/cp/08fdb7a023" does not exist\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to 11.22.33.44 [11.22.33.44] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9904 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 11.22.33.44:22 as \'packer_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:7\r\ndebug3: load_hostkeys: loaded 1 keys from 11.22.33.44\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:USL560heloV6xsnG28YaorBYgZ7k0MoJDXtHnV7DMAk\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:7\r\ndebug3: load_hostkeys: loaded 1 keys from 11.22.33.44\r\ndebug1: Host \'11.22.33.44\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/myusername/.ssh/known_hosts:7\r\nHost key fingerprint is SHA256:USL560heloV6xsnG28YaorBYgZ7k0MoJDXtHnV7DMAk\n+---[ECDSA 256]---+\n| E.+o. . |\n| .o* o |\n|. . o.=. |\n| * . . .oo. |\n|=.= . .=S= |\n|Booo o & |\n|.*o o.O.+ |\n| o o .o.o.+ |\n|. . . .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 11.22.33.44 ([11.22.33.44]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /Users/myusername/.ansible/cp/08fdb7a023.reMerrxcC1UAe8Te\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/08fdb7a023]\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 61744\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 = 61746\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')
<11.22.33.44> 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 11.22.33.44 originally 11.22.33.44
debug3: /etc/ssh/ssh_config line 7: not matched 'canonical'
debug3: /etc/ssh/ssh_config line 7: not matched 'host "11.22.33.44"'
debug3: /etc/ssh/ssh_config line 7: skipped exec "/improbable/it/bin/dial-or-not.sh"
debug2: match not found
debug2: resolve_canonicalize: hostname 11.22.33.44 is address
debug1: auto-mux: Trying existing master
debug1: Control socket "/Users/myusername/.ansible/cp/08fdb7a023" does not exist
debug2: ssh_connect_direct
debug1: Connecting to 11.22.33.44 [11.22.33.44] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 9904 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 11.22.33.44:22 as 'packer_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:7
debug3: load_hostkeys: loaded 1 keys from 11.22.33.44
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:USL560heloV6xsnG28YaorBYgZ7k0MoJDXtHnV7DMAk
debug3: hostkeys_foreach: reading file "/Users/myusername/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/myusername/.ssh/known_hosts:7
debug3: load_hostkeys: loaded 1 keys from 11.22.33.44
debug1: Host '11.22.33.44' is known and matches the ECDSA host key.
debug1: Found key in /Users/myusername/.ssh/known_hosts:7
Host key fingerprint is SHA256:USL560heloV6xsnG28YaorBYgZ7k0MoJDXtHnV7DMAk
+---[ECDSA 256]---+
| E.+o. . |
| .o* o |
|. . o.=. |
| * . . .oo. |
|=.= . .=S= |
|Booo o & |
|.*o o.O.+ |
| o o .o.o.+ |
|. . . .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 11.22.33.44 ([11.22.33.44]:22).
debug1: setting up multiplex master socket
debug3: muxserver_listen: temporary control path /Users/myusername/.ansible/cp/08fdb7a023.reMerrxcC1UAe8Te
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/08fdb7a023]
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 61744
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 = 61746
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: [11.22.33.44] => {
"ansible_facts": {
"ansible_architecture": "64-bit",
"ansible_bios_date": "01/01/2011",
"ansible_bios_version": "Google",
"ansible_date_time": {
"date": "2019-06-13",
"day": "13",
"epoch": "1560464874.58178",
"hour": "22",
"iso8601": "2019-06-13T22:27:54Z",
"iso8601_basic": "20190613T222754566168",
"iso8601_basic_short": "20190613T222754",
"iso8601_micro": "2019-06-13T22:27:54.566168Z",
"minute": "27",
"month": "06",
"second": "54",
"time": "22:27:54",
"tz": "Greenwich Standard Time",
"tz_offset": "+00:00",
"weekday": "Thursday",
"weekday_number": "4",
"weeknumber": "23",
"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\\packer_user\\AppData\\Roaming",
"COMPUTERNAME": "INSTANCE-1",
"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\\packer_user",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\packer_user",
"LOCALAPPDATA": "C:\\Users\\packer_user\\AppData\\Local",
"LOGNAME": "packer_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": "packer_user@INSTANCE-1 $P$G",
"PSExecutionPolicyPreference": "Unrestricted",
"PSModulePath": "C:\\Users\\packer_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\\packer_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 55887 22",
"SSH_CONNECTION": "82.71.9.253 55887 10.49.0.72 22",
"SystemDrive": "C:",
"SystemRoot": "C:\\Windows",
"TEMP": "C:\\Users\\packer_user\\AppData\\Local\\Temp",
"TMP": "C:\\Users\\packer_user\\AppData\\Local\\Temp",
"USER": "packer_user",
"USERDOMAIN": "WORKGROUP",
"USERNAME": "packer_user",
"USERPROFILE": "C:\\Users\\packer_user",
"c28fc6f98a2c44abbbd89d6a3037d0d9_POSIX_FD_STATE": "AAAAAAICAgA=",
"windir": "C:\\Windows"
},
"ansible_fqdn": "instance-1.",
"ansible_hostname": "INSTANCE-1",
"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:48"
}
],
"ansible_ip_addresses": [
"10.49.0.72",
"fe80::e575:f5c2:26a0:7516"
],
"ansible_kernel": "10.0.14393.0",
"ansible_lastboot": "2019-06-13 22:22:32Z",
"ansible_machine_id": "S-1-5-21-153332693-3247124691-3336140837",
"ansible_memtotal_mb": 7680,
"ansible_nodename": "instance-1.",
"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-08B9796542CD71F758A348519C6E05DC",
"ansible_reboot_pending": false,
"ansible_swaptotal_mb": 0,
"ansible_system": "Win32NT",
"ansible_system_description": "",
"ansible_system_vendor": "Google",
"ansible_uptime_seconds": 329,
"ansible_user_dir": "C:\\Users\\packer_user",
"ansible_user_gecos": "",
"ansible_user_id": "packer_user",
"ansible_user_sid": "S-1-5-21-153332693-3247124691-3336140837-1000",
"ansible_virtualization_role": "NA",
"ansible_virtualization_type": "NA",
"ansible_win_rm_certificate_expires": "2020-06-12 22:23:14",
"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/src/ip/platform/packer/improbable.io/buildkite/ansible/playbook.yml:6
Thursday 13 June 2019 23:28:03 +0100 (0:00:31.118) 0:00:31.211 *********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_environment.ps1
Pipelining is enabled.
<11.22.33.44> ESTABLISH SSH CONNECTION FOR USER: packer_user
<11.22.33.44> 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="packer_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/08fdb7a023 11.22.33.44 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARwBVAEEAZQBBAEIAbABBAEcATQBBAFgAdwBCADMAQQBIAEkAQQBZAFEAQgB3AEEASABBAEEAWgBRAEIAeQBBAEYAOABBAGMAdwBCADAAQQBIAEkAQQBMAGcAQgBUAEEASABBAEEAYgBBAEIAcABBAEgAUQBBAEsAQQBCAEEAQ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AEwAUQBCAFcAQQBHAEUAQQBiAEEAQgAxAEEARwBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<11.22.33.44> (0, '{"changed":true,"invocation":{"module_args":{"level":"machine","state":"present","name":"machine_level","value":"foobar"}},"before_value":null,"value":"foobar"}\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 11.22.33.44 originally 11.22.33.44\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "11.22.33.44"\' \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 11.22.33.44 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 = 61746\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: [11.22.33.44] => {
"before_value": null,
"changed": true,
"invocation": {
"module_args": {
"level": "machine",
"name": "machine_level",
"state": "present",
"value": "foobar"
}
},
"value": "foobar"
}
TASK [set an environment variable at user-level] *****************************************************************************************************************************************************************************************
task path: /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/playbook.yml:11
Thursday 13 June 2019 23:28:22 +0100 (0:00:18.615) 0:00:49.826 *********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_environment.ps1
Pipelining is enabled.
<11.22.33.44> ESTABLISH SSH CONNECTION FOR USER: packer_user
<11.22.33.44> 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="packer_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/08fdb7a023 11.22.33.44 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQ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":true,"invocation":{"module_args":{"level":"user","state":"present","name":"user_level","value":"foobar"}},"before_value":null,"value":"foobar"}\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 11.22.33.44 originally 11.22.33.44\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "11.22.33.44"\' \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 11.22.33.44 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 = 61746\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: [11.22.33.44] => {
"before_value": null,
"changed": true,
"invocation": {
"module_args": {
"level": "user",
"name": "user_level",
"state": "present",
"value": "foobar"
}
},
"value": "foobar"
}
TASK [add an element to PATH] ************************************************************************************************************************************************************************************************************
task path: /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/playbook.yml:16
Thursday 13 June 2019 23:28:41 +0100 (0:00:19.101) 0:01:08.927 *********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_path.ps1
Pipelining is enabled.
<11.22.33.44> ESTABLISH SSH CONNECTION FOR USER: packer_user
<11.22.33.44> 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="packer_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/08fdb7a023 11.22.33.44 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBu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nAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<11.22.33.44> (0, '{"changed":true,"path_value":"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:\\\\foo"}\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 11.22.33.44 originally 11.22.33.44\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "11.22.33.44"\' \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 11.22.33.44 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 = 61746\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: [11.22.33.44] => {
"changed": true,
"path_value": "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:\\foo"
}
TASK [assert expectations] ***************************************************************************************************************************************************************************************************************
task path: /Users/myusername/src/ip/platform/packer/improbable.io/buildkite/ansible/playbook.yml:21
Thursday 13 June 2019 23:29:01 +0100 (0:00:19.781) 0:01:28.709 *********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/windows/win_shell.ps1
Pipelining is enabled.
<11.22.33.44> ESTABLISH SSH CONNECTION FOR USER: packer_user
<11.22.33.44> 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="packer_user"' -o ConnectTimeout=10 -o ControlPath=/Users/myusername/.ansible/cp/08fdb7a023 11.22.33.44 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCA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EIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<11.22.33.44> (0, '{"start":"2019-06-13 10:29:20.954259","stdout":"machine - \\r\\nuser - \\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\\\\packer_user\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;\\r\\n","cmd":"echo \\"machine - $($env:machine_level)\\"\\necho \\"user - $($env:user_level)\\"\\necho \\"PATH - $($env:PATH)\\"","stderr":"","changed":true,"rc":0,"delta":"0:00:06.377514","end":"2019-06-13 10:29:27.331774"}\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 11.22.33.44 originally 11.22.33.44\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'canonical\'\r\ndebug3: /etc/ssh/ssh_config line 7: not matched \'host "11.22.33.44"\' \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 11.22.33.44 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 = 61746\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: [11.22.33.44] => {
"changed": true,
"cmd": "echo \"machine - $($env:machine_level)\"\necho \"user - $($env:user_level)\"\necho \"PATH - $($env:PATH)\"",
"delta": "0:00:06.377514",
"end": "2019-06-13 10:29:27.331774",
"rc": 0,
"start": "2019-06-13 10:29:20.954259",
"stderr": "",
"stderr_lines": [],
"stdout": "machine - \r\nuser - \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\\packer_user\\AppData\\Local\\Microsoft\\WindowsApps;\r\n",
"stdout_lines": [
"machine - ",
"user - ",
"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\\packer_user\\AppData\\Local\\Microsoft\\WindowsApps;"
]
}
META: ran handlers
META: ran handlers
PLAY RECAP *******************************************************************************************************************************************************************************************************************************
11.22.33.44 : ok=5 changed=4 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Port 22
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
TCPKeepAlive yes
# override default of no subsystems
Subsystem sftp sftp-server.exe
Match Group administrators
AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment