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
2
votes
2 answers

How to share parameters between multiple tasks in Ansible

Suppose I want to pass a long list of arguments to multiple tasks - is there an easy way to define them once and then share them in all tasks? tasks: - name: test1 test1: …
Andrei
  • 1,862
  • 4
  • 15
  • 15
2
votes
1 answer

Change default project base path in Ansible AWX/Tower

I want to use a custom project base path. As far as I understand I need to change PROJECTS_ROOT in /etc/awx/settings.py. However, nothing happens when I do... Do I need to do something to manually reload the settings.py?
pldimitrov
  • 1,597
  • 2
  • 16
  • 21
1
vote
1 answer

AWX - Unable to call a required module succesfully

Due to policies, I cannot upload company code to Galaxy. I am trying to use git roles to work around this. I based my approach off this answer, and by referencing the doco here. All the Ansible code is in two repositories, a company-shared repo…
Werner
  • 791
  • 1
  • 6
  • 23
1
vote
1 answer

Is using wildcards in Ansible Collection 'ansible.controller' module 'export' possible?

We want to keep the configuration of two Ansible Automation Platform (AAP) v2 clusters in sync. For this we want to use the Ansible Collection ansible.controller. In a playbook, the export module should be used to selectively export e.g.…
Isabella
  • 21
  • 2
1
vote
0 answers

Undefined variable error when attempting to create custom credential type

Package: awx.awx Module: credential_type I am attempting to generate custom AWX credential types using the awx.awx.credential_type. According to the documentation, this should just work. However, I keep getting the error "undefined variable" (exact…
Sagar
  • 9,456
  • 6
  • 54
  • 96
1
vote
1 answer

Django Serializers, the key is a value I want

trying to serialiaze a request I get from a service, the request is JSON and it is a key/value set that contains sub key/value sets, see example. The city contains a key named streets that has a dict where key name is the street name that I would of…
Anders Breid
  • 121
  • 1
  • 8
1
vote
0 answers

Python POST to AWX API doesn't return Token

I'm trying to use Python3 with requests.post() but it doesn't return the expected payload, while using CURL (Bash) or Invoke-RestMethod (PwSh) I do get the Token for given account, but with the Python code below is like he's doing a GET instead the…
Pepi0
  • 55
  • 7
1
vote
0 answers

AWX django.db.utils.OperationalError: could not translate host name "postgres" to address: Name or service not known

I have an AWX deployment using docker compose. The postgres database is having issues with dns name resolution. The issue started after I updated the docker-compose.yml to force the awx_web container to write some DNS IPs in /etc/resolv.conf. After…
ficestat
  • 313
  • 1
  • 4
  • 13
1
vote
0 answers

Error installing Ansible Collection from Requirements file

I'm trying to install the cyberark.pas collection using a requirements file in my project. Today I install the collection from AWX via ansible Galaxy, but the job fails a couple of times a day with the following error: "stderr": "ERROR! Unexpected…
D. Desjardins
  • 13
  • 1
  • 4
1
vote
2 answers

Jenkins Ansible Tower deploy fails if passing multiple custom arguments within "extraVars" parameter

I have a situation where I need to pass the branch name and host name (corresponds to instance w/ connection properties) into an Ansible template that is run as part of the code deployment stage. However I get the following if I try to specify…
1
vote
1 answer

Ansible AWX container 17.0.1 date inside container not correct

I've install AWX container version which contain 4 containers (awx_task, awx_web, awx_postgres, awx_redis) on ubuntu 20.04 here is the ansible version inside container awx_web enter image description here I've add the env to change timezone to all…
1
vote
1 answer

How can I list what users/groups have access to a certain inventory using awx-cli?

I am trying to get a list of the inventories in my server using awx-cli inventory list -a but what I would like to get is also, what users/groups/teams have access to said inventories and which kind of access. I cannot seem to find a way to get this…
1
vote
1 answer

ansible lookup plugin does not work on AWX

I tried lookup on machine installed on it ansible and it works, but when uploading playbook to awx it does not work. - name: get file set_fact: policer: "{{ lookup('file', 'file.txt') }}" it gives An unhandled exception occurred while…
GenZ
  • 49
  • 4
1
vote
0 answers

Latest AWX version with docker-compose for production

Trying to configure AWX runtime using Docker with Docker Compose. With image quay.io/ansible/awx:21.7.0 it seems a little tricky. I don't want to set up Kubernetes and use AWX Operator - don't have resources and tasks for this complicity, just…
InvDeath
  • 91
  • 1
  • 10
1
vote
1 answer

Copy json file from windows to linux in seperate awx jobs

I created a Worflow job in awx containing 2 jobs: Job 1 is using the credentials of the windows server where we get the json file from. It reads the content and put it in a variable using set_stats Job2 is using the credential of the server where…