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
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
vote
1 answer

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?
jnmns
  • 11
  • 2
1
vote
1 answer

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 version" -u abdo -K Error==== BECOME password: R1 | FAILED…
abdo_ch
  • 11
  • 2
1
vote
1 answer

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 does something like this: rescue: - debug: …
davidburtton
  • 41
  • 1
  • 4
1
vote
1 answer

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.8 8.8.4.4" nic: - nic_name: eth0 …
sloweriang
  • 121
  • 1
  • 6
1
vote
1 answer

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 for accessing these devices could reside in the…
1
vote
1 answer

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, start_file: w.bat, stop_file: d.bat} …
saffron
  • 143
  • 1
  • 3
  • 12
1
vote
1 answer

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 variables currently defined in Inventories >…
PC-Admin
  • 63
  • 1
  • 7
1
vote
1 answer

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/awx/repo/epel-7/mrmeee-awx-epel-7.repo has been…
rawmain
  • 291
  • 1
  • 7
  • 17
1
vote
2 answers

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 run till the Python script finishes all its Task. -…
saffron
  • 143
  • 1
  • 3
  • 12
1
vote
0 answers

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 configuration /etc/ansible/ansible.cfg has not been…
Karol
  • 11
  • 1
1
vote
1 answer

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

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 [config_dynamic : Set database to internal or external]…
CK LZEM7
  • 3
  • 3
0
votes
1 answer

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 imported the GIT-repository as a project into…
lt_katana
  • 11
  • 1
  • 5