Questions tagged [ansible-awx]

Ansible Tower is a GUI and REST API for managing both cloud-based and traditional/hybrid Ansible deployments

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is the upstream project for Red Hat Ansible Tower, a commercial derivative of AWX.

Home Page: https://github.com/ansible/awx

424 questions
1
vote
1 answer

How can I check if a playbook is being used by any job template?

We have an organization with several hundred job templates. I essentially want to do some housekeeping and identify any unused playbooks in my repository. Is there a way to get details about each job template (including playbook) so that I can grep…
Mint
  • 1,013
  • 1
  • 12
  • 29
1
vote
1 answer

JMESPath - Ansible-AWX - JSON

I have the following json where i wish to extract the name based on externalId (2720135) { "data": [ { "id": "f15073f7-c934-479f-bed9-07b6c3402b60", "name": "360 Index", "description": "360 Index", "displayName":…
Kevin
  • 143
  • 1
  • 8
1
vote
0 answers

Running Ansible Tower task on localhost with root privileges

I am trying to run an Ansible Tower Template with a task that requires root privileges on localhost. According to RedHat's knowledgebase: It isn't possible to use Tower with local action to escalate to the root user. It will be necessary to alter…
1
vote
1 answer

AWX Tower yum module "module_stderr": "Shared connection to closed.\r\n",

We have been using AWX Tower for quite some time now and without any issues but recently we started receiving this error when executing the yum module against all the hosts that we have (30+). { "module_stdout": "/etc/profile.d/lang.sh: line 19:…
Dimitar Dimov
  • 91
  • 2
  • 7
1
vote
1 answer

Ansible AWX: Behavior of Job Slicing

I am running task against 3 servers and I have set job slicing option as 3. After execution is completed I see below behavior Job 1 : task executed for host-A Job 2 - task executed for host-B and host-C Job 3 - no hosts matched. My understanding is…
Sam
  • 97
  • 1
  • 10
1
vote
0 answers

Ansible AWX: LDAP mapping for organization, teams, project

I am setting up LDAP settings in Ansible AWX. I want to achieve 3 things in ldap settings for organization, teams and projects : All XYZ team members should be super admin (DONE) Organization permission should be group level (not user level) All…
1
vote
0 answers

AWX issue: Errno None Unable to connect to port 10022 on 127.0.0.1

I am learning AWX and I am having a lot of trouble connecting to a device that is running locally. The device that I am trying to connect to is network simulation with cisco iosxr element drivers on them. In the inventory I am…
garandre
  • 11
  • 2
1
vote
1 answer

How do I run ansible-galaxy installations using AWX?

So I've read over the other articles that are similar to this question and while they provided an accepted answer, I wasn't able to quite get there. I am running AWX on Fedora 35. I have installed it using the following…
1
vote
0 answers

Ansible/AWX/Tower ERROR! Neither the collection requirement entry key 'name', nor 'source' point to a concrete resolvable collection artifact

I am trying to run a basic playbook using AWX but the playbook is always failing in the fetch galaxy collections from collections/requirements.(yml/yaml) task in the requirements.yml file. The error that I am getting is ERROR! Neither the…
garrett_17
  • 51
  • 5
1
vote
1 answer

How do you compare values in two Ansible lists?

I've got two lists in Ansible that I build on the fly using the find module - name: "Find all files in {{ backup_path }}" ansible.builtin.find: paths: - "{{ backup_path }}" get_checksum: true recurse: yes depth: 2 …
Stan
  • 1,191
  • 2
  • 15
  • 27
1
vote
1 answer

How to pass(use) google SA json in AWX to run anisble playbook which creates/updates/modify the VM in gcp?

I have an ansible-playbook, which will connect to GCP using SA and its JSON file. I have downloaded the JSONn file in my local and provided the path value to "credentials_file". this works if I run the playbook from my local machine. Now, I want to…
1
vote
1 answer

Interactive Input in AWX/ Ansible Tower

I have a requirement where I need to get the inputs from the user when the playbook is being executed. I used "pause" module and hence was able to get the input from the user during runtime of the playbook which went well on Ansible CLI. But, when…
1
vote
2 answers

Ansible playbook to check user exist or display error message

How to check if user is present and if present, continue with next task if not present display a message saying Given user does not exist
1
vote
0 answers

Ansible AWX EE and lineinfile module

Heyall! Im having some difficulty understanding a particular playbook that we are working on. Simple scenario, we want to edit a file that is running on AWX itself, which is running on k3s. The playbook uses lineinfile module and we want to edit a…
Etienne
  • 103
  • 8
1
vote
1 answer

How to AWX launch Job ID of a Scheduled Job

When i schedule job in AWX i get schedule job id (for example - 343), After the job launched on scheduled time, i get new launch job id(for example - 34848) that is different from schedule job id. How to get job id of launch job based on schedule…