Questions tagged [ansible-tower]

Use for questions about programming issues related to the Ansible Tower REST API. Questions about using the Ansible Tower GUI for managing both cloud-based and traditional/hybrid Ansible deployments should be asked on ServerFault.com.

Ansible Tower (formerly ‘AWX’) is a web-based solution that makes Ansible even more easy to use for IT teams of all kinds. It’s designed to be the hub for all of your automation tasks.

Tower allows you 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. It logs all of your jobs, integrates well with LDAP, and has an amazing browsable REST API. Command line tools are available for easy integration with Jenkins as well. Provisioning callbacks provide great support for autoscaling topologies.

Questions about using the Ansible Tower GUI for managing both cloud-based and traditional/hybrid Ansible deployments should be asked on ServerFault.com.

343 questions
2
votes
1 answer

Copy module "content" works only for variables and "src" only for files, how to get it to work for both?

I am using Ansible copy module as follows: src: folder/file.cert dest: file_dest.cert Above works fine for files. But if I want to use Ansible Tower for certain inventories, I will provide file.cert as a variable. Now src is not working anymore and…
Stephan Kristyn
  • 15,015
  • 14
  • 88
  • 147
2
votes
2 answers

Ansible: execute roles with specific tag

Facing one issue related to tags in roles. i have specified one tag(create) to run and other tag should skip, but both the tag are executing, can someone explain how to solve this issue. roles_main.yml --- - name: roles hosts: "{{ host }}" # …
satheesh kumar
  • 61
  • 1
  • 2
  • 9
2
votes
2 answers

Using local git repository with Ansible Tower

I have been successful configuring Ansible Tower project to pull from remote git repos, and also pulling from a local repo using ssh and stored credentials (keys). On this server, allowing ssh login to access git is not acceptable, so I am trying to…
Wolske
  • 146
  • 2
  • 7
2
votes
2 answers

Use list of dictionaries variable on Ansible Tower textare survey

I'm trying to develop a playbook were I have the following variable. disk_vars: - { Unit: C, Size: 50 } - { Unit: D, Size: 50 } With the variables defined on the playbook there is no problem but when I try to use a texarea survey on Ansible Tower…
Santi
  • 35
  • 1
  • 7
2
votes
1 answer

Ansible - Access output of a shell command with with_items

I wrote a python script which gets executed via my ansible playbook and returns the following output via stdout: - { username: ansible, admin: yes} - { username: test, admin: no } The output then should get saved in the variable "users" and with…
ket
  • 39
  • 1
  • 7
2
votes
2 answers

Ansible Tower fetching file job returns OK but no file present at local machine

I have a lab that consists of an Ansible Tower system and Ubuntu Desktop client. I've successfuly created and executed some playbooks to update and install packages and everythig was OK. Now i want to fetch /var/log/syslog from remote Ubuntu desktop…
2
votes
1 answer

AWX to Jump Host: Connection timed out during banner exchange

I'm trying to use a jump/bastion host to connect to other hosts that are within a private subnet. I'm getting the following error: { "msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1:…
awx_user
  • 69
  • 7
2
votes
0 answers

Ansible tower job failing within seconds

"msg": "The following modules failed to execute: setup\n setup: Unhandled exception while executing module: The requested object does not exist. Playbook run took 0 days, 0 hours, 0 minutes, 1 seconds
Thirumoorthi
  • 508
  • 1
  • 6
  • 13
2
votes
3 answers

Why Ansible-Tower is ignoring extra variables?

Trying to lunch a job workflow via REST API and passing extra variables for the playbook to consume, but returned body shows that provided variables are put in ignored_fields section. Used POSTMAN and CURL to run the templates both returned the same…
gh0st
  • 402
  • 5
  • 13
2
votes
1 answer

How to add an inventory host to specific group using ansible tower API? So that it will display on related groups list on UI

I am unable to assign a host to group in ansible tower inventory using rest API's. Any one have worked on it please let me know the request with body.
Oomkar
  • 21
  • 1
  • 4
2
votes
1 answer

AWX custom virtual environments not showing up

I've been following instructions for setting up custom virtual environments on AWX. Steps so far: Created virtualenvs at /var/lib/awx/venv/py2 and /var/lib/awx/venv/py3 Sent authenticated PATCH request to update venv path setting Endpoint:…
Reggie
  • 413
  • 2
  • 9
  • 19
2
votes
0 answers

Ability for AWX user with limited permission to edit notifications settings on templates

Created a user in AWX with admin access to only one project. When the user creates a new templates, he does not have access to enable/disable notifications. While the system administrator have access to notifications... The new user does not have…
sreenivas
  • 2,067
  • 1
  • 19
  • 29
2
votes
0 answers

Ansible AWX UI or tower-cli smart search to exclude a pattern match

Has anyone figured out how to exclude a pattern match in AWX smart inventory search? The documentation and other blogs seem to be a bit vauge about it. I am aware AWX UI has some limitations hence the devs suggest using tower-cli for this purpose…
AKS0397
  • 31
  • 4
2
votes
1 answer

Run playbook against Openstack with Ansible Tower

I am trying to run a simple playbook against Openstack in admin tenant using Ansible Tower, both running on localhost. Here is the script: --- # - hosts: localhost gather_facts: no connection: local tasks: - name: Security Group …
Albert
  • 191
  • 1
  • 3
  • 23
2
votes
2 answers

How to enable changes in AWX Containers?

I am trying to install additional python packages in AWX container awx_tasks so that the changes could enable the ansible modules like snow, ec2_elb_facts run (which have pre-requisites as Python modules). I have made the changes in the container…
1 2
3
22 23