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
0
votes
1 answer

AWX REST API - List Inventory returning null

Environment: AWX: 3.0.1 Ansible: 2.7.8 Greetings fellows. Having a problem listing organization in AWX via REST API. This is a brand-new installation. What has been done so far: Organization Created Users created Users added to Organization Users…
user2362699
  • 586
  • 6
  • 22
0
votes
1 answer

What's the syntax for filter inventory using facts in Ansible Tower?

I tried different combinations with no luck. Filter by Ubuntu version: ansible_facts.ansible_distribution_version:"14.04" Doesn't work ansible_facts.ansible_distribution:Ubuntu working fine That's mean is possible filter by OS but not from OS…
Angeloide
  • 1
  • 1
0
votes
1 answer

AWX (Ansible Tower) LDAP Authentication

I have setup a single node AWX instance (Version 2.1.2) using Docker. Unfortunately the LDAP connection doesn't work through the following error message: WARNING django_auth_ldap Caught LDAPError while authenticating USERNAME: SERVER_DOWN({'info':…
V.Widmer
  • 21
  • 1
  • 5
0
votes
1 answer

Get deployments counts on Ansible Tower

How to get deployment counts on Ansible Tower? Is there any way to get deployment counts using ansible tower REST API?
0
votes
1 answer

Ansible AWX step fails when using DSL for Jenkins job

I'm running a Jenkins 2.140 server on Ubuntu 16.04 as well as an Ansible AWX 1.0.7.2 server using Ansible 2.6.2. I'm creating a job in Jenkins which runs a template on my Ansible AWX server. I've got several other Jenkins jobs that run templates…
shaneoh
  • 442
  • 2
  • 8
  • 26
0
votes
1 answer

Creating credential using Ansible Tower REST API

In my Ansible Tower, I have a custom credential by the name of Token wherein we store atoken so that using this credential we do not have to log in and can use this credential in various jobs. Below are the fields required - Name: Credential…
newtocoding
  • 77
  • 1
  • 11
0
votes
0 answers

Install AWX fails with Error while fetching server API version - No such file or directory

I am trying to install AWX from my local to a remote server using the ansible playbook AWX provided. I removed the dockerhub variables to create the images at runtime since the remote server does not have internet connection. Docker is installed and…
AdrianD
  • 43
  • 1
  • 6
0
votes
1 answer

Undefined variable error 'dict object' on various hosts when running playbook

EDIT: It seems this only occurs when running with the --check parameter. Running this playbook live doesn't throw this error. But it would still be good to know what is causing this. I'm starting to use Ansible AWX to manage a bunch of servers and…
shaneoh
  • 442
  • 2
  • 8
  • 26
0
votes
1 answer

Get inventory scripts from source control in awx

In AWX, currently if you select inventory scripts > Custom scripts, you can only paste the code in the input box. Is there a way to pull the script from source control ?
sreenivas
  • 2,067
  • 1
  • 19
  • 29
0
votes
1 answer

adding a single host to ansible tower using yaml

I have: a ansilbe tower set up (aws EC2). a ubuntu server (aws ec2). I have created a inventory group of main in tower and am attempting to add the ubuntu server as a host. --- - name: ubuntu add_host: name: "192.168.1.1" groups:…
0
votes
1 answer

Using hosts: localhost and delegate_to causes kerberos UNREACHABLE! error?

These plays work completely on (non-tower) ansible command line, tower command line, but not in the tower GUI. I've trimmed it down to 3 plays. The first 2 work in the tower GUI, but not the 3rd play. I am obviously missing something basic ... ping…
older coder
  • 614
  • 1
  • 4
  • 12
0
votes
0 answers

Refer to ansible inventory ip address

I got the inventory file with content of ip addresses, 192.168.1.1 192.168.1.2 192.168.1.3 I want to capture the ip address especially when it's passing to the tasks and looping it. If use the variables on ansible facts, I'm afraid I might use…
Ricky Vene
  • 105
  • 1
  • 11
0
votes
1 answer

Ansible - Redoing a task in a remote machine

I am new with ansible/ansible tower and I've been trying it for some days and trying to copy file, installing software to other machines, and other things. I have a doubt. Let's say I have 1 control machine and 10 hosts. I want to copy, for example,…
fr0zt
  • 733
  • 4
  • 12
  • 30
0
votes
2 answers

Ansible Tower scheduled jobs use template extra vars?

Do scheduled jobs in Tower use the extra vars set in the original template the job was based on? Scheduled Jobs have extra vars also, but it seems like you'd want to still utilize the extra vars set in the template, and I'd rather not have to…
Carson Cole
  • 4,183
  • 6
  • 25
  • 35
0
votes
1 answer

change job type of an executed ansible tower job from check to run upon rerun

In the continuous delivery step of my application, I want Jenkins to invoke the ansible tower job (through tower cli) in job type check. Once the devops team decides to release it, I want them to just change the job type to "run" so that the actual…