used variable for windows password - still hard coded
| | |
| | | bastion_instance_type: "t2.medium" |
| | | |
| | | tower_instance_count: 3 |
| | | tower_instance_type: "t2.large" |
| | | tower_instance_type: "c4.large" |
| | | |
| | | support_instance_count: 2 |
| | | support_instance_type: "t2.medium" |
| | |
| | | - "" |
| | | - - "<powershell>\n" |
| | | - "$admin = [adsi]('WinNT://./administrator, user')\n" |
| | | - "$admin.PSBase.Invoke('SetPassword', 'jVMijRwLbI02gFCo2xkjlZ9lxEA7bm7zgg==')\n" |
| | | - "$admin.PSBase.Invoke('SetPassword', '{{windows_password}}')\n" |
| | | - "$scriptPath=((New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))\n" |
| | | - "Invoke-Command -ScriptBlock ([scriptblock]::Create($scriptPath)) -ArgumentList '-skipNetworkProfileCheck'\n" |
| | | - "</powershell>" |
| | |
| | | - "" |
| | | - - "<powershell>\n" |
| | | - "$admin = [adsi]('WinNT://./administrator, user')\n" |
| | | - "$admin.PSBase.Invoke('SetPassword', 'jVMijRwLbI02gFCo2xkjlZ9lxEA7bm7zgg==')\n" |
| | | - "$admin.PSBase.Invoke('SetPassword', '{{windows_password}}')\n" |
| | | - "$scriptPath=((New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))\n" |
| | | - "Invoke-Command -ScriptBlock ([scriptblock]::Create($scriptPath)) -ArgumentList '-skipNetworkProfileCheck'\n" |
| | | - "</powershell>" |