Questions tagged [ansible-tower]

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

Ansible Tower allows users to control access to who can access what, even allowing sharing of SSH credentials without someone being able to transfer those credentials. Inventory can be graphically managed or synced with a wide variety of cloud sources.

Ansible Tower logs jobs, integrates with LDAP, and provides a browsable REST API. Command line tools are available for easy integration with Jenkins. Provisioning callbacks provide support for autoscaling topologies.

65 questions
11
votes
3 answers

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 can I do. Is there any possibility that we can…
KKE
  • 135
  • 1
  • 2
  • 11
9
votes
1 answer

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 ( mail notification) is getting skipped,…
saffron
  • 123
  • 1
  • 3
  • 9
7
votes
3 answers

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 Vault files come into play. Once I've setup the Vault…
Martial
  • 131
  • 1
  • 1
  • 6
3
votes
2 answers

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,however, get Failed to connect to the host via ssh…
3
votes
3 answers

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 running shell: if ps -eaf | egrep…
2
votes
1 answer

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 docker-compose as instructed in the document, I am…
Lester
  • 567
  • 4
  • 16
2
votes
1 answer

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 of application servers and should use that name…
Vowner
  • 23
  • 1
  • 3
2
votes
1 answer

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 credentials section of AWX UI. Now I would like to use…
binithb
  • 153
  • 7
2
votes
1 answer

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 like to be able to specify the Ansible version,…
Am0s
  • 21
  • 1
2
votes
3 answers

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?
Alexander
  • 23
  • 1
  • 3
2
votes
0 answers

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 following error (see the original the json format at…
jen
  • 121
  • 1
2
votes
0 answers

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 for each executed tasks of a playbook. Except it is…
Joel
  • 121
  • 2
2
votes
1 answer

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 using an ansible API? I have attempted to research…
user597296
  • 23
  • 3
1
vote
0 answers

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=disable As per the document when we use External DB…
ANC
  • 11
  • 4
1
vote
1 answer

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/venv/awx/lib64/python3.6/site-…
Groink
  • 11
  • 1
  • 3
1
2 3 4 5