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
1 answer
35 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={...
  • 331
-2 votes
1 answer
60 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 ...
  • 1
0 votes
0 answers
46 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/...
0 votes
1 answer
186 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 ...
  • 21
0 votes
1 answer
72 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) ...
2 votes
0 answers
438 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 ...
  • 121
0 votes
0 answers
120 views

k3s/kubernetes how to undo delete of persistentvolumeclaims (local-path) that has status Terminating

I accidentally did : kubectl delete pvc ... Now my pvc shows: NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE awx-...
0 votes
0 answers
273 views

AWX/Ansible Tower - unable to resolve Module Dependency - "No module named 'azure.cli.core.auth' "

I'm trying to install the Azure.Azcollection module on an AWX server, but encountering the following dependency error: TASK [List all keys in specific key vault] ************************************* ...
1 vote
1 answer
428 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 ...
  • 11
0 votes
1 answer
31 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 ...
  • 119
0 votes
0 answers
391 views

Ansible AWX - ansible-playbook command not found

For some reason I'm getting the following error ansible-playbook: command not found. I logged into the server and I can run the ansible-playbook command. sh-4.2$ ansible-playbook usage: ansible-...
0 votes
1 answer
5k 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 --- - ...
0 votes
0 answers
407 views

AWX/Ansible Tower unable to see playbooks in tasks role subdirectory?

I'm adding some of my Ansible playbooks into AWX/Ansible Tower, using Azure DevOps as a back end git repo, but I've found after converting them into a more role based structure that certain playbooks ...
0 votes
0 answers
406 views

Search and list AWX-Inventory in a playbook

I need help with Ansible AWX Inventory. We have many/different inventories on our AWX server which we are importing through different methods. I have a requirement to search and fetch inventory names ...
0 votes
0 answers
44 views

How to re-use vault files in different Ansible Tower projects?

I have an Ansible Tower installation and a lot of playbooks in Gitlab projects. Several projects make use of vault files, i.e. they contain credentials for a VMware VCenter. Whenever I start a new ...
1 vote
1 answer
535 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 ...
  • 111
0 votes
1 answer
1k 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 ...
1 vote
1 answer
467 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 ...
2 votes
0 answers
300 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 ...
  • 121
-1 votes
1 answer
1k 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: ...
0 votes
1 answer
380 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 ...
0 votes
0 answers
264 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: ...
  • 160
0 votes
1 answer
3k 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 ...
  • 71
0 votes
1 answer
430 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 ...
  • 358
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 ...
0 votes
1 answer
694 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(...
  • 577
1 vote
1 answer
430 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....
2 votes
1 answer
775 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 ...
  • 32.4k
3 votes
3 answers
7k 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 ...
1 vote
1 answer
586 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 ...
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 ...
0 votes
1 answer
537 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 ...
0 votes
1 answer
104 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 ...
0 votes
1 answer
102 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 ...
  • 23
9 votes
1 answer
38k 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 ...
  • 123
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,...
  • 123
1 vote
1 answer
328 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 ...
1 vote
1 answer
5k 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/...
  • 261
0 votes
0 answers
282 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. ...
  • 261
0 votes
1 answer
4k 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 ...
  • 123
0 votes
2 answers
4k 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 ...
  • 123
1 vote
0 answers
380 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 ...
  • 11
1 vote
1 answer
82 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?
0 votes
1 answer
885 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 [...
0 votes
1 answer
1k 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 ...
0 votes
0 answers
826 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/...
  • 902
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=...
  • 11
0 votes
1 answer
73 views

Difference behaviour between ansible engine and ansible tower

- name: Verification de l'espace disponible dans le VG shell: /sbin/vgs --unit g --noheadings "{{ vg_name }}"| awk '{print $7}' | sed -e "s/^<//" | sed 's/g//' register: vg_space_available - ...
0 votes
1 answer
2k views

AWX Cannot find KDC for REALM

Cannot find KDC for REALM I have an issue with Kerberos and AWX. If I create a ticket manually with kinit testeruser@TEST.PUBLIC.COM, it works without any problem. But if I will use AWX (Credential ...
  • 11
1 vote
1 answer
3k views

Template run fails on project update in AWX 3.0.0.0

AWX version: 3.0.0.0 Ansible version: 2.7.6 Host OS: CentOS 7.6.1810 I get an error when updating the project when running a template in AWX: Traceback (most recent call last): File "/var/lib/awx/...
  • 11