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
1
vote
1answer
57 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 ...
0
votes
0answers
50 views

Transform ansible command to work in Ansible Tower

So I am trying to run a playbook from Ansible Tower that I have already successfully run from the command line of an ansible server. However, when trying to run this playbook as a template in Ansible ...
0
votes
0answers
15 views

Call a ansible playbook that is in server2 from server1

I have 2 control nodes. Serve2 is a first control node and I have few managed hosts connected to it and I am able to run playbooks from server2. I have created a new control node Server1 and ...
2
votes
0answers
76 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 ...
-1
votes
1answer
94 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
1answer
145 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
0answers
48 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: ...
0
votes
0answers
29 views

Consecutive commands depending on each other

I'm trying to get a configuration in a specific port in Nokia device with ansible and I have to run consecutive commands to get the results like : A:XXXX# configure service vprn YYY A:XXXX>...
0
votes
1answer
661 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 ...
0
votes
1answer
132 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 ...
0
votes
1answer
513 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
1answer
311 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(...
0
votes
0answers
333 views

How in Ansible AWX 15.0.1 to use 'in' to find a nested variable from extra_vars

I wrote in my extra_vars block in AWX the following variables that I expect to be changed anytime someone runs this servers: - vm_name: TestDeploy01 vm_ip: 10.10.1.241 vm_tag: - Infra ...
1
vote
1answer
144 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....
1
vote
1answer
350 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 ...
2
votes
3answers
3k 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
1answer
367 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 ...
1
vote
1answer
1k 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
1answer
161 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
1answer
74 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
1answer
27 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 ...
8
votes
1answer
17k 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 ...
1
vote
1answer
635 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,...
1
vote
0answers
128 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
1answer
4k 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/...
0
votes
0answers
178 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. ...
0
votes
1answer
2k 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 ...
0
votes
2answers
3k 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 ...
1
vote
0answers
231 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 ...
1
vote
1answer
49 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
1answer
782 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
1answer
969 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
0answers
732 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/...
1
vote
0answers
1k 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=...
0
votes
1answer
66 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
1answer
1k views

AWX Cannot find KDC for REALM

Cannot find KDC for REALM Hello, I have an issue with Kerberos and AWX. If I create manually a ticket with kinit testeruser@TEST.PUBLIC.COM, it will worked without problems. But if I will use AWX ...
1
vote
1answer
2k 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/...
0
votes
1answer
947 views

Ansible + AWX Run playbook/tasks against machines needs minor changes from the standard role

I'm learning ansible awx and I have a situation that will come up that I want to address during testing so I'm looking for ideas and possible solutions. The file structure is from here, Best ...
2
votes
1answer
1k views

AWX docker-compose stop not working

I'm pretty new to docker-compose and I can't seem to make this work. I have been following this guide for installing AWX and has been successful so far. But when trying to stop everything using ...
0
votes
1answer
346 views

Restrict user providing asterisk * on the prompt ansible awx

I am trying to create a self service job template for our users through Ansible AWX , and want to restrict the users to mention the exact host detail where they want to run the job. During testing I ...
-1
votes
1answer
374 views

Run playbook periodically

we want to do backup using ansible and we want it to run periodically. I think its possible using os crontab to running playbook, but we want to have more neatly solution Is there any feature in ...
3
votes
2answers
10k views

Ansible Playbook running locally but unable to ssh to host via AWX

SUMMARY I have ansible and ansible AWX installed on same AWS EC2 instance and I am trying to deploy build on another app AWS EC2 instance. I am able to run the playbook via ansible-playbook command,...
0
votes
2answers
1k views

ansible replace module is not working as expected

my ansible play book is working for me to uncomment certain lines in a .conf file, but its failing for one particular line its not making any change. below is my .conf file part. #<VirtualHost ...
2
votes
1answer
2k views

ansible -how to pickup hostname and create self signed certificate

i have working command for creating self signed certificate for IHS server's .kdb file and i was trying to use the same command through ansible. Here my aim is that ansible should detect the hostname ...
9
votes
3answers
20k views

Rollback the changes in Ansible

Is there any method to rollback the changes in Ansible? Suppose my play book contains different plays like create 5 users,install 3 rpms, start the services. If I want to rollback a certain play how ...
0
votes
1answer
734 views

AWS credentials not being picked up by AWX template

I've got a new Ansible AWX server running and one of the things I'd like to do with it is to create an AMI of AWS instances before then installing regular updates to the instances. I've got the ...
2
votes
1answer
2k views

How Do I Use Ansible Tower's Credential Parameters (Machine, Network, Cloud) in my Playbook or inventory file

I am using AWX (open source Ansible Tower) and I have 2 cloud based linux machines I would like to manage with it. The 2 Linux machines have 2 different private keys that I have uploaded to the ...
0
votes
1answer
126 views

Install AWX (OSS version of Tower) through Katello

I want to install AWX for testing purposes in our organization. I would like to use the Katello server we already have deployed and we use daily. Is there any guideline about it? The "official" site ...
2
votes
1answer
669 views

How to use multiple ansible versions in ansible tower

Ansible Tower 3.3.0 Currently we are using Ansible 2.4.2, need to upgrade to 2.5.x, to take advantage of new features, without breaking existing jobs that have been tested and currently working. Would ...
1
vote
1answer
271 views

ansible tower - append custom host variables

Within ansible tower inventory, I need to programmatically append custom variables to specific hosts rather than enter them manually. How can I do this? Do any modules exist for this?