Questions tagged [ansible-tower]

Use for questions about programming issues related to the Ansible Tower REST API. Questions about using the Ansible Tower GUI for managing both cloud-based and traditional/hybrid Ansible deployments should be asked on ServerFault.com.

Ansible Tower (formerly ‘AWX’) is a web-based solution that makes Ansible even more easy to use for IT teams of all kinds. It’s designed to be the hub for all of your automation tasks.

Tower allows you to control access to who can access what, even allowing sharing of SSH credentials without someone being able to transfer those credentials. Inventory can be graphically managed or synced with a wide variety of cloud sources. It logs all of your jobs, integrates well with LDAP, and has an amazing browsable REST API. Command line tools are available for easy integration with Jenkins as well. Provisioning callbacks provide great support for autoscaling topologies.

Questions about using the Ansible Tower GUI for managing both cloud-based and traditional/hybrid Ansible deployments should be asked on ServerFault.com.

343 questions
0
votes
1 answer

host ansible tower behind nginx

On the official page, it is said that to host ansible tower behind nginx, you need to provide headers in the /etc/tower/conf.d/remote_host_headers.py file. But, in my /etc/tower/ folder, there is no conf.d/remote_host_headers.py…
Luv33preet
  • 1,686
  • 7
  • 33
  • 66
0
votes
1 answer

Ansible Tower: execute playbook in a different server

Can Ansible Tower execute playbooks in a different server (other than the server that it is installed) ?
Naveen S
  • 31
  • 1
  • 3
0
votes
1 answer

Launch a job using Ansible Tower

I'm trying to launch a new jobs using job templates in my ansible tasks. Here's the example: --- - name: default_process_backup hosts: webservers tasks: - name: Launch Backup Fetch Files Job tower_job_launch: job_template:…
Tigran
  • 633
  • 4
  • 17
  • 26
0
votes
3 answers

Ansible Tower Inventory Groups from playbook

How can I reference a tower inventory group from the playbook? My playbook is calling specific roles, each role will call on a different inventory group from tower. So far what I have tried is: host: "{{ inventory_hostname in groups['ios']…
hiddenicon
  • 551
  • 2
  • 11
  • 23
0
votes
1 answer

Ansible Tower Permission denied: '/var/lib/awx/projects' even when has access

When I try to log into Ansible Tower or navigate around, I'm getting a 500 error. The /var/log/tower.log shows: 2016-12-20 14:34:59,659 ERROR django.request Internal Server Error: /api/v1/config/ Traceback (most recent call last): File…
Arthur Maltson
  • 5,760
  • 4
  • 30
  • 33
0
votes
1 answer

Power shell equivalent command to this command

user data with call back url that i use to configure linux ec2 instances using ansible tower: #!/bin/bash curl --data "host_config_key=XXXXXXXXXXXXXXXXXXXXXXXXX" https://10.XX.XXX.XXX:443/api/v1/job_templates/646/callback/ -k Above, the…
chandra
  • 693
  • 3
  • 8
  • 21
0
votes
1 answer

Deploying cloudformation stack to AWS using Ansible Tower

I'm new to Ansible, Ansible Tower, and AWS Cloud Formation and am trying to have Ansible Tower deploy an EC2 Container Service using a Cloud Formation template. I try to run the deploy job and am running into this error below. TASK [create/update…
0
votes
1 answer

Excluding specific VMs from Ansible Inventory: VMware

I have configured a group with source "VMware vCenter" in Ansible Tower. As per the documentation, one can specify Source Variables to Override variables found in vmware.ini and used by the inventory update script. For a detailed description of…
Chethan S.
  • 558
  • 2
  • 8
  • 28
-1
votes
0 answers

Get Approver Details in Ansible Playbook

I have set up a work flow template in Ansible tower having an Approval stage. I need to print the first name and last name of whoever has approved the Job and post it in an e-mail. I tried giving tower_user_first_name and tower_user_last_name. But…
Sriram
  • 1
-1
votes
1 answer

Extract Specific Piece of Information from an Ansible JSON output

In the following Ansible playbook, with the task I am trying to extract the specific version using the software image task at the bottom but it fails with an error. --- - name: GRAB F5 FACTS hosts: lab-ltm connection: local gather_facts:…
Rustylee
  • 11
  • 1
-1
votes
1 answer

How to enable or disable multiple hosts in Ansible Tower/AWX to include or exclude while running jobs?

Is there any way to enable or disable multiple hosts in an inventory to include or exclude them while running jobs? I know we can disable one host at a time via the Inventories web UI, but this is very time consuming. I was looking for something…
-1
votes
1 answer

Json Array in Powershell from Podto Powershell

I have the following Json in the body of a Postman. what would be equivalent code in Powershell to send rest API via invoke-webrequest or via invoke-restmethod? Postman Body: { "extra_vars": { "servername": "apicall1234", …
-1
votes
1 answer

Ansible Playbook to destroy terraform resources

I create Azure resources using ansible playbook which triggers terraform code. I want to destroy the resources. Below is the code for creation and destroy. Create - block: - name: Run virtual-machine terraform - Planned terraform: …
Maya Ray
  • 523
  • 1
  • 7
  • 21
-1
votes
2 answers

Ansible tower callback to an external api after job completion

I am newbie to ansible. I have multiple job templates. currently I am launching job template through Ansible tower api and I am calling Ansible tower job status api to check if job is completed or not. Is there a way I can get a callback to an…
raj
  • 19
  • 4
-1
votes
1 answer

ansible tower install issue

Trying to install ansible-tower 1.2.1-1 on centos 8 stream and I am receiving this error. Are there any suggestions on how to get around it? TASK [group hosts for supported distributions]…
1 2 3
22
23