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
1 answer

Ansible variable inside when

I'm working on a playbook, where I get the disk with the name sd*, with no holders and no partitions. I have this: - set_fact: test: "{{ ansible_facts.devices }}" - debug: msg: "{{ test }}" - debug: msg: "{{ test…
VallingSki
  • 133
  • 4
1
vote
1 answer

Create Playbook with a few tasks and another playbook

Currently I'm searching for a solution, where I can create a Variable and then import the Playbook with the variable. Here is my code: - name: test hosts: localhost vars: ansible_python_interpreter: /usr/bin/python3 playbook1:…
VallingSki
  • 133
  • 4
1
vote
0 answers

How to step through playbook in ansible-tower or awx (like ansible-playbook --step)?

Is it possible to perform step through when using ansible-tower or awx? If yes, how? --step one-step-at-a-time: confirm each task before running
1
vote
1 answer

How can we include the playbook related information in email notification from ansible tower, like some variables value from the playbook?

I am currently working on a project for which I need to send email to my team members after its completion on ansible tower, I want have a grid there inside the email which would contain playbook specific information, note that this information is…
1
vote
1 answer

Avoid making a lot of templates for a workflow in Ansible Tower or AWX

I'm using AWX for updating my Windows Servers. I have an inventory file with groups and hosts. For example: [WWW] foo.example.com bar.example.com foo1.example.com bar1.example.com [SQL] one.example.com two.example.com three.example.com In my…
1
vote
2 answers

Ansible Tower/AWX bug? Job task runs serially instead of parallel

I have a very generic playbook with no hard coded info whatsoever. Everything in the playbook is a variable and filled out by supplying extra vars, even host names for connections. There are no inventory files in use since the host this is run…
Matt
  • 31
  • 4
1
vote
1 answer

Task result to a file

I have a simple playbook that run Cisco nxos command, which the playbook ran successful. Would like to know what is the code save all the result into a file regardless how many hosts I have and use Survey to input the filename. Currently, here is my…
kliew
  • 11
  • 2
1
vote
2 answers

Ansible tower credential type is not setting environment variables

Context: I am running Ansible AWX/Tower that is connected to a Git Repository as Project Source. I have Dynamic inventory defined using plugin (azure_rm). I have created a service principle in Azure AD that has proper access (confirmed). I am using…
Shaurav Adhikari
  • 741
  • 3
  • 10
  • 22
1
vote
1 answer

Cant access and execute a script on remote node using Ansible Tower

I have a similar problem but my error message says: { "changed": false, "msg": "Could not find or access 'woshutdown.sh' Searched in:…
1
vote
1 answer

Ansible how to assign new value to extra vars value

Tower: 3.2.3 Ansible 2.4.2 I have a Tower playbook where a value is assigned lets say build_cl: latest. This is defined in the Ansible Tower's survey, which I believe is regarded as extra-vars. I have a task that performs a check, and if condition…
New2Python
  • 325
  • 1
  • 4
  • 17
1
vote
1 answer

What is the correct syntax to filter VMWare inventory in Ansible Tower/AWX using an instance filter?

Within the Ansible Tower/AWX gui I have created an inventory with a source to poll my VMWare vCenter instance for hosts. The documentation I referenced does not include examples that filter hosts. I am trying to only import CentOS or RHEL systems…
1
vote
1 answer

Ansible to bind custom role or permissions to GCP IAM

Im wondering if there is a way to bind a custom role to a GCP IAM user via Ansible. I have a playbook that creates a custom role successfully and another that creates a service account separately but the latter does not have fields for permissions. …
1
vote
1 answer

How can I pass parameters to inventory script from Ansible Tower Survey instead of configuration file

What I managed to do at the moment, is to pass the parameters to the script via a configuration file. Is it possible to pass them directly from Tower Template Survey? The Python script is located in a SCM System. myscript.py config.ini
Doc
  • 133
  • 1
  • 1
  • 10
1
vote
1 answer

Where to put configuration file for inventory script in Ansible Tower?

I have created an inventory script which is used to populate dynamically my inventory. I would like to pass input data to the script from a configuration file (config.ini) I am using Ansible Tower, is there a way to include it via the GUI ? I…
Doc
  • 133
  • 1
  • 1
  • 10
1
vote
0 answers

How to use AWX inventory from survey?

I want to use dynamic host inventory that needs to be filled by the executor from the survey. How can I implement this feature?