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.

69 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
  • 4
  • 11
10
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
  • 143
  • 1
  • 3
  • 12
8
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
  • 141
  • 1
  • 1
  • 6
4
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…
Sandeep Dharembra
  • 106
  • 1
  • 1
  • 7
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
  • 597
  • 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
1 answer

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 the incorrect entry in the image field for all of…
CobyCode
  • 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

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 represented by each unique GUID_* tag. In addition to…
Wesley
  • 32,690
  • 9
  • 82
  • 117
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
2 3 4 5