cd macos-workshop
ansible-playbook -i hosts.ini deploy_wiki_server.yml -u ubuntu --key-file terraform/ssh_keys/id_rsa
- Open web browser to
http://172.16.50.30:80
- Login into AWS webGUI console
- Services > Compute > EC2
- Select the Windows file server EC2 instance
- Actions > Security > Get Windows Password
- Paste the contents of
terraform/ssh_keys/id_rsa
into the text box - Select "Decrypt Password"
- Use an RDP client to connect to Windows file server
- Open a Powershell instance as Administrator
Set-ExecutionPolicy Unrestricted
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))"
exit
vim group_vars/windows.yml
and set:ansible_user
-Administrator
ansible_password
- Set this to the password obtained from the AWS console with SSH key
cd macos-workshop
ansible-playbook -i hosts.ini deploy_win_file_server.yml