Questions tagged [ansible-tower]

For questions regarding Ansible Tower - a visual dashboard, role-based access control, and job scheduling system for Ansible deployments.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

HostAlias being ignored in AWX-operator PODs

I recently had to move my K3 cluster running AWX-operator. The IP addresses of my nodes had to change from 10.0.3.51, 10.0.3.52, 10.0.3.53 to 10.6.3.44, 10.6.3.45, 10.6.3.71. I updated hostAlias in my ...
Red Cricket's user avatar
2 votes
1 answer
58 views

How to troubleshoot API requests sent by Ansible module?

Here's the context : The following playbook (simplified to one task for this stackoverflow topic and for ease of use) got different results depends on where I launch it. It uses the nutanix.ncp galaxy ...
motorbass's user avatar
  • 343
1 vote
1 answer
52 views

AWX error X509 using custom EE image with pyopenssl

I'm currently setting up an AWX platform hosted on K8s cluster to get a proper UI + features for multi-user purpose. Context : I created an EE image pushed on a Nexus repository that AWX use in order ...
motorbass's user avatar
  • 343
0 votes
0 answers
125 views

Where is the /runner/artifacts directory in awx on kubernetes cluster?

I've setup a basic awx instance on kubernetes named awx-demo. All runs smooth so far, I can run templates with projects and inventories sourced from a git repository. In the successful job log of a ...
Tom Lensburry's user avatar
0 votes
0 answers
161 views

Passing variable to next playbook in awx workflow

I'm having difficulties with the following setup: AWX deployed in a self hosted k8s cluster Playbooks are using the AWX-EE Playbooks are executed in a workflow template as follows: START -> 1. ...
Marc's user avatar
  • 26
0 votes
0 answers
27 views

How to import all projects defined in a metadata.yml file?

This is my first foray into anything AWX/Ansible, so please be gentle :) I've set up a new AWX instance in Kubernetes (using the AWX Operator), and am trying to import our existing job-templates from ...
Sagar's user avatar
  • 534
0 votes
0 answers
102 views

How to validate ssh keys in AWX running in Kubernetes?

Background We use Ansible/AWX running in Kubernetes (awx-operator) to manage workstations with dynamic hostnames. Authentication is handled by Red Hat IDM (FreeIPA) and the same credentials are used ...
ebarrere's user avatar
  • 330
0 votes
0 answers
59 views

For AWX, is it possible to authenticate at the reverse-proxy layer?

I have an AWX set up with an Apache reverse proxy for SSL reasons. I know AWX supports SAML/SSO natively. However, we have a standard SAML set up that we use with multiple other applications, where ...
Sagar's user avatar
  • 534
0 votes
2 answers
752 views

AWX SSH connection not establishing when running playbook

I am trying to run my first playbook. Running AWX on CentOS8,trying to connect to remote device using SSH. On my remote device I have run ssh-genkey on my device and added the .pub key to ...
leonardf2001's user avatar
0 votes
1 answer
454 views

AWX can't find host during provisioning callback

I have recently set up RHEL Satellite and I'm now integrating with our AWX/Ansible Tower implementation. The curl request I'm using is as follows: /usr/bin/curl -k -s --data "host_config_key={...
ebarrere's user avatar
  • 330
-2 votes
1 answer
835 views

How to write Ansible playbook to commit and push my new updates on gitlab repository

How to write Ansible playbook to commit and push a gitlab repository? I have Ansible tower template to launch my playbook, then playbook must do commit and push on different git repo. This git repo on ...
Aniket's user avatar
  • 1
0 votes
0 answers
134 views

AWX: prevent access from outside organizations

After setting up login via Azure AD in AWX, we find that people from other organizations are able to log in, too. After creating an organization map according to https://docs.ansible.com/ansible-tower/...
Marcus Ilgner's user avatar
0 votes
1 answer
454 views

AWX execution environment pip error ResolutionTooDeep: 2000000

I've been building an execution environment for my awx for a while now and never got any kind of problem, but now I am trying to recreate the same EE I created 1 month ago, and it does not work ...
Jose's user avatar
  • 21
0 votes
2 answers
288 views

Why is my Windows 11 host sending connection reset packets to AWX using certificate authentication?

Here is what I have done so far. Installed AWX 2.9 using docker on CentOS. Successfully managing Windows nodes (8,10) through AWX and WinRM using certificate authentication. (No problem here) ...
Abhisek Dash's user avatar
2 votes
0 answers
767 views

ansible.posix.synchronize fails with unknown rsync option

I am running an ansible playbook with the following task: - name: Yada Yada Yada ansible.posix.synchronize: src: ../foo/bar/ dest: /home/tada/tokio When i run this using AWX i get the ...
jen's user avatar
  • 121
1 vote
2 answers
830 views

Ansible Ad-Hoc command - raw module not working on Cisco IOS devices

trying to use Ad Hoc commands on both my Cisco ios Router and Switch with the -m raw Module. But getting the following error instead. $ansible -i inventory_file02.ini netgrp -m raw -a "show ...
abdo_ch's user avatar
  • 11
0 votes
1 answer
46 views

Load vars based on env in ansible

Team, I have two vars that map to two environments. I want to use them in playbook but only one value should be applied based on env playbook runs on. ex: var = test1 > should be loaded when env1 ...
AhmFM's user avatar
  • 119
0 votes
1 answer
10k views

Ansible | conditional statements should not include jinja2 templating | when group_name variable

I have a simple ansible main_task.yml file which is looped from a main.yml . inventory.ini [port_22] 192.168.0.189 192.168.0.199 [port_222] 192.168.0.199 [port_888] 192.168.0.200 main_task.yml --- - ...
divyashree kumar's user avatar
2 votes
1 answer
1k views

Ansible Automation Platform - Changing 'Control Plane Execution Environment'

I have a Ansible Automation Platform 2.1.0 installation on RHEL8. I have some jobs failing due to an incorrect Registry/image entry for the 'Control Plane Execution Environment'. I am able to replace ...
CobyCode's user avatar
  • 121
0 votes
1 answer
3k views

AWX: Unable to SSH as root into target host only when using a specific Ansible role

In our AWX environment we have an Ansible role "Nessus Applicaiton" for RHEL 7/RHEL 8. It deploys the Nessus agent application just fine for new RHEL 7 servers, but not for RHEL 8.5 servers ...
ficestat's user avatar
  • 101
1 vote
1 answer
678 views

Pass 'ansible_failed_result' variable to Tower Notification

I'm trying to find a way to use the native Ansible and Tower failure variables and notifications respectively to send an email with the result of a job's execution output. So I have a playbook that ...
davidburtton's user avatar
2 votes
0 answers
409 views

Ansible Tower tasks logs and job views

I am evaluating Ansible Tower. The key aspect I am focusing on is the logging: ansible output traces are difficult to check, Ansible Tower should bring among other things a nice view of green spots ...
Joel's user avatar
  • 121
-1 votes
1 answer
2k views

why my tasks is skipping when i run ansible playbook

- name: get user list from centOs ansible.builtin.shell: cmd: cat /etc/passwd when: ansible_distribution == "CentOs" register: ...
Rutul Beladiya's user avatar
0 votes
1 answer
530 views

loading additional modules with ansible tower

I'm trying to run a playbook on ansible tower but I'm having issues loading extra modules. I checked the playbook is configured right but it still fails with the message below... [WARNING]: Invalid ...
mitchell2423's user avatar
0 votes
0 answers
368 views

Assert working in Ansible but not in AWX

I've switched to AWX for my playbooks management and I can't seem to figure out this issue with assert. Here is a role that I've prepared: - name: Run testing environment docker_compose: ...
dywan666's user avatar
  • 160
0 votes
1 answer
5k views

Loop through var_files variables in ansible

I have a playbook that calls a role and is supposed to import apache vars for websites. The issue is that when I look into ports.conf I only see the line for website1. Website2 is never called. Any ...
Igor's user avatar
  • 71
0 votes
1 answer
564 views

How to increase the awx cli result limit of 25

I'm working with the awx cli (19.1.0) and awx (13.0.0) in an environment with over 100 servers When (e.g.) querying failed or changed results with: awx --conf.host https://my.awx --conf.username ...
MacMartin's user avatar
  • 368
0 votes
1 answer
1k views

Run a remote playbook

I have a situation where I have the AWX repo cloned into the /tmp/ folder on a remote docker swarm container and I am already using ansible playbooks. What I am trying to do is run the playbook I have ...
Sou1Aced's user avatar
0 votes
1 answer
983 views

How to cache Ansible group and host variables throughout a play

I have a playbook for some hosts which have group variables and host variables that use a custom lookup plugin to extract values from an API endpoint. ansible_user: "{{ lookup(...
Lester's user avatar
  • 617
1 vote
1 answer
613 views

How to configure multiple interface for cloud_init_nics using variables in ansible

i need some help on configure multiple cloud_init_nics using variable files. Here is my variable files for example: files/dict vm: all: - name: rhel7 hostname: rhel7 dns: "8.8.8....
sloweriang's user avatar
2 votes
1 answer
981 views

Ansible playbook starting with large forked host list, but spawning serial tasks for smaller subsets of hosts

I'm using Ansible 2.9 and AWX 11. I have a fleet of servers, some of which can be logically segmented by a tag that follows a pattern like GUID_1234567890. There is an arbitrary number of servers ...
Wesley's user avatar
  • 32.7k
3 votes
3 answers
9k views

Using if else statement inside shell module in ansible playbook

I am trying to run if else statement inside shell module in ansible playbook but looks like my else statement is not executing in any case. - name: verify application/database processes are not ...
user600994's user avatar
1 vote
1 answer
762 views

Store AWX/Ansible Tower Database password is HashiCorp Vault

With AWX and Ansible Tower, I know you can use HashiCorp Vault to manage the passwords that you use inside your playbooks. For instance if you want to configure some network devices, the credentials ...
Paul Mintoumba's user avatar
2 votes
1 answer
2k views

Is it possible to copy data from one Ansible Tower to another?

I am attempting to copy all the data (templates, credentials, inventories, etc) from my Ansible Tower production instance to my newly created dev instance. Is there a way to do this automatically ...
user597296's user avatar
0 votes
1 answer
752 views

How does everyone manage a multi server environment and their credentials with ansible?

I'm trying to figure out the cleanest and/or most secure way to manage a multi server (linux) environment in AWX/Tower/Ansible. I've seen a few posts around this topic, but there doesn't seem to be a ...
utcruibvdjrtijiiue's user avatar
0 votes
1 answer
120 views

dependency loop : to deploy gitlab using awx ansible i need a repository

I want to deploy gitlab using awx and ansible ( or with puppet and rundeck ) and to do it i need a repository ( SCM : gitlab ) , the thing is i want to deploy gitlab but i need a gitlab , i can't find ...
AMAR BESSALAH's user avatar
0 votes
1 answer
291 views

Unable to get part of a play to run locally on AWX

This is all running within AWX which is hosted on-prem. I'm trying to manage some EC2 instances within AWS. I've setup the bastion jump and can get all my other plays to work correctly. However there ...
jsjw's user avatar
  • 43
11 votes
1 answer
52k views

Converting string to integer in Ansible Playbook

I am getting a count from powershell command and registering it on variable. I have to use that count in when condition. I have changed it to int before using it in when condition too. Still that task ...
saffron's user avatar
  • 153
1 vote
1 answer
1k views

How to assign array_name dynamically to with_items in Ansible

I have a json file (server.json) with the content like this: servers_groupA: [{server_name: server1abc.net, start_file: w.bat, stop_file: d.bat}, {server_name: server2.abc.net,...
saffron's user avatar
  • 153
1 vote
1 answer
544 views

Save survey variables into host variables|facts?

I have several AWX job templates/playbooks all based off this one ansible script: https://github.com/spantaleev/matrix-docker-ansible-deploy The initial script I use to deploy a server has the ...
PC-Admin's user avatar
1 vote
1 answer
6k views

How to install AWX on RHEL 7 without Docker?

When I follow this guide to install AWX on RHEL without docker: http://yallalabs.com/devops/how-to-install-ansible-awx-without-docker-centos-7-rhel-7/ https://copr.fedorainfracloud.org/coprs/mrmeee/...
rawmain's user avatar
  • 291
0 votes
0 answers
341 views

How to check if network is available from a AWX running container to a LDAP server?

I want to connect to a LDAP server from an AWX installed server. Used docker-compose installed AWX. So it's running inside container. I can ping LDAP server IP from the server running AWX container. ...
rawmain's user avatar
  • 291
0 votes
1 answer
5k views

How to send password with special characters from ansible to Python script?

I am invoking a python script from ansible playbook. While invoking I am passing the credentials to the python script as arguments. The password has some special characters. But in Python script, I ...
saffron's user avatar
  • 153
1 vote
2 answers
5k views

Invoking Python Script through Ansible Playbook and running it in background- Through Ansible Tower

Here I am trying to invoke a python script through ansible playbook. When I run the playbook containing below mentioned code, it is successfully invoking the script. But ansible script continues to ...
saffron's user avatar
  • 153
1 vote
0 answers
484 views

What is the default user when running job/playbook from AWX?

I am running a job/playbook (git source) from AWX GUI, but it keeps connecting over ssh to managed hosts as a root user. In credentials I filled SSH PRIVATE KEY, USERNAME is blank and the default ...
Karol's user avatar
  • 11
1 vote
1 answer
105 views

Install Ansible Tower in specific directory

Can you mount a second drive at /opt/ansible and tell Tower to install there instead so it won't affect a boot partition? What are some considerations if you can?
witchkinkofAngmar's user avatar
0 votes
1 answer
924 views

installtion failure when setting up the Ansible Tower in centos 7

I am setting up an Ansible Tower in a CentOS 7 machine. I proceed through the installation as per instructions from this document But when I do the installation i get the following error TASK [...
CK LZEM7's user avatar
0 votes
1 answer
2k views

How to use ansible private roles from existing project?

For my initial ansible-awx setup i took my roles, inventories and playbooks and put them into one GIT-repository secured by ssh key authentication. HTTPS seems to be broken in Ansible-AWX 7.0 I ...
lt_katana's user avatar
0 votes
0 answers
863 views

Why does AWX expect to see files in /etc/tower when inventory file specifies docker_compose_dir=/tmp/awxcompose?

I have been using the official install guide for AWX found at github The web interface says only "Internal Server Error". The docker log contains, Traceback (most recent call last): File "/usr/...
mr.zog's user avatar
  • 921
1 vote
0 answers
2k views

AWX doesn't work with External DB

Trying to make AWX use External postgres DB, Changed the inventory database details pg_hostname=localhost pg_username=postgres pg_password=postgres pg_database=postgres pg_port=5432 # pg_sslmode=...
ANC's user avatar
  • 11