# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=49

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 50

---

## [Inventory variables not being read](https://forum.ansible.com/t/inventory-variables-not-being-read/36447)

<div class="topic-metadata">

**Author:** [@EE1](https://forum.ansible.com/u/EE1)\
**Replies:** 4\
**Last updated:** [March 16, 2022, 3:47pm UTC](https://forum.ansible.com/t/inventory-variables-not-being-read/36447 "2022-03-16T15:47:51Z")

</div>

Hi All, I seem to be having an issue defining a variables in my /etc/ansible/hosts. When I run a playbook against a host in my inventory, it seems the variable are not read based on the error messages. For example, here…

---

## [Ansible 5.5.0 has been released](https://forum.ansible.com/t/ansible-5-5-0-has-been-released/36445)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 2:58am UTC](https://forum.ansible.com/t/ansible-5-5-0-has-been-released/36445 "2022-03-16T02:58:32Z")

</div>

Hi all, We're happy to announce that the Ansible 5.5.0 package has been released ! Ansible 5.5.0 includes ansible-core 2.12 as well as a curated set of Ansible collections to provide a vast number of modules and plugi…

---

## [i am unable to run ec2 palybook](https://forum.ansible.com/t/i-am-unable-to-run-ec2-palybook/36440)

<div class="topic-metadata">

**Author:** [@prasanna\_kumar1](https://forum.ansible.com/u/prasanna_kumar1)\
**Replies:** 4\
**Last updated:** [March 15, 2022, 3:27pm UTC](https://forum.ansible.com/t/i-am-unable-to-run-ec2-palybook/36440 "2022-03-15T15:27:22Z")

</div>

Dear Dick, Kindly help me with this issue I am getting errors.

---

## [Any workaround to this bug ? Get Json array element having dynamically changing position in Ansible](https://forum.ansible.com/t/any-workaround-to-this-bug-get-json-array-element-having-dynamically-changing-position-in-ansible/36442)

<div class="topic-metadata">

**Author:** [@Know\_Your\_Tech](https://forum.ansible.com/u/Know_Your_Tech)\
**Replies:** 0\
**Last updated:** [March 15, 2022, 1:56pm UTC](https://forum.ansible.com/t/any-workaround-to-this-bug-get-json-array-element-having-dynamically-changing-position-in-ansible/36442 "2022-03-15T13:56:38Z")

</div>

Below is my json file where i have log array inside server array which is inside domain array. \[ { “?xml”: { “attributes”: { “encoding”: “UTF-8”, “version”: “1.0” } } }, { “domain”: \[ { “name”: “mydom” }, …

---

## [Ansible runtime in OCI ubi8](https://forum.ansible.com/t/ansible-runtime-in-oci-ubi8/36438)

<div class="topic-metadata">

**Author:** [@Eduardo\_Toro](https://forum.ansible.com/u/Eduardo_Toro)\
**Replies:** 0\
**Last updated:** [March 15, 2022, 12:08am UTC](https://forum.ansible.com/t/ansible-runtime-in-oci-ubi8/36438 "2022-03-15T00:08:02Z")

</div>

Hello Experts, My name is Eduardo. I’m seeking your assistance to confirm if it is possible to install Ansible on an OCI ubi8 from Redhat. If not, is it possible to confirm if this feature is on the current development …

---

## [Ansible Group Vars Subdirectories](https://forum.ansible.com/t/ansible-group-vars-subdirectories/36434)

<div class="topic-metadata">

**Author:** [@Gil\_Mery](https://forum.ansible.com/u/Gil_Mery)\
**Replies:** 0\
**Last updated:** [March 14, 2022, 4:03pm UTC](https://forum.ansible.com/t/ansible-group-vars-subdirectories/36434 "2022-03-14T16:03:54Z")

</div>

Hello is there a way to organize group vars in sub-directories? Strictly for readability purposes, when you have an Ansible project with a large number of group vars files it becomes very inconvenient to manage all of th…

---

## [Ansible private key passphrase](https://forum.ansible.com/t/ansible-private-key-passphrase/36432)

<div class="topic-metadata">

**Author:** [@Dip\_Giri](https://forum.ansible.com/u/Dip_Giri)\
**Replies:** 2\
**Last updated:** [March 14, 2022, 1:24pm UTC](https://forum.ansible.com/t/ansible-private-key-passphrase/36432 "2022-03-14T13:24:46Z")

</div>

How to use private key passphrase in ansible inventory file

---

## [Getting null values when parsing json](https://forum.ansible.com/t/getting-null-values-when-parsing-json/36431)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [March 14, 2022, 1:48am UTC](https://forum.ansible.com/t/getting-null-values-when-parsing-json/36431 "2022-03-14T01:48:56Z")

</div>

Below is my json file: \[ { “?xml”: { “attributes”: { “encoding”: “UTF-8”, “version”: “1.0” } } }, { “domain”: \[ { “server”: \[ { “name”: “myserv1” }, { “ssl”: { “name”: “myserv1” } }, { “log”: \[ { …

---

## [failed\_update\_count return value of win\_updates](https://forum.ansible.com/t/failed-update-count-return-value-of-win-updates/36430)

<div class="topic-metadata">

**Author:** [@David\_K](https://forum.ansible.com/u/David_K)\
**Replies:** 0\
**Last updated:** [March 13, 2022, 12:08pm UTC](https://forum.ansible.com/t/failed-update-count-return-value-of-win-updates/36430 "2022-03-13T12:08:29Z")

</div>

Hi, im rather new to ansible (started 2 days ago) and got a problem with the win\_updates module. I want all counters like failed, installed etc. for my report within the terminal. For installed, filtered and found updat…

---

## [How to discriminate between chunked and not chunked answers from uri](https://forum.ansible.com/t/how-to-discriminate-between-chunked-and-not-chunked-answers-from-uri/36425)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 5\
**Last updated:** [March 11, 2022, 5:53pm UTC](https://forum.ansible.com/t/how-to-discriminate-between-chunked-and-not-chunked-answers-from-uri/36425 "2022-03-11T17:53:47Z")

</div>

ansible core 2.12.3 I am unable to discriminate with uri between responses which have been chunked and those which haven’t.In both cases, I get the same: msg: OK (unknown bytes) transfer\_encoding: chunked This happen…

---

## [Find and replace and save at a new destination](https://forum.ansible.com/t/find-and-replace-and-save-at-a-new-destination/36423)

<div class="topic-metadata">

**Author:** [@rahul\_raviz](https://forum.ansible.com/u/rahul_raviz)\
**Replies:** 0\
**Last updated:** [March 11, 2022, 3:51am UTC](https://forum.ansible.com/t/find-and-replace-and-save-at-a-new-destination/36423 "2022-03-11T03:51:09Z")

</div>

Hi, I am looking for a task to find and replace a couple of items from a template and save it at a new destination. I am not sure how to achieve that. This is what I tried and it will only replace the contents of the te…

---

## [Why my  'hostvars' is undefined ...](https://forum.ansible.com/t/why-my-hostvars-is-undefined/36409)

<div class="topic-metadata">

**Author:** [@Philippe\_Limouzy](https://forum.ansible.com/u/Philippe_Limouzy)\
**Replies:** 1\
**Last updated:** [March 10, 2022, 7:39pm UTC](https://forum.ansible.com/t/why-my-hostvars-is-undefined/36409 "2022-03-10T19:39:35Z")

</div>

Hi Evrybody, I’m facing to a problem that I don’t understand the origin: Any help will be welcome. I want to use in a playbook a role where the name depends on a variable defined in the inventory. I have the following…

---

## [gather factCisco Catalyst 9300 regarding l2\_interfaces](https://forum.ansible.com/t/gather-factcisco-catalyst-9300-regarding-l2-interfaces/36261)

<div class="topic-metadata">

**Author:** [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Replies:** 11\
**Last updated:** [March 10, 2022, 10:18am UTC](https://forum.ansible.com/t/gather-factcisco-catalyst-9300-regarding-l2-interfaces/36261 "2022-03-10T10:18:20Z")

</div>

Hi, When I use the gather fact module and choose to get the l2\_interfaces, it doesn’t return the l2\_interfaces properties. When I use the same playbook on catalyst 3650 (also ios-xe) I get the l2\_interfaces properties. …

---

## [Mail using Ansible](https://forum.ansible.com/t/mail-using-ansible/36420)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 2\
**Last updated:** [March 10, 2022, 9:08am UTC](https://forum.ansible.com/t/mail-using-ansible/36420 "2022-03-10T09:08:21Z")

</div>

Hi Guys, I have written a play for sending an email. I am able to send an email but in receivers inbox it’s going into spam folder. Can someone please help so that mail will go in inbox. Thanks in advance. name: Mai…

---

## [Azure IP ASG](https://forum.ansible.com/t/azure-ip-asg/36416)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 1\
**Last updated:** [March 9, 2022, 10:50pm UTC](https://forum.ansible.com/t/azure-ip-asg/36416 "2022-03-09T22:50:01Z")

</div>

How would you make this work, only if ASG is provided: ip\_configurations: name:xxxx primary: True private\_ip\_allocation\_method: Static private\_ip\_address: ‘{{ server.az\_vm\_ipaddress }}’ #application\_security\_group…

---

## [ansible list in dict (need to understand how it works)](https://forum.ansible.com/t/ansible-list-in-dict-need-to-understand-how-it-works/36412)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 3:16pm UTC](https://forum.ansible.com/t/ansible-list-in-dict-need-to-understand-how-it-works/36412 "2022-03-09T15:16:55Z")

</div>

Hi everyone, I try to understand ansible dictionaries and for my need I use lists in a dictionary which makes the code not simple and I am struggling to understand that: Below there’re part of my playbook and result: u…

---

## [Remote execution of a script never exits but times out](https://forum.ansible.com/t/remote-execution-of-a-script-never-exits-but-times-out/36414)

<div class="topic-metadata">

**Author:** [@rahul\_raviz](https://forum.ansible.com/u/rahul_raviz)\
**Replies:** 1\
**Last updated:** [March 9, 2022, 2:32pm UTC](https://forum.ansible.com/t/remote-execution-of-a-script-never-exits-but-times-out/36414 "2022-03-09T14:32:02Z")

</div>

I am writing a task in a playbook which will execute a shell script on a remote server. But for some reason it never exits and hangs and then finally times out. When I run the script directly on the remote server, there …

---

## [Variables, task variables and set\_fact](https://forum.ansible.com/t/variables-task-variables-and-set-fact/36415)

<div class="topic-metadata">

**Author:** [@Alexander\_Jensen](https://forum.ansible.com/u/Alexander_Jensen)\
**Replies:** 1\
**Last updated:** [March 9, 2022, 2:29pm UTC](https://forum.ansible.com/t/variables-task-variables-and-set-fact/36415 "2022-03-09T14:29:41Z")

</div>

Hello, can someone help me to understand the behavior? Playbook:

---

## [How to stop fileglob lookup warning for not existing paths](https://forum.ansible.com/t/how-to-stop-fileglob-lookup-warning-for-not-existing-paths/36410)

<div class="topic-metadata">

**Author:** [@cloos](https://forum.ansible.com/u/cloos)\
**Replies:** 8\
**Last updated:** [March 9, 2022, 7:43am UTC](https://forum.ansible.com/t/how-to-stop-fileglob-lookup-warning-for-not-existing-paths/36410 "2022-03-09T07:43:44Z")

</div>

Hi, I have the following task: ansible.builtin.copy: src: “{{ item }}” dest: /tmp/ with\_fileglob: “files/tmp/{{ inventory\_hostname }}/\*.yaml” Directory files/tmp/bar/ contains yaml files for host bar. Directory fi…

---

## [awx.main.models.inventory](https://forum.ansible.com/t/awx-main-models-inventory/36411)

<div class="topic-metadata">

**Author:** [@Melvin\_Satheesan](https://forum.ansible.com/u/Melvin_Satheesan)\
**Replies:** 0\
**Last updated:** [March 8, 2022, 3:05pm UTC](https://forum.ansible.com/t/awx-main-models-inventory/36411 "2022-03-08T15:05:57Z")

</div>

Hello All, Good day. Would you be so kind enough to let me know in case anyone have a good documentation or cheat sheet regarding the python module ’ awx.main.models.inventory’. Many many thanks in advance. Melvin. …

---

## [Running ansible playbook on two hosts](https://forum.ansible.com/t/running-ansible-playbook-on-two-hosts/36408)

<div class="topic-metadata">

**Author:** [@Netanel\_Peretz](https://forum.ansible.com/u/Netanel_Peretz)\
**Replies:** 3\
**Last updated:** [March 8, 2022, 1:55pm UTC](https://forum.ansible.com/t/running-ansible-playbook-on-two-hosts/36408 "2022-03-08T13:55:21Z")

</div>

Hey, I want to be able to use a playbook to run a task on host1 then run a task on localhost(ansible host) and then run another task on host1 Is that supposed to be as simple as copying something like this and changing…

---

## [The name of a node is not resolved after it was resolved ?](https://forum.ansible.com/t/the-name-of-a-node-is-not-resolved-after-it-was-resolved/36396)

<div class="topic-metadata">

**Author:** [@Arc\_Tangente](https://forum.ansible.com/u/Arc_Tangente)\
**Replies:** 5\
**Last updated:** [March 8, 2022, 11:36am UTC](https://forum.ansible.com/t/the-name-of-a-node-is-not-resolved-after-it-was-resolved/36396 "2022-03-08T11:36:35Z")

</div>

Hello, I start this playbook install-mediawiki.yml, the first role is executed without problems. The second role has 4 tasks, executed fully the 2 first of them, but has suddently an issue: the name of the node is not …

---

## [ansible-galaxy vs. ansible-galaxy collections](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 3\
**Last updated:** [March 7, 2022, 11:59am UTC](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399 "2022-03-07T11:59:51Z")

</div>

Hi everyone, On the ansible documentation, I found the collection “the foreman.foreman” here’s the link: theforeman.foreman This collection can manually be installed like: ansible-galaxy collection install the foreman…

---

## [Error: Out of pty devices](https://forum.ansible.com/t/error-out-of-pty-devices/36406)

<div class="topic-metadata">

**Author:** [@yaya\_esch](https://forum.ansible.com/u/yaya_esch)\
**Replies:** 0\
**Last updated:** [March 7, 2022, 11:27am UTC](https://forum.ansible.com/t/error-out-of-pty-devices/36406 "2022-03-07T11:27:35Z")

</div>

Hello everybody ! I installed ansible tower a few days ago now and when I try to run a playbook through it I get this error: The full traceback is: Traceback (most recent call last): File “/usr/lib/python2.7/site-pac…

---

## [Unable to start kibana from ansible playbook](https://forum.ansible.com/t/unable-to-start-kibana-from-ansible-playbook/36393)

<div class="topic-metadata">

**Author:** [@Sanjay\_Khatri](https://forum.ansible.com/u/Sanjay_Khatri)\
**Replies:** 5\
**Last updated:** [March 7, 2022, 7:55am UTC](https://forum.ansible.com/t/unable-to-start-kibana-from-ansible-playbook/36393 "2022-03-07T07:55:16Z")

</div>

Start command nohup ./bin/kibana \> /dev/null 2\>&1 & After execute this command have to check kibana running mode ps aux | grep node/bin/node If i am running manually this command it is working fine but running from an…

---

## [Run playbook against multiple hosts with different variables](https://forum.ansible.com/t/run-playbook-against-multiple-hosts-with-different-variables/36392)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 2\
**Last updated:** [March 6, 2022, 1:49am UTC](https://forum.ansible.com/t/run-playbook-against-multiple-hosts-with-different-variables/36392 "2022-03-06T01:49:29Z")

</div>

So, we build alot of servers with different specs, and our YAML file variables for the build specs differ (like different CPU/RAM/HDD etc) , but the playbooks remain the same. Currently, to run multiple builds concurren…

---

## [Log registered data on task failure](https://forum.ansible.com/t/log-registered-data-on-task-failure/36400)

<div class="topic-metadata">

**Author:** [@Satya\_Narayana](https://forum.ansible.com/u/Satya_Narayana)\
**Replies:** 0\
**Last updated:** [March 4, 2022, 6:36pm UTC](https://forum.ansible.com/t/log-registered-data-on-task-failure/36400 "2022-03-04T18:36:40Z")

</div>

Hi team, Some of the tasks in my playbook register some date and I am using that data in the next tasks. Task which is consuming the previously registered data fails for some reason I want to log all the registered data…

---

## [Ansible GCP Zone](https://forum.ansible.com/t/ansible-gcp-zone/36398)

<div class="topic-metadata">

**Author:** [@Adam\_Barnett](https://forum.ansible.com/u/Adam_Barnett)\
**Replies:** 0\
**Last updated:** [March 3, 2022, 5:47pm UTC](https://forum.ansible.com/t/ansible-gcp-zone/36398 "2022-03-03T17:47:04Z")

</div>

Hi, We are using GCP with ansible which has been working great up now, we are setting all the flags in ~/.ansible.cfg for ssh i.e ssh\_args = -t -i ~/.ssh/google\_compute\_engine -o CheckHostIP=no -o ControlMaster=auto -…

---

## [Is the webhook of Ansible Tower support Bitbucket?](https://forum.ansible.com/t/is-the-webhook-of-ansible-tower-support-bitbucket/36395)

<div class="topic-metadata">

**Author:** [@Shirley](https://forum.ansible.com/u/Shirley)\
**Replies:** 0\
**Last updated:** [March 3, 2022, 7:31am UTC](https://forum.ansible.com/t/is-the-webhook-of-ansible-tower-support-bitbucket/36395 "2022-03-03T07:31:14Z")

</div>

Hello everyone, We would like to trigger a event from the repo of Bitbucket to webhook of Ansible Tower. According to the document mentioned that is currently provides webhook integration with GitHub and GitLab. Does An…

---

## [Run playbook against multiple hosts](https://forum.ansible.com/t/run-playbook-against-multiple-hosts/36389)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 5\
**Last updated:** [March 2, 2022, 3:28pm UTC](https://forum.ansible.com/t/run-playbook-against-multiple-hosts/36389 "2022-03-02T15:28:55Z")

</div>

I have defined my hosts in the variable file: \[servers\] server1 ansible\_host=ip address of server 1 server2 ansible\_host=ip address of server 2 etc I have a playbook that looks like this: hosts: ‘{{ hostname }}’ …

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=48)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=50)
