Let’s see those different Use-Cases that we get to know in the webinar

USE CASE 1: Provisioning instance over AWS using Pre-created Template.

  1. Write Playbook including aws_instance module and defining the region, VPC, subnet, route-table, security groups, keys, OS to be provisioned in the instance i.e. AMI and other required attributes.
  2. Create a credential-type if not there in your ansible-tower subscription then create your credential using fingerprint, user-id, tenancy, tokens, key file.
  3. Create a Template importing those playbook and credential-file.
  4. Run that template for getting desired infrastructure over cloud. Now you can deploy any application over your instance by connecting using SSH from your Controller node.

USE CASE 2: Using ChatOPS create a notify job using modern messaging platform like Slack.

  1. Create a workspace in slack. Then create channels for your DEVOPS teams.
  2. Now over RHVT (RedHat Virtualization Tooling) Platform we would create a VM as per our scaling automation workflow, and for this we would create a Job over Workflow Visualizer.
  3. Ansible-tower will do the analysis of Workflow and get the task done. We have imported various playbooks for out work process. One of them is create_task_vm.yml which would create a VM according to our desire.
  4. Workflow is as follows:

USE CASE 3: Creating Python Virtual Environment in some directory using Ansible-Tower

  1. install venv command to deploy the playbook for establishing python over a target node.
  2. command would be like:

USE CASE 4: Creating instance over OCI (Oracle Cloud Infrastructure)

  1. Check ansible collection if any certified collection is available for creating roles for instance over OCI.
  2. Create Credential using oracle-oci-credential type. (If credential type not available then you can create one custom credential for any technology using credential tab in AWX) for this you need user-name, key file, fingerprint and tenancy.
  3. deploy the Template after attaching both the Credential and collection.
  4. Make sure your Ansible-Tower license must support for the number of instance you want to create spontaneously using ansible-tower.
  5. Nodes you would manage from Ansible-tower depends on your valid subscription. Example: 2 storage device, 16 host device, for the community AWX subscription.
  6. Now you may connect to any of the instance over oracle cloud using:

Additional Information provided by our instructor

  1. Minimum requirements to install Ansible Tower over our systems are 4GiB RAM, 2 CPUs and 20 GB Hard disk.
  2. We can import or export playbooks over our AWX WebUI
  3. Ansible galaxy roles are not certified from RedHat.
  4. We can upload inventory file in ansible tower using ansible-tower command.
  5. Pre-requisite for establishing ansible tower is your Base OS must be Linux as ansible is designed to work on Linux Architecture.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akanksha Singh

Akanksha Singh


Technology enhancement take a journey of learning and exploring!! On a way to achieve and Follow my own star!!