PRODUCTS AND SUPPORT


How to get Ansible AWX on GCP (Google Cloud Platform)




This section describes how to launch and connect to Ansible AWX Kit in a Google Compute environment using the available Cloud Launcher offering.

  1. Open Ansible AWX (Opensource Ansible Tower alternative) listing on GCP marketplace
  2. Click Launch.

  • Select a zone where you want to launch the VM(such as us-east1-)
  • Optionally change the number of cores and amount of memory. (This defaults to 1 vCPUs and 3.75 GB ram.)
  • Optionally change the boot disk type and size. (This defaults to "Standard Persistent Disk" and 20 GB respectively)
  • Optionally change the network name and subnetwork names. Be sure that whichever network you specify has ports 22 (for ssh), 3389 (for RDP) and 80 (for HTTP) exposed.
  • Click Deploy when you are done. Ansible AWX (Opensource Ansible Tower alternative) will begin deploying.

/img/gcp/ansible-awx/ansible-launch-details-page.png

  1. A summary page displays when the compute engine is successfully deployed. Click on the Instance link to to go to the instance page .

  2. On the instance page, click on the "SSH" button, select "Open in browser window".

  3. /img/gcp/ansible-awx/ansible-ssh-in-browser.png

  4. This will open SSH window in a browser.
  5. Run below command to set the password for "ubuntu" user

  6. /img/gcp/ansible-awx/ansible-ssh-screen.png

  7. Now the password for ubuntu user is set, you can connect to the VM's desktop environment from any local windows machine using RDP protocol.

  8. To connect using RDP via Windows Machine, first note the external IP of the VM from VM details page as highlighted below

  9. /img/gcp/ansible-awx/ansible-external-ip.png

  10. Then From you local windows machine, goto "start" menu , in the search box type and select "Remote desktop connection"

  11. In the "Remote Desktop connection" wizard, copy the external ip and click connect

  12. /img/gcp/ansible-awx/ansible-rdp.png

  13. This will connect you to the VM's desktop environment. Provide "ubuntu" as the userid and the password set in step 6 to authenticate. Click OK

  14. /img/gcp/ansible-awx/ansible-rdp-login.png

  15. Now you are connected to the out of box your own ansible tower environment via Windows Machine.

  16. /img/gcp/ansible-awx/rdp-desktop.png

  17. To connect using RDP via Linux machine, first note the external IP of the VM from VM details page,then from your local Linux machine, goto menu , in the search box type and select "Remmina".

    Note: If you don't have Remmina installed on your Linux machine, first Install Remmina as per your linux distribution.

  18. /img/gcp/common/remmina-search.png

  19. In the "Remmina Remote Desktop Client" wizard, select the RDP option from dropdown and paste the external ip and click enter.

  20. /img/gcp/common/remmina-external-ip.png

  21. This will connect you to the VM's desktop environment. Provide "ubuntu" as the userid and the password set in step 6 to authenticate. Click OK

  22. /img/gcp/common/remmina-rdp-login.png

  23. Now you are connected to the out of box Ansible AWX tower environment via Linux machine.

  24. /img/gcp/ansible-awx/rdp-desktop.png

  25. For connecting via Web Interface, SSH to the VM as shown in Step 4 and run below command-

    cat /home/ubuntu/ansible_awx_password.txt.

    Note down username and auto-generated password.

    Note: If the password is empty in the file, wait for 2 minutes and check again.

  26. /img/gcp/ansible-awx/ansible-web-interface-passwd-file.png

  27. Login to the web interface by opening the url http://your-external-ip in your browser
  28. Use above default username & auto-generated password
  29. /img/gcp/ansible-awx/ansible-web-interface-login-latest.png

  30. You must change the default id and password as security measures by going to admin profile page and entering new userid and password
  31. To change the userid and password,In left pane click on Users as shown below.
  32. /img/gcp/ansible-awx/ansible-web-interface-users-page.png

  33. Click on admin user and enter the new values here and save the changes.
  34. /img/gcp/ansible-awx/ansible-web-interface-passwd-change.png