Questions tagged [ansible-awx]

Ansible Tower is a GUI and REST API for managing both cloud-based and traditional/hybrid Ansible deployments

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is the upstream project for Red Hat Ansible Tower, a commercial derivative of AWX.

Home Page: https://github.com/ansible/awx

424 questions
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
0 answers

How to limit host for a workflow job by calling the awx api on zabbix server

I want to use zabbix server to auto-discover linux servers and make a trigger for ansible awx to install zabbix agent on the newly discovered server. I have followed this tutorial. The difference is that I want to use a workflow template that first…
James
  • 1
  • 1
0
votes
1 answer

how to run a task with node command in ansible-awx?

I'm trying to run a nodejs script from ansible-playbook from AWX. the command works fine in regular cli, but when I run it from the playbook it fails! ansible version: ansible 2.5.1 config file = /etc/ansible/ansible.cfg configured module search…
AsimNet
  • 61
  • 1
  • 9
0
votes
1 answer

How to associate a group to a host with Ansible Tower / AWX REST api?

I am able to create a host in AWX with the REST API but haven't found out how to associate that host to a group via the REST api. (The groups have already been created via the GUI). Wondering how to add the group to the host via the REST…
Alexander Witte
  • 195
  • 1
  • 11
0
votes
1 answer

How can I connect to a windows client with awx?

As far as I konw about awx, it use CREDENTIAL to connect to the client host, but how can awx connect to a client host with a windows operation system such as windows 2012? If I use the machine CREDENTIAL type ,the awx will still use ssh to connect…
0
votes
0 answers

Why the ansible-awx "project - save button" is disable?and "playbook directory" input label disappeared?

I have an ansbile-awx server in my vmworkstation software. The awx-web URL can be open,but when I wanna create a project,I found the save button is always disabled whatever i do , and the playbook directory input disappeared. I have already make…
0
votes
1 answer

Checkout the same branch for roles using requirements.yml in awx/ansible

I have a project git repository and a roles git repository both have branches with the same name, my project git repository has the requirements.yml similar to below --- - src: scm: git version: master path:…
Snipzwolf
  • 533
  • 1
  • 8
  • 22
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
0 answers

Is it possible to set/lookup Ansible facts when play returns multiple values

I have the following playbook in AWX that looks up Infoblox hosts based on their Mac Address and then outputs the information in a more user friendly format. The current playbook works providing that a single host with that Mac address exists but…
0
votes
1 answer

Is it possible to set an Ansible fact only if a variable has a value?

I have an Ansible playbook that I'm running from AWX. The playing uses the Infoblox nios module to retrieve information about Infoblox host registrations. I'm using the set_fact module to to take the output of the query and then define a number of…
0
votes
1 answer

Why can Ansible AWX only have one machine credential per inventory?

Is there a reason not to set credentials for each host? When defined multiple hosts in one inventory, is it common sense to share one private key?
NozTa
  • 45
  • 4
0
votes
0 answers

Inside ngOnInit() subscribing a url through service and getting a ID which eventually has to be passed to diff method in same ngOnInit()

First, I was trying to hit a url through a service and calling that service in a component.ts (ngOnInit()) and getting a ID from that first url. Second, I had to pass the ID that i got from the first call to the other url through service method and…
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
2 answers

Unable to install ansible-awx Ubuntu 18.04

I am trying to install AWX on Ubuntu 18.04 and i am getting the Error. I have checked out the latest version of awx from github and tried running the install using ansible-playbook -i inventory install.yml -vvvv TASK [local_docker : Start the…
Sateesh K
  • 1,071
  • 3
  • 19
  • 45
0
votes
0 answers

Tow replicas awx on k8s

I deployed one replica of awx using the instalation role in repo of the the project. then i scales the statfulset of AWX to 2 replicas. but when i tail the the logs of the pods for example awx-0 and awx-1 they are both recieving the same request at…
Midokate
  • 95
  • 3
  • 11