Ansible Tower on Azure: Post Deployment Guide Overview This document will help you in configuring the Ansible Tower to add host VM’s and get an introduction to Ansible Tower and Configuration Management.

Prerequisites  

Microsoft Azure Subscription with admin credentials. Azure Quick-start template Ansible-Tower-RHEL-solution needs to be deployed successfully in the subscription.

Instructions 1. Launch a browser and Navigate to https://portal.azure.com. Login with your Microsoft Azure credentials.

2. Click on Microsoft Azure at the top left corner of the screen, to view the Dashboard.

Copyright © Spektra Systems LLC.

Page 1 of 28

3. To toggle show/hide the Portal menu options with icon, Click on the Show Menu button.

4. Click on the Resource groups button in the Menu navigation bar to view the Resource groups blade, where you can view all the resource groups that you have created.

Copyright © Spektra Systems LLC.

Page 2 of 28

5. Select the Resource Group in which you deployed the quick start template.

6. From Settings, select Deployments.

7. Select the latest deployment available on this resource group.

8. In the Deployment blade, scroll down to the Outputs section. You will see the Public IP address and DNS Names of Ansible Tower and Client Virtual Machines.

Copyright © Spektra Systems LLC.

Page 3 of 28

9. Click the Copy icon to copy all the Public IP address. Create a new text document in Notepad and paste both IP addresses to it as Ansible Tower Public Ip, Client01 Public IP and Client02 Public IP.

Copyright © Spektra Systems LLC.

Page 4 of 28

10. Now you will connect to the Ansible Tower VM. If you are using a Windows machine, you would need an SSH client for connecting to an Linux Virtual Machine. Putty is the most used SSH client for windows. 11. Download Putty from here. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 12. Now run putty.exe from you PC.

Copyright © Spektra Systems LLC.

Page 5 of 28

13. This is the application window that pops up when you run putty.exe.

14. Enter the Public IP address of the Ansible Tower VM to the Host Name (or IP address) box of the putty to connect. 15. Now click on + SSH from the Category menu on the left side of the putty to select the private key corresponding to the public key that was mentioned during the Quick Start launch.

16. Then click on + Auth

Copyright © Spektra Systems LLC.

Page 6 of 28

17. Now click on browse and select the private key file with “ .ppk “ extension.

18. Then Click on Open. 19. Now a new terminal will pop and you will be connected to your Ansible Tower virtual machine. 20. The PuTTY Security Alert will pop up. Click on Yes.

Copyright © Spektra Systems LLC.

Page 7 of 28

21. Login using your username for the Ansible Tower VM. 22. After entering the username, you provided during Quick Start Launch, you can start accessing the Ansible Tower Virtual Machine.

23. Now sudo to root account by executing the following command sudo su -

24. Now, execute the following command to display the private key generated in the Ansible Tower VM. cat .ssh/id_rsa

Copyright © Spektra Systems LLC.

Page 8 of 28

25. Now copy the private key by selecting the text from “-----BEGIN RSA PRIVATE KEY-----“ and “-----END RSA PRIVATE KEY-----“ and then pressing CTRL + C on keyboard and then paste the private key on to a notepad. 26. Open a new tab in the browser and paste the Ansible Tower Public IP from the notepad.

You’ll see a warning in your web browser. This is because the deployment uses a selfsigned certificate. To proceed, ignore the SSL Warning

27. Now you will be directed to the Ansible Tower Login page.

28. For the user name, type admin, and then provide the admin password you provided when you launched the Azure Quickstart template and then Click on SIGN IN.

Copyright © Spektra Systems LLC.

Page 9 of 28

29. Now you will be redirected to the license page.

Copyright © Spektra Systems LLC.

Page 10 of 28

30. If you already have a license file, click Browse and select the license file. Else, click on REQUEST License and get a license and upload the license file.

Copyright © Spektra Systems LLC.

Page 11 of 28

31. After uploading the license file, accept the License Agreement and then click on SUBMIT.

32. Now you will be directed to the Ansible Tower Dashboad.

33. On the Ansible Tower dashboard, choose the Settings button in the upper-right corner to open the Settings screen.

Copyright © Spektra Systems LLC.

Page 12 of 28

34. Now choose Credentials, and then choose the +Add button to create a new credential.

35. Enter the credential details as shown:  Provide a Name and Description.  Leave User selected as the owner type.  Choose Machine as the type. Copyright © Spektra Systems LLC.

Page 13 of 28

     

Username: Provide the Client VM’s username here Password: Provide the Client VM’s password here Privilege Escalation: Select Sudo from the list Privilege Escalation Username: Provide root Privilege Escalation Password: Provide the Client VM’s password here Private Key: Paste the private key that was copied earlier in the field Then Choose Save.

36. Select INVENTORIES in the Ansible Tower dashboard.

Copyright © Spektra Systems LLC.

Page 14 of 28

37. Create a new inventory by clicking the Inventory window.

button, which opens the Create

38. Provide a name and description for the default organization. Leave the Variables section unchanged, and choose Save to create an inventory.

39. Create a new group for an inventory by clicking the the Create Group window.

Copyright © Spektra Systems LLC.

button, which opens

Page 15 of 28

40. Enter the following details into the required and optional fields, and click Save.   

Name: VMGroup Description: Enter an arbitrary description as appropriate Source: Choose Manual

Copyright © Spektra Systems LLC.

Page 16 of 28

41. To add Hosts to an existing group, select the existing group VMGroup from the inventory by clicking on VM Group.

42. To add Hosts, click the button

43. In the Add Hosts window, provide the copied Private IP of client01 virtual machine as Host name and a description for the Host, as shown. Leave the Variables section unchanged, and then choose Save.

Copyright © Spektra Systems LLC.

Page 17 of 28

44. Similarly, add the Private IP of Client 02 as host. 45. Now, in the HOSTS section of the inventory, you can see the added hosts.

Copyright © Spektra Systems LLC.

Page 18 of 28

46. To verify that SSH connection can be established between the hosts, select both hosts.

47. Select Run Commands from the Group Section.

48. Enter the following details into the Execute Command Section, and click Launch.  

Module: command Arguments: hostname This command prints the host name

Copyright © Spektra Systems LLC.

Page 19 of 28



Machine Credential: ClientVM

49. Now you will be redirected to the Results page and you can verify that the commands were properly executed by checking the STANDARD OUT section for hostnames of client VM’s

Installing Wordpress on Client VM’s ( Optional ) 50. Connect to Ansible Tower VM using Putty or terminal as done earlier. 51. Login using the username you provided for the Ansible Tower VM. 52. After entering the username, you provided during Quick Start Launch, you can start accessing the Ansible Tower Virtual Machine. Copyright © Spektra Systems LLC.

Page 20 of 28

53. Now sudo to root account by executing the following command sudo su -

54. Now, execute the following command to change the directory to Ansible project directory. cd /var/lib/awx/projects

55. Now execute the following commands to clone the Ansible Official Samples Repository and change the permissions of the folder. git clone https://github.com/ansible/ansible-examples chmod 777 ansible-examples/*

56. Now, execute the following command to edit the Inventory file of wordpress-nginx_rhel7 project by opening it in VI Text Editor. vi ansible-examples/wordpress-nginx_rhel7/site.yml

Copyright © Spektra Systems LLC.

Page 21 of 28

57. Now press Insert key and replace root corresponding to remote_user with the username of the Client VM’s user and replace ‘wordpress-server’ with ‘all’ and then press ESC and then type ‘ :wq! ‘

58. Open a new tab in the browser and paste the Ansible Tower Public IP from the notepad.

Copyright © Spektra Systems LLC.

Page 22 of 28

59. Now you will be directed to the Ansible Tower Login page.

60. For the user name, type admin, and then provide the admin password you provided when you launched the Azure Quickstart template and then Click on SIGN IN.

Copyright © Spektra Systems LLC.

Page 23 of 28

61. Now you will be directed to the Ansible Tower Dashboard.

62. Select PROJECTS from the dashboard menu.

63. Create a new project by clicking the

button, which opens the NEW PROJECT window.

64. A Enter the following details into the NEW PROJECT Section, and click Launch.    

NAME: Project1 DESCRIPTION: Install Wordpress SCM TYPE: Select Manual PLAYBOOK DIRECTORY: Select ansible-examples And then Click Save.

Copyright © Spektra Systems LLC.

Page 24 of 28

65. Select JOB TEMPLATES from the dashboard menu.

66. Create a new job template by clicking the TEMPLATE window.

button, which opens the CREATE JOB

67. Enter the following details into the Create Job Template Section, and click Save.     

NAME: InstallWordpress JOB TYPE: Run INVENTORY: Azure Inventory PROJECT: Project1 PLAYBOOK: Select wordpress-nginx_rhel7/site.yml

Copyright © Spektra Systems LLC.

Page 25 of 28

 

MACHINE CREDENTIAL: ClientVM Under Options, select Enable Privilege Escalation And then Click Save.

68. Now start a job by using the created Job template by clicking the launch icon. Now you will be directed to the Results Page and you can see the outputs in the Standard Out section.

69. Once the job is completed, you can check the status in Results Section. Copyright © Spektra Systems LLC.

Page 26 of 28

70. Now to verify that wordpress is installed on both Client Virtual Machines and is accessible on port 80, open a new tab in browser and copy the public ip of client 01 vm and public ip of client 02 vm and hit enter key. 71. The Wordpress installation page will come up if successfully installed.

Copyright © Spektra Systems LLC.

Page 27 of 28

Copyright © Spektra Systems LLC.

Page 28 of 28

Ansible Tower on Azure: Post Deployment Guide - GitHub

2. Click on Microsoft Azure at the top left corner of the screen, to view the Dashboard. ... http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. 12.

1MB Sizes 16 Downloads 224 Views

Recommend Documents

Barracuda WAF on Azure: Post Deployment Configuration ... - GitHub
Page 1 of 16 ... In the Network Interfaces blade, you can see the Private IP address of ... Service Name : Demo-Websites (Or your custom service name). Type : ...

Two-tier App migration on Azure Container: Lab Guide ... - GitHub
OnPremisesRG (any valid name) b. Location: East US(any location) c. Virtual Machine Name: WebDbServer (Any valid name) d. Admin User: demouser (any username of your choice) e. Admin Password: . Accepts terms and conditions and click on Purchase butto

Django Deployment Workshop - GitHub
Cloud/Cluster Management Tools. • Instrumentation/Monitoring. • Failover. • Node addition/removal ... Set up application servers. 4. Automate deployment. 5.

deployment database conventions - GitHub
NRSMAI Maria Island. Reference Station. Site ID. A locally unique, meaningful identifier. MAI_0809. Latitude. Site latitude. 42', 94.3'' S. Longitude. Site longitude.

Puppet Enterprise on Azure with RHEL and Windows Nodes - GitHub
8. In the Deployment blade, scroll down to the Outputs section. You will see the Public IP address and DNS of Puppet Master VM and Public IP of Load Balancer ...

Perl Post Install Tests - GitHub
Apr 10, 2013 - CPAN/Perl community has usually been good at preserving backwards compatibility ... and installed. ▻ Writing a best practices guide for tests ...

oracle crm on demand deployment guide pdf
oracle crm on demand deployment guide pdf. oracle crm on demand deployment guide pdf. Open. Extract. Open with. Sign In. Main menu.

Wireless CleanAir Deployment Guide - Cisco
fail and even be compromised, placing the organization at risk. Figure 1. Smart Business Architecture Model. User. Services. Network. Services. Network.

CPIC CYP2C19_voriconazole guideline final_to post - GitHub
9University of Florida College of Medicine, Gainesville, FL, USA .... this definition of rapid metabolizer is appropriate for all CYP2C19 substrates is unclear and ...

ALOJA: a Systematic Study of Hadoop Deployment Variables ... - GitHub
1. A cloud of points for Cost vs. Performance vs. Cloud or On-premise ... SSDs, InfiniBand networks, and Cloud services. ...... HadoopPerformanceTuning.pdf.

Chrome Device Deployment Guide Accounts
Make a note of how you want the model Chrome device to be set up for your environment. 2. ... a consumer Gmail account or another non-domain account.

Google Apps for Education: Deployment Guide
This guide serves as a resource for domain administrators in charge of moving their student and/or faculty/staff populations to Google Apps for. Education.

Processing Big Data with Azure Data Lake - GitHub
Processing Big Data with Azure Data Lake. Lab 3 – Using C# in U-SQL. Overview. U-SQL is designed to blend the declarative nature of SQL with the procedural ...

Processing Big Data with Azure Data Lake - GitHub
Processing Big Data with Azure Data Lake. Lab 4 – Monitoring U-SQL Execution. Overview. U-SQL jobs are executed in parallel. You can use the job graph, and ...

Processing Big Data With Hadoop In Azure HDInsight - GitHub
Enter the following command to query the table, and verify that no rows are returned: SELECT * FROM rawlog;. Load the Source Data into the Raw Log Table. 1. In the Hive command line interface, enter the following HiveQL statement to move the log file

Microsoft SQL Server 2017 and Azure SQL Database - GitHub
May 4, 2017 - ALTER ANY USER – See Connect and Authentication – Database Permissions Chart. CREATE ..... Note: ADD SIGNATURE requires.

Processing Big Data With Hadoop In Azure HDInsight - GitHub
Name: DataDB. • Subscription: Select your Azure subscription. • Resource Group: Select the resource group you created previously. • Select source: Blank database. • Server: Create a new server with the following settings: • Server name: Ent

Hands-On Exercises - GitHub
Nov 29, 2011 - Lecture 13: Building a Bioinformatics Pipeline, Part III ... Download protein sequences for the best blast hits from Swiss-Prot ... Download the file unknown1.fas and unknown2.fas from the class website. ... u1.seq[:10].tostring().

rtGCS on GETAC - GitHub
Jun 12, 2015 - ... a few weeks is probably all you need to setup this demonstration. ... I am available to deliver rtGCS to your laptop and walk you through ...

Hands-On Exercises - GitHub
Nov 22, 2011 - Lecture 12: Building a Bioinformatics Pipeline, Part II. Paul M. ... have shown that it is amongst the best performing multiple ... See the MAFFT website for additional references ... MAFFT v6.864b (2011/11/10) ... Once you've confirme

MultiMarkdown User's Guide - GitHub
Nov 9, 2010 - for Markdown's syntax is the format of plain text email. [1] ... including complete XHTML documents, LaTeX, PDF, RTF, or even (shudder) Microsoft ... Also, you can check out the MultiMarkdown discussion list: ...... At this time, Scrive