PRODUCTS AND SUPPORT


How to get Ansible AWX on AWS




This section describes how to launch and connect to Ansible AWX in Amazon Web Services (AWS).


  1. Open Ansible AWX (Opensource Ansible Tower alternative) VM listing on AWS marketplace

  2. /img/aws/ansible-awx/marketplace.png

  3. Click on Continue to subscribe.
    • Login with your credentials and follow the instruction.click on Continue to configuration
    • Select a Region where you want to launch the VM(such as US East (N.Virginia))

    • /img/aws/ansible-awx/region.png

    • Choose Action: You can launch it through EC2 or from Website.(Let's choose Launch from website)

    • /img/aws/ansible-awx/launch.png

    • Optionally change the EC2 instance type. (This defaults to t2.medium instance type, 2 vCPUs and 4 GB RAM.)

    • Optionally change the network name and subnetwork names.

      /img/aws/ansible-awx/network.png

    • Select the Security Group. Be sure that whichever Security Group you specify have ports 22 (for ssh) , 3389 (for RDP) and 443 (for HTTPS) exposed.
    • Be sure to download the key-pair which is available by default, or you can create the new key-pair and download it.
    • /img/aws/ansible-awx/SecurityGroup.png

    • Click on Launch..
      Ansible AWX (Opensource Ansible Tower alternative) will begin deploying.
  1. A summary page displays.To see this instance on EC2 Console click on EC2 Console link.

  2. /img/aws/ansible-awx/deployed.png

  3. On the EC2 Console page, instance is up and running. To connect to this instance through putty, copy the IPv4 Public IP Address

  4. /img/aws/ansible-awx/public-ip.png

  5. Open putty, paste the IP address and browse your private key you downloaded while deploying the VM, by going to SSH->Auth , click on Open. Enter ubuntu as userid

  6. /img/aws/desktop-linux/putty-01.png

    /img/aws/desktop-linux/putty-02.png

  7. Once connected, change the password for ubuntu user using below command

  8. sudo passwd ubuntu

    /img/aws/desktop-linux/ssh.png

  9. 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 or Linux Machine using Remmina.

    From your local windows machine, goto "start" menu , in the search box type and select "Remote desktop connection". In the "Remote Desktop connection" wizard, copy the public IP address and click connect

  10. /img/aws/desktop-linux/rdp.png

  11. This will connect you to the VM's desktop environment. Provide the username (e.g "ubuntu") and the password set in the above "Reset password" step to authenticate. Click OK

  12. /img/aws/desktop-linux/rdp-login.png

  13. Now you are connected to the out of box Ansible AWX (Opensource Ansible Tower alternative) environment via Windows Machine.

  14. /img/aws/ansible-awx/rdp-desktop.png

  15. 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.


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

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

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

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

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

  21. Now you are connected to out of box Ansible AWX (Opensource Ansible Tower alternative) environment via Linux machine.

  22. /img/aws/ansible-awx/rdp-desktop.png

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

    sudo docker logs tools_awx_1 | grep 'Admin password' .

    Note down the password for admin user.


  2. /img/gcp/ansible-awx/admin-default-password.png

  3. Login to the web interface by opening the url https://your-external-ip in your browser
  4. Accept the certificate warning message.

    /img/gcp/ansible-awx/warning.png

  5. Use admin as username and auto-generated password
  6. /img/gcp/ansible-awx//ansible-admin-login.png

    /img/gcp/ansible-awx/ansible-homepage.png

  7. You must change the default password for admin user as security measures by going to admin profile page and entering new password
  8. To change the admin password,In left pane click on Users as shown below.
  9. /img/gcp/ansible-awx/admin-user.png

    /img/gcp/ansible-awx/admin-edit.png

  10. Click on admin user, click on edit and enter the new password and save the changes.
  11. /img/gcp/ansible-awx/update-admin-password.png