Questions tagged [ansible-tower]
For questions regarding Ansible Tower - a visual dashboard, role-based access control, and job scheduling system for Ansible deployments.
50
questions
0
votes
0answers
11 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
20 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
29 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
1answer
101 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 ...
1
vote
3answers
199 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
107 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
138 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
57 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
33 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
21 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 ...
0
votes
0answers
110 views
AWX 14 install to EKS Fails on Render deployment templates
Trying to deploy AWX 14 to kubernetes on EKS (2 node t3.xlarge nodegroup / k8s v 1.16) via the ansible-playbook from: https://github.com/ansible/awx.
Ive followed the pre-reqs and updated the ...
3
votes
1answer
2k 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
58 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
25 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 ...
0
votes
0answers
42 views
How to set IPv6 network for connecting to remote host inside local docker container?
Note: The IPv6 address in this question isn't the real IP.
There are two servers
node1(IPv6: 123a:a4b5:0102:t234:cd90:3:0:2)
node2(IPv6: 123a:a4b5:0102:t234:cd91:3:0:2)
On the node1, installed AWX ...
0
votes
0answers
659 views
How to install AWX successfully with docker-compose(Big Host is already in use by another container issue)?
When use docker-compose install AWX, got this error:
TASK [local_docker : Start the containers] ********************************************************************************************************...
1
vote
1answer
2k 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
76 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
0answers
189 views
How to connect to LDAP server provided by FreeIPA from AWX?
Installed FreeIPA by
yum install ipa-server bind-dyndb-ldap ipa-server-dns -y
ipa-server-install --setup-dns
On the FreeIPA server
Add a new user
ipa user-add test --password
Search group
...
0
votes
1answer
719 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
964 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
113 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 ...
0
votes
0answers
75 views
How do I allow POST method in Ansible Tower
Currently, it looks like Tower just allows GET, HEAD, OPTIONS. I get a 401 unauthorized error when trying to get an OAuth 2.0 token for my application.
GET /api/
HTTP 200 OK
Allow: GET, HEAD, ...
0
votes
1answer
29 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
568 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
590 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
530 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
997 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
56 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
768 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
863 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
287 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
257 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 ...
4
votes
2answers
6k 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
773 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
1k 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 ...
7
votes
3answers
14k 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
561 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
120 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
547 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
255 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?
0
votes
1answer
3k views
Ansible Tower: How to launch multiple jobs from same template parallel
I have a project in Ansible Tower, and a template derived from the project. I am running a job with this template against a host (Say a.example.com) . Now I want to run a job with this template at the ...
0
votes
1answer
229 views
Download private_key.pem when using ansible os_keypair
I'm using ansible os_keypair module towards Openstack, through AWX, to create a new keypair:
- hosts: localhost
tasks:
- name: Create new keypair, ask for the name in survey
os_keypair:
...
6
votes
3answers
10k views
How to use existing Vault files in Ansible Tower?
I want to import existing inventories that I have previously used with Ansible (standalone) including group_vars and vault files into Ansible Tower (3.2.0).
However, it doesn't seem to work once ...
-5
votes
1answer
497 views
ansible tower causing nginx problems
The ansible tower uses port 40 and 443.
Nginx also listens on port 80.
Now, the servers which I have hosted behind nginx, like netdata.
I accessed them earlier by http://xx.xx.xx.xx/netdata.
Now that ...
2
votes
3answers
8k views
Can i use my roles from Ansible in Ansible Tower?
I have created about 30 roles in ansible. Do i have to manually convert those in single playbooks to use them in Ansible Tower?
0
votes
2answers
3k views
ansible tower reports : stdout capture is missing
How to fix the error of stdout capture being missing. I am scheduling couple of tasks, initially they are running fine after couple of iteration it is throwing this error.