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

How to find an identity by client id in Azure?

I have an application (AWX) with a script that is trying to perform an action in Azure (add tags to a vm). In AWX, I get the following error, apparently from Azure: msg: "Error retrieving resource group usw-sys-rg-001 - The client '9d...27' with…
208_man
  • 1,440
  • 3
  • 28
  • 59
3
votes
1 answer

Ansible converting month to integer

I haven't found anything for this yet. I am using Ansible and I'm trying to change some values after a decent amount of time. But my problem is I get a value like: 2020 Nov 19 But I need it to be like: 2020 11 19 How can I do this?
VallingSki
  • 133
  • 4
3
votes
1 answer

Can Ansible AWX / Tower use group_vars and host_vars from external source / Git repository?

Standard CLI Ansible looks for the group_vars and host_vars directory in the same location as the host file. See for example How can I change the path of group_vars and host_vars?. Ansible AWX / Tower has the option of using an "external source" for…
onknows
  • 6,151
  • 12
  • 65
  • 109
3
votes
2 answers

How to block overriding variables by extra_vars in Ansible?

I am using Ansible Tower to expose play. User stars job calling REST API and she/he provides some extra_vars. I have to validate provided variable against some other variables. For example: user provides hostname and I have in the inventory…
mefju
  • 539
  • 7
  • 26
3
votes
1 answer

How to apply Kubernetes YAML files to AWS EKS using Ansible Tower/AWX?

From local machine, we can apply Kubernetes YAML files to AWS EKS using AWS CLI + aws-iam-authenticator + kubectl. How to do it in Ansible Tower / AWX? Understand that there are a few Ansible modules available but none seems to be able to apply…
wltheng
  • 750
  • 1
  • 11
  • 26
3
votes
2 answers

Ansible Tower API not accepting token

I am performing the following POST in a Tower server: http:///api/v2/job_templates/10/launch/ Headers: Content-Type:application/json Authorization:sometokenhere And getting back the error: {"detail":"Authentication credentials were…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
2
votes
2 answers

AWX - Using Ansible collections

I am using the blasted version of AWX and I do not understand how to download additional collections. My instance is set up on K3s, single cluster. I am using GitLab as a source for my playbooks and changes. I have a collections/ directory on the…
SwiperNo
  • 59
  • 10
2
votes
1 answer

How can I check if I'm running Ansible from AWX or from command line?

Is there a way to know if I'm launching a playbook from AWX or from the command line?
Costales
  • 2,799
  • 1
  • 17
  • 21
2
votes
2 answers

Ansible AWX issue - JMESPATH

I am facing an issue with AWX Tower instance. I have a project and job template on it and the job template is connecting to Ansible control node running on (Red Hat Enterprise Linux Server release 7.9 (Maipo)), where couple of playbooks are…
2
votes
2 answers

"Undefined variable" error on Ansible when run over Windows machines

This is a very simple Ansible playbook I run from AWX to get information about hosts, and it works as intended on Linux machines: --- - name: Get some info debug: msg: "{{ ansible_hostname }} {{ ansible_default_ipv4.address }} {{…
dr_
  • 2,400
  • 1
  • 25
  • 39
2
votes
1 answer

ansible Get current index of a variable in a loop

Say I have: rn2: [x,y,z] and in a task I want to output the current index of the variable it is currently using - name: Output shell: echo "{{ item|int }}" loop: "{{rn2}}" My expected is to output 0 1 2 but it only outputs 0 0 0 My goal is…
user13539846
  • 425
  • 2
  • 5
  • 13
2
votes
3 answers

Ansible AWX: Unable to choose a playbook when tried creating AWX Job template

I'm tried creating a job template in AWX web interface. the list of playbooks is not displayed on the interface although the project has been downloaded to git and is visible in the directory ~/var/lib/awx/projects. my environment: centOS 8 AWX…
Eric-D
  • 66
  • 1
  • 4
2
votes
0 answers

Ansible WinRM with Certificate Auth stopped by impersonation token

I'm trying to connect to multiple Windows servers using Certificate based authentication through Ansible. On the majority of servers there is no problem, however, a few of them give this error : "certificate: An attempt has been made to operate on…
fnx_qt
  • 61
  • 2
  • 9
2
votes
1 answer

Error running playbook that only affects one of the hosts

I've recently started using more and more Ansible, and especially AWX, for simple repetitive tasks. Below is a playbook for downloading, installing and configuring logging via a Bash script. The script is for two hosts: Ubuntu 20.04 and CentOS 7.6,…
1
2
3
28 29