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
3 answers

Azure CLI commands in Ansible AWX

I'm running Ansible using AWX, I have configured Azure Credentials and I'm able to use Azure Modules to create/delete Azure Resources. However Ansible is lacking some of the modules that I need, therefore I wanted to run direct commands using Azure…
user3574248
  • 167
  • 1
  • 3
  • 10
0
votes
2 answers

Rocketchat integration with AWX Tower notification

I'm looking for a way how to integrate a notification for Ansible Tower / AWX to Rocket.Chat? I can't find a suitable script for Rocket.Chat integration.
TRW
  • 876
  • 7
  • 23
0
votes
2 answers

Ansible - ENTRYPOINT with relative path

We are able to run the docker container locally with docker file having relative path in ENTRYPOINT: USER user1 WORKDIR /home/user1 ADD script.sh $HOME/script.sh ENTRYPOINT ["./script.sh"] When the same docker image(of above docker file) is…
overexchange
  • 15,768
  • 30
  • 152
  • 347
0
votes
1 answer

Install the tower RPM task failed

Tried running the setup.sh file for installing ansbile tower. But the script keeps failing at install the tower RPM task. ansible version=2.8 TASK [packages_el : Install the Tower RPM.] fatal: [localhost]: FAILED! => {"changed": true,…
0
votes
1 answer

How to retrieve the execution status of ansible module?

Below the docker_container module: - name: Create a data container docker_container: name: mydeploycontainer image: 1111112222.dkr.ecr.us-east-1.amazonaws.com/someteam/app-deploy:v.1 env: name1: "value1" name2: "value2" …
overexchange
  • 15,768
  • 30
  • 152
  • 347
0
votes
1 answer

Passing variables to serial plays in AWX or Ansible Tower

I`m trying to pass a variable to the playbook with current date and time. The goal is to create a DIR at all affected hosts for deployment, consisting current date and time with seconds. The number of hosts is 12, and I use "serial: 2" option in the…
0
votes
1 answer

How to do inventory sync as soon as the inventory is created in ansible tower through script (in an automated fashion)

I wanted to understand how to do inventory sync as soon as the inventory is created using schedules (something like below) : tower-cli schedule create --name sync_schedule --inventory-source 182 --rrule "DTSTART:20190507T183000Z…
user312307
  • 153
  • 6
  • 21
0
votes
1 answer

Curl command to get inventory-id from ansible tower

I need to retrieve the inventory_id for a given project (project_dev is the project name) from ansible tower using curl command curl -X GET -s -k -u "user:password" -vvv -H 'Content-Type:application/json' -d '{"organization": 1,"name":…
user312307
  • 153
  • 6
  • 21
0
votes
1 answer

how to use tower-cli to schedule a job

I have an ansible-tower template that I want to run at a specific time in the future. To do this I believe I should run tower-cli schedule create then pass some parameters to the program, however I don't know how to pass the date/time parameter. I…
user11466558
  • 127
  • 3
  • 10
0
votes
0 answers

Multiple settings for variable AWX

I use Ansible for some time already. But now I have started with AWX so it means that INI file for HOSTS is no more available and I have to use JSON or YAML. I used to use in INI format: [lgspocvm] server1 ip=192.168.1.x cpu=2 ram=4096…
0
votes
1 answer

ansible awx/tower not accepting list of values in a variable

I am trying to launch an awx/tower job template passing a list of values in a variable but the task is getting executed only on one target host. sample request curl -H "Content-Type: application/json" -X POST -s -u admin:admin123 -d '{ "extra_vars":…
mikegray.397
  • 75
  • 1
  • 2
  • 9
0
votes
1 answer

How to add remote hosts in Ansible AWX/Tower?

I'm setting up Ansible AWX and so far it's been working nicely. Although when I'm trying to add remote hosts (e.g hosts that is NOT localhost) the playbook fails, even though it's possible to ssh from the machine running AWX to the nodes. The node…
Heihade1
  • 79
  • 3
  • 8
0
votes
0 answers

Unable to run command using Sudo in Ansible

I’m running an Ansible job wherein I’m switching the user to a Service Account to run a certain command. I am able to switch the user and confirm the same using the become method and then a raw: whoami. When in the same scenario post the become…
0
votes
1 answer

AWX problems: email notifications and inventory from git

I am having trouble configuring email notifications in AWX. I have created this one but it does not work. When making a test this is what I obtain. I have tried changing the file /etc/tower/settings.py in awx_task container and in awx_web container…
Rendan
  • 11
  • 3
0
votes
1 answer

Ansible AWX Custom Script for Local Inventory Not working

I have an Ansible AWX server setup within a container and have setup all bar Inventory of 3 local LAN virtual machines. I am looking to add some already deployed virtual machines on my LAN for a test case, currently 3 hosts. I was looking at custom…
DeclanG
  • 240
  • 2
  • 6
  • 21