# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=90

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

**Page:** 91

---

## [create single vmware dynamic inventory from multiple vcenters](https://forum.ansible.com/t/create-single-vmware-dynamic-inventory-from-multiple-vcenters/36242)

<div class="topic-metadata">

**Author:** [@Amjad\_Saleem1](https://forum.ansible.com/u/Amjad_Saleem1)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 5:46pm UTC](https://forum.ansible.com/t/create-single-vmware-dynamic-inventory-from-multiple-vcenters/36242 "2022-01-23T17:46:43Z")

</div>

I am trying to collect all vms in four different vcenters to create inventory and further act on the that inventory. Using vmware\_vm\_inventory, I can target one vcenter and hostname does not support a list: plugin: vmwa…

---

## [MacOS unable to use VMWARE\_GUEST module](https://forum.ansible.com/t/macos-unable-to-use-vmware-guest-module/36167)

<div class="topic-metadata">

**Author:** [@D\_I](https://forum.ansible.com/u/D_I)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 3:57am UTC](https://forum.ansible.com/t/macos-unable-to-use-vmware-guest-module/36167 "2022-01-23T03:57:32Z")

</div>

Hi Everybody, I am having this issue while I am running from my Mac where ansible doesn’t recognize VMWARE\_GUEST modules though they are installed. Any idea why its not able to recognize? I am using OS Monterey 12.1. C…

---

## [Can we trigger the Ansible Palaybook from JumpBox?](https://forum.ansible.com/t/can-we-trigger-the-ansible-palaybook-from-jumpbox/36225)

<div class="topic-metadata">

**Author:** [@Vinay\_Korrapati](https://forum.ansible.com/u/Vinay_Korrapati)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 6:04pm UTC](https://forum.ansible.com/t/can-we-trigger-the-ansible-palaybook-from-jumpbox/36225 "2022-01-22T18:04:25Z")

</div>

Hi Team, Created the Playbook which changes the registry setting of the respective machine. I would like to trigger that Playbook by using powershell from my jumpbox And playbook should be execute on respective machine…

---

## [I have a query regarding how to print difference between an ansible output and customer expected value.](https://forum.ansible.com/t/i-have-a-query-regarding-how-to-print-difference-between-an-ansible-output-and-customer-expected-value/36233)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 5:59pm UTC](https://forum.ansible.com/t/i-have-a-query-regarding-how-to-print-difference-between-an-ansible-output-and-customer-expected-value/36233 "2022-01-22T17:59:19Z")

</div>

As per my role \[root@ansible-master tasks\]# cat main.yml — # tasks file for Security\_Info\_Tab8 - shell: grep -v ^# /etc/xinetd.d/telnet | grep -i disable register: telnet\_setting changed\_when: false - assert: that: - lo…

---

## [seeking help with problem when using gather\_facts](https://forum.ansible.com/t/seeking-help-with-problem-when-using-gather-facts/36240)

<div class="topic-metadata">

**Author:** [@Zack\_May](https://forum.ansible.com/u/Zack_May)\
**Replies:** 2\
**Last updated:** [January 22, 2022, 5:47pm UTC](https://forum.ansible.com/t/seeking-help-with-problem-when-using-gather-facts/36240 "2022-01-22T17:47:12Z")

</div>

I’m hoping someone can help me figure out what is going on within my ansible environment. When I try and use gather\_facts inside a playbook I get a failure to connect over ssh to that system. However, if I do not gather\_…

---

## [to\_json filter (sometimes) turns values into strings](https://forum.ansible.com/t/to-json-filter-sometimes-turns-values-into-strings/36239)

<div class="topic-metadata">

**Author:** [@jriendeau](https://forum.ansible.com/u/jriendeau)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 1:45am UTC](https://forum.ansible.com/t/to-json-filter-sometimes-turns-values-into-strings/36239 "2022-01-22T01:45:41Z")

</div>

Hi all, It seems like the to\_json filter behaves differently depending on: Whether it’s passed the result of a template call directly, or whether the result of the template call is placed into a fact first Whether the…

---

## [Ansible playbook for DNS addition for windows servers](https://forum.ansible.com/t/ansible-playbook-for-dns-addition-for-windows-servers/36226)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 8:44pm UTC](https://forum.ansible.com/t/ansible-playbook-for-dns-addition-for-windows-servers/36226 "2022-01-21T20:44:18Z")

</div>

Hi Guys, Please help me for windows dns addition playbook for adding A record, PTR record and Cname record. If anyone had any sample playbook that will be helpful. Thank you in advance.

---

## [Add/substract to list items - but without a loop](https://forum.ansible.com/t/add-substract-to-list-items-but-without-a-loop/36235)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 5\
**Last updated:** [January 21, 2022, 7:05pm UTC](https://forum.ansible.com/t/add-substract-to-list-items-but-without-a-loop/36235 "2022-01-21T19:05:30Z")

</div>

Hi I have this list of ints: selection: 1 4 5 7 I’d like to subtract 1 from each item, so that I will end up with: selection: 0 3 4 6 I’d like to avoid adding an intermediary set\_fact loop to do the math. If I …

---

## [Use ansible-test with custom yamllint config](https://forum.ansible.com/t/use-ansible-test-with-custom-yamllint-config/36237)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 6:45pm UTC](https://forum.ansible.com/t/use-ansible-test-with-custom-yamllint-config/36237 "2022-01-21T18:45:08Z")

</div>

I am trying to use ansible-test to test my collections. So far, ansile-test seems too opinionated of a tool for general-purpose use. For instance, I am trying to use a custom yamlling config with it but i cant find a way…

---

## [Collections requiring additional python libraries](https://forum.ansible.com/t/collections-requiring-additional-python-libraries/34802)

<div class="topic-metadata">

**Author:** [@Kaleb\_S](https://forum.ansible.com/u/Kaleb_S)\
**Replies:** 16\
**Last updated:** [January 21, 2022, 6:39pm UTC](https://forum.ansible.com/t/collections-requiring-additional-python-libraries/34802 "2022-01-21T18:39:35Z")

</div>

I’m trying to use a netapp collection - I have enabled collection and role download within AWX, but the error I’m getting is the python NetApp-Lib module is required I’ve tried putting a requirements.yaml and collection…

---

## [Foreman inventory certificate verify failed](https://forum.ansible.com/t/foreman-inventory-certificate-verify-failed/36190)

<div class="topic-metadata">

**Author:** [@Rob\_B](https://forum.ansible.com/u/Rob_B)\
**Replies:** 3\
**Last updated:** [January 21, 2022, 6:05pm UTC](https://forum.ansible.com/t/foreman-inventory-certificate-verify-failed/36190 "2022-01-21T18:05:32Z")

</div>

Hi, I’m trying out AWX 19.5.0 with a view to migrate from 17.1.0 but i’ve hit an issue syncing our Foreman as an inventory source. With v17.1.0, the inventory sync shows a warning about unverified HTTPS request but is …

---

## [is ~/.bashrc of a become\_user read upon TASK execution?](https://forum.ansible.com/t/is-bashrc-of-a-become-user-read-upon-task-execution/36222)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 8\
**Last updated:** [January 21, 2022, 4:08pm UTC](https://forum.ansible.com/t/is-bashrc-of-a-become-user-read-upon-task-execution/36222 "2022-01-21T16:08:44Z")

</div>

can anybody tell me whether the ~/.bashrc of a become\_user is being read on TASK execution, so you could rely on aliases, environment variables or PATH to be effective?

---

## [file ... directory only created on 2nd run](https://forum.ansible.com/t/file-directory-only-created-on-2nd-run/36232)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 12:48pm UTC](https://forum.ansible.com/t/file-directory-only-created-on-2nd-run/36232 "2022-01-21T12:48:07Z")

</div>

I have this TASK in a roles tasks/main.yml it reliably (almost 100% of the occassions I’d say) fails to create the directory ‘data’ on the 1st run of the playbook. Also with 100% reliabilty it succeeds with this on a 2…

---

## [Pip upgrade pip failing in ansible](https://forum.ansible.com/t/pip-upgrade-pip-failing-in-ansible/36234)

<div class="topic-metadata">

**Author:** [@Morgan\_Pimblett](https://forum.ansible.com/u/Morgan_Pimblett)\
**Replies:** 0\
**Last updated:** [January 21, 2022, 12:12pm UTC](https://forum.ansible.com/t/pip-upgrade-pip-failing-in-ansible/36234 "2022-01-21T12:12:33Z")

</div>

I’ve upgraded my virtualbox to bento/ubuntu-20.04 and I’m trying to rebuild the vm. The machine boots OK. I’ve had to make some changes to the ansible playbook but I’m stuck on the upgrade pip task. name: upgrade pip …

---

## [Adding OneView Collection in AWX](https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208)

<div class="topic-metadata">

**Author:** [@mulae001](https://forum.ansible.com/u/mulae001)\
**Replies:** 2\
**Last updated:** [January 21, 2022, 9:45am UTC](https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208 "2022-01-21T09:45:07Z")

</div>

Hi there, I’ve recently deployed AWX 19.5 using k3s/awx operator (0.15). I’ve followed a quite basic documentation found online which helped in deploying the cluster and a functional AWX without major issues. I’ve manag…

---

## [ansible playbook to create aws storage gateway](https://forum.ansible.com/t/ansible-playbook-to-create-aws-storage-gateway/36230)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 9:24am UTC](https://forum.ansible.com/t/ansible-playbook-to-create-aws-storage-gateway/36230 "2022-01-21T09:24:19Z")

</div>

I create an ec2 appliance with ansible. now I want to have another role to create the file storage gateway any idea how to do this? I dont see anything for aws storage gateway in ansible doc

---

## [roles - apply variable values from /defaults/main.yml](https://forum.ansible.com/t/roles-apply-variable-values-from-defaults-main-yml/36228)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [January 21, 2022, 6:50am UTC](https://forum.ansible.com/t/roles-apply-variable-values-from-defaults-main-yml/36228 "2022-01-21T06:50:39Z")

</div>

using roles with this type of structure and face a problem with variable values apparently not being applied from the /defaults/main.yml role01 \_\_/tasks \_\_main.yml \_\_/defaults \_\_main.yml As far my un…

---

## [The "mount' module and adding a mount option](https://forum.ansible.com/t/the-mount-module-and-adding-a-mount-option/36213)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 2\
**Last updated:** [January 21, 2022, 3:32am UTC](https://forum.ansible.com/t/the-mount-module-and-adding-a-mount-option/36213 "2022-01-21T03:32:29Z")

</div>

I’ve got a variety of mounts that I want to ensure specific flags are set on each. For other reasons, the mounts don’t have the same flags. I mistakenly thought the ‘mount’ module would ensure each had the flag, but ins…

---

## [Looping over l2\_interfaces only show the interface name](https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229)

<div class="topic-metadata">

**Author:** [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 8:53pm UTC](https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229 "2022-01-20T20:53:00Z")

</div>

Hi, In the past when I have used ansible\_network\_resources.l2\_interfaces it provided me with a dictionary. But now I am getting a class type list variable instead of a dictionary (which is odd). Therefore I am missing a…

---

## [Ansible + ACI very slow execution](https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227)

<div class="topic-metadata">

**Author:** [@JP1](https://forum.ansible.com/u/JP1)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 8:13am UTC](https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227 "2022-01-20T08:13:46Z")

</div>

Hi, I wrote playbook that should assign static port mappings in 130 EPG for 25 interfaces and it took about 1 hour to execute. Playbook : name: Do static port mapping include: do\_static\_binding.yaml with\_items: “{{…

---

## [Automating the playbooks promotion to production](https://forum.ansible.com/t/automating-the-playbooks-promotion-to-production/36197)

<div class="topic-metadata">

**Author:** [@pabbisetty.hm](https://forum.ansible.com/u/pabbisetty.hm)\
**Replies:** 6\
**Last updated:** [January 19, 2022, 9:04pm UTC](https://forum.ansible.com/t/automating-the-playbooks-promotion-to-production/36197 "2022-01-19T21:04:41Z")

</div>

Hello team, I am new to Awx and I find tool very interesting to learn. Recently , our project went live but we had to manually create and deploy playbooks from dev to production. I am looking for options on how to aut…

---

## [Problem awx-operator deployment("dial tcp 10.96.0.1:443: connect: no route to host")](https://forum.ansible.com/t/problem-awx-operator-deployment-dial-tcp-10-96-0-1-connect-no-route-to-host/36212)

<div class="topic-metadata">

**Author:** [@test\_test](https://forum.ansible.com/u/test_test)\
**Replies:** 1\
**Last updated:** [January 19, 2022, 8:36pm UTC](https://forum.ansible.com/t/problem-awx-operator-deployment-dial-tcp-10-96-0-1-connect-no-route-to-host/36212 "2022-01-19T20:36:06Z")

</div>

Hello, when i deploy awx-operator on K8s cluster (1 Master+ 3 Nodes) i have this issue: {“level”:“info”,“ts”:1642466453.5412004,“logger”:“cmd”,“msg”:“Version”,“Go Version”:“go1.16.9”,“GOOS”:“linux”,“GOARCH”:“amd64”,“an…

---

## [Can I modify Ansible 'remote\_tmp' on a per task basis?](https://forum.ansible.com/t/can-i-modify-ansible-remote-tmp-on-a-per-task-basis/36217)

<div class="topic-metadata">

**Author:** [@BOB\_BOB](https://forum.ansible.com/u/BOB_BOB)\
**Replies:** 3\
**Last updated:** [January 19, 2022, 6:50pm UTC](https://forum.ansible.com/t/can-i-modify-ansible-remote-tmp-on-a-per-task-basis/36217 "2022-01-19T18:50:49Z")

</div>

I am running some tasks with delegate\_to. When those tasks run, they use the same remote\_tmp directory setup from the ansible.cfg. However, due to permissions and directory size issues, I need to change the remote\_tmp di…

---

## [ansible\_fqdn only contains the hostname](https://forum.ansible.com/t/ansible-fqdn-only-contains-the-hostname/19494)

<div class="topic-metadata">

**Author:** [@Toby\_Corkindale](https://forum.ansible.com/u/Toby_Corkindale)\
**Replies:** 6\
**Last updated:** [January 19, 2022, 3:35pm UTC](https://forum.ansible.com/t/ansible-fqdn-only-contains-the-hostname/19494 "2022-01-19T15:35:42Z")

</div>

I’ve been having trouble with this for a while… On Ubuntu 14.04 (current LTS), the ansible\_fqdn variable often only contains the hostname, not the hostname+domainname. I’ve tried to fix this by having ansible insert a …

---

## [I cannot see your replies to my post](https://forum.ansible.com/t/i-cannot-see-your-replies-to-my-post/36224)

<div class="topic-metadata">

**Author:** [@Kevin\_Y](https://forum.ansible.com/u/Kevin_Y)\
**Replies:** 1\
**Last updated:** [January 19, 2022, 3:23pm UTC](https://forum.ansible.com/t/i-cannot-see-your-replies-to-my-post/36224 "2022-01-19T15:23:32Z")

</div>

Hi please see the below. It looks like my post has 3 replies. but when i clicked on it, I can see no body’s reply. what is wrong? Thank you

---

## [Error while re-directing ansible playbook output.](https://forum.ansible.com/t/error-while-re-directing-ansible-playbook-output/36223)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 11:02am UTC](https://forum.ansible.com/t/error-while-re-directing-ansible-playbook-output/36223 "2022-01-19T11:02:59Z")

</div>

Hi All, I have a simple playbook where I am re-directing output of crontab -l command. However its gives me an empty output file once the playbook is executed. Any suggestion please.

---

## [Install lxml for community.general.xml](https://forum.ansible.com/t/install-lxml-for-community-general-xml/36221)

<div class="topic-metadata">

**Author:** [@Jason\_Wood](https://forum.ansible.com/u/Jason_Wood)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 5:45am UTC](https://forum.ansible.com/t/install-lxml-for-community-general-xml/36221 "2022-01-19T05:45:01Z")

</div>

I am running Ansible on Ubuntu 20.04. I’d like to use the community.general.xml module. I get a “ModuleNotFoundError” relating to lxml when I try to run the playbook. I tried sudo apt-get install python3-lxml There w…

---

## [Help with acme\_certificate / letsencrypt and empty challenge\_data](https://forum.ansible.com/t/help-with-acme-certificate-letsencrypt-and-empty-challenge-data/36214)

<div class="topic-metadata">

**Author:** [@Jason\_Wood](https://forum.ansible.com/u/Jason_Wood)\
**Replies:** 9\
**Last updated:** [January 19, 2022, 12:43am UTC](https://forum.ansible.com/t/help-with-acme-certificate-letsencrypt-and-empty-challenge-data/36214 "2022-01-19T00:43:17Z")

</div>

I’m fairly new to this. I’m using ansible 2.9.6 on Ubuntu 20.04. I followed the Digital Ocean tutorial to get started with letsencrypt/acme\_certificate The problem I run into is that if I run the play again, I get an e…

---

## [Minio and Ansible](https://forum.ansible.com/t/minio-and-ansible/36215)

<div class="topic-metadata">

**Author:** [@Andreas\_Wachter](https://forum.ansible.com/u/Andreas_Wachter)\
**Replies:** 3\
**Last updated:** [January 18, 2022, 6:29pm UTC](https://forum.ansible.com/t/minio-and-ansible/36215 "2022-01-18T18:29:56Z")

</div>

Hi, I try to download a file from my minio with the following playbook: name: download file aws\_s3: s3\_url: https://minio.xxx.yyy bucket: artifacts object: awesome/file.jar dest: /some/where/file.jar mode: get …

---

## [AWX fresh install : All jobs still pending](https://forum.ansible.com/t/awx-fresh-install-all-jobs-still-pending/36219)

<div class="topic-metadata">

**Author:** [@JS\_G](https://forum.ansible.com/u/JS_G)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 4:21pm UTC](https://forum.ansible.com/t/awx-fresh-install-all-jobs-still-pending/36219 "2022-01-18T16:21:55Z")

</div>

Hello, On fresh install of AWX (19.5.0), all jobs still pending. On awx task container, I have this error message in loop : Traceback (most recent call last): File “/usr/bin/awx-manage”, line 8, in sys.exit(manage(…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=89)

[Next page](https://forum.ansible.com/c/archives/31.md?page=91)
