Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 1.73 KB

setup_corp_subnet.md

File metadata and controls

42 lines (37 loc) · 1.73 KB

Install/Setup corp subnet

Wiki server

  1. cd macos-workshop
  2. ansible-playbook -i hosts.ini deploy_wiki_server.yml -u ubuntu --key-file terraform/ssh_keys/id_rsa
  3. Open web browser to http://172.16.50.30:80

Windows file server

Get Administrator password

  1. Login into AWS webGUI console
  2. Services > Compute > EC2
  3. Select the Windows file server EC2 instance
  4. Actions > Security > Get Windows Password
  5. Paste the contents of terraform/ssh_keys/id_rsa into the text box
  6. Get Windows password
  7. Select "Decrypt Password"
  8. Win password

Setup WinRM

  1. Use an RDP client to connect to Windows file server
  2. Open a Powershell instance as Administrator
  3. Set-ExecutionPolicy Unrestricted
  4. powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))"
  5. exit

Setup group_vars/windows.yml

  1. vim group_vars/windows.yml and set:
  2. ansible_user - Administrator
  3. ansible_password - Set this to the password obtained from the AWS console with SSH key
  4. ansible_windows_vars

Run Ansible playbook

  1. cd macos-workshop
  2. ansible-playbook -i hosts.ini deploy_win_file_server.yml

References

Wiki