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
1
vote
0 answers

Ansible-Tower two factor authentication?

Has anyone successfully setup two-factor-authentication on Ansible-Tower? I’m new to Ansible Tower and need to set it up with two factor authentication.
Eric Dunn
  • 77
  • 4
1
vote
2 answers

How to use multiple credentials for a single job-template in Ansible Tower?

I need to use two different credentials for a single playbook in Ansible Tower Job-Template. In the playbook, I include two roles(one for Windows machine, one for Linux machine). While configuring the job-template, I have noticed that I am not able…
sumion
  • 137
  • 1
  • 2
  • 14
1
vote
0 answers

Ansible Tower 3.5 and custom python modules

When I try to import a custom python module into another module, it no longer works in Tower 3.5. This exact setup works in 2.7.1, the current version of Ansible is 2.7.10. My custom modules used in playbooks are in the library directory and the…
rev_it_up
  • 75
  • 2
  • 11
1
vote
1 answer

How to retrieve values within a URI module GET registered loop output?

I am searching for job templates via the Ansible Tower API & would like to create a dictionary (?) of key/value pairs from the returned 'name' & 'id' fields that are stored in the registered results json entry. - name: Search for job templates …
Caidran
  • 21
  • 2
  • 5
1
vote
1 answer

AWX Failing to install requirements from private repo

I have an AWX installation with a project. The project is fetched perfectly from the private git repo. The project has a requirements file which is executed by AWX. The requirements file contains private repositories like this: - src:…
ThomasVdBerge
  • 7,483
  • 4
  • 44
  • 62
1
vote
0 answers

High availability deactivating from ansible tower

I installed the ansible tower trial version "Basic version". When I create a project via the tower GUI interface and tried to run it, a problem appeared saying that the feature " ha " is not configured in this version. Please, how can I disable the…
1
vote
1 answer

How to install PHP7.2 with ansible tower?

When I run my playbook to install some php modules, ansible tower throws an error "Unable to fetch some archives". I can download the php modules by themselves when running "sudo apt install" on the machine. "sudo apt-get update" and "sudo apt…
Ryan Haire
  • 23
  • 5
1
vote
1 answer

Add hostnames with external vars_files

I would like add my hostnames with external files. I have used in my playbook master vars_files to add my hostnames, and it doesn't seem to be working. I need to add the hostnames in external files from my ansible's project. I cannot used hosts…
rab boubou
  • 11
  • 6
1
vote
1 answer

How to get ansible tower hostname

Any way to retrieve the ansible tower hostname from where i ssh/run my job? Aka ; from a ansible fact variable ..? I need to know the ansible tower hostname when i run a job from inventory hostname Thanks Dominic
1
vote
1 answer

Ansible Tower rest api job poll

Is there a way to fetch the job id for the execution of the job template through rest API? Also, can we poll the job based on the job id?
Anshul
  • 75
  • 9
1
vote
0 answers

ansible tower_role module - no field named tower_verify_ssl

Trying out the Ansible tower_role module, and I can't seem to get past this error: The Tower server claims it was sent a bad request.\n\nGET https://myansibletowerserver/api/v2/projects/123/object_roles/\nParams: {'role_field': 'admin_role',…
dhartford
  • 1,125
  • 2
  • 12
  • 35
1
vote
1 answer

Limit hosts using Workflow Template

I'm using Ansible AWX (Tower) and have a template workflow that executes several templates one after the other, based on if the previous execution was successful. I noticed I can limit to a specific host when running a single template, I'd like to…
Stephen
  • 149
  • 3
  • 12
1
vote
0 answers

Is Ansible Tower compatible with the aws_S3 module?

I have been trying to automate a backup of some server files from a target machine to our S3 instance, but when I run the playbook from Ansible Tower it doesn't seem that the S3 module is able to see any files on the target machine. AWS…
blockchainwtf
  • 139
  • 1
  • 4
1
vote
2 answers

Pass variables from project to playbooks ansible

This is my setup. I have created a scm type git project and have my code there. My playbook is on that repository as well and it contains docker build and run command. In order to build my docker I should execute my build command where my docker…
Frodo
  • 555
  • 1
  • 5
  • 15
1
vote
1 answer

How to set extra variables for Ansible Tower job template from the file?

I'm looking for Ansible Tower equivalent approach of loading extra variables from file. Just like from cli with ...--extra-vars "@somefile.yml" parameters. Can this be done in Ansible Tower?
av37
  • 21
  • 1
  • 4