# Archives

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

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

**Page:** 120

---

## [How to execute commands on a VM running on a remote host?](https://forum.ansible.com/t/how-to-execute-commands-on-a-vm-running-on-a-remote-host/35378)

<div class="topic-metadata">

**Author:** [@Peter\_Gebirgslok](https://forum.ansible.com/u/Peter_Gebirgslok)\
**Replies:** 4\
**Last updated:** [June 21, 2021, 9:00pm UTC](https://forum.ansible.com/t/how-to-execute-commands-on-a-vm-running-on-a-remote-host/35378 "2021-06-21T21:00:50Z")

</div>

Hello Guys, I have Ansible installed on a jumphost. From the jumphost I can reach several servers (with different IPs), each running a virtual machine (that VM has the same IP on each server). I need to read the inform…

---

## [Will 17.0 version have some minor updates ?](https://forum.ansible.com/t/will-17-0-version-have-some-minor-updates/35380)

<div class="topic-metadata">

**Author:** [@Aurelien1](https://forum.ansible.com/u/Aurelien1)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 8:59pm UTC](https://forum.ansible.com/t/will-17-0-version-have-some-minor-updates/35380 "2021-06-21T20:59:42Z")

</div>

Hello there, since version 18, docker is not supported as a production version for awx. For several reasons, I can’t install awx on kubernetes at the moment, so for now I stay on the 17.1.0 version which the last suppo…

---

## [Need clarification on set\_fact module](https://forum.ansible.com/t/need-clarification-on-set-fact-module/35383)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 5\
**Last updated:** [June 21, 2021, 6:58pm UTC](https://forum.ansible.com/t/need-clarification-on-set-fact-module/35383 "2021-06-21T18:58:44Z")

</div>

Ansible documentation for set\_fact module says “Set cacheable to yes to save variables across executions using a fact cache”. So my understanding is that setting ‘cacheable: yes’ would make the contents of custom variabl…

---

## [need help on  assigning a variable when string  contains](https://forum.ansible.com/t/need-help-on-assigning-a-variable-when-string-contains/35382)

<div class="topic-metadata">

**Author:** [@Sridhar\_Sambu](https://forum.ansible.com/u/Sridhar_Sambu)\
**Replies:** 2\
**Last updated:** [June 21, 2021, 6:45pm UTC](https://forum.ansible.com/t/need-help-on-assigning-a-variable-when-string-contains/35382 "2021-06-21T18:45:21Z")

</div>

name: abc set\_fact: Var1: “TestVarable” when: “{{‘prod’ in env}}” I will pass env as prod so it should pick var1 as Testvariable. Please help on correct syntax

---

## [Documenting Playbooks](https://forum.ansible.com/t/documenting-playbooks/35384)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 0\
**Last updated:** [June 21, 2021, 5:29pm UTC](https://forum.ansible.com/t/documenting-playbooks/35384 "2021-06-21T17:29:06Z")

</div>

All, we are in the process of switching from another product to ansible at work. So we are working on our “how we want to operate” type stuff, to fill in gaps we currently have. So, we are documenting roles in a README …

---

## [Collecting key/value from json with ansible](https://forum.ansible.com/t/collecting-key-value-from-json-with-ansible/35381)

<div class="topic-metadata">

**Author:** [@Rodrigues](https://forum.ansible.com/u/Rodrigues)\
**Replies:** 0\
**Last updated:** [June 21, 2021, 11:57am UTC](https://forum.ansible.com/t/collecting-key-value-from-json-with-ansible/35381 "2021-06-21T11:57:14Z")

</div>

Hi all, I have the below json data, however i’m having a hard time collecting the two keys i’m interested. which is parent\_path and id I can get to a single value using this, however i’d like to loop through all of ite…

---

## [How do you backup/copy a single Project?](https://forum.ansible.com/t/how-do-you-backup-copy-a-single-project/35379)

<div class="topic-metadata">

**Author:** [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 7:00am UTC](https://forum.ansible.com/t/how-do-you-backup-copy-a-single-project/35379 "2021-06-21T07:00:19Z")

</div>

Hello All, How do you backup/copy a single Project, template and related credentials in an Ansible AWX and restore it to a different AWX? Thanks,

---

## [failing to run playbook](https://forum.ansible.com/t/failing-to-run-playbook/35377)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 3\
**Last updated:** [June 20, 2021, 2:01pm UTC](https://forum.ansible.com/t/failing-to-run-playbook/35377 "2021-06-20T14:01:58Z")

</div>

Hi experts, I am running below playbook :-

---

## [Batch size (serial) and playbook failing](https://forum.ansible.com/t/batch-size-serial-and-playbook-failing/35371)

<div class="topic-metadata">

**Author:** [@Go\_Away](https://forum.ansible.com/u/Go_Away)\
**Replies:** 4\
**Last updated:** [June 19, 2021, 10:12am UTC](https://forum.ansible.com/t/batch-size-serial-and-playbook-failing/35371 "2021-06-19T10:12:47Z")

</div>

Hi. I have a list of hosts of which some will always be unreachable or the tasks in playbook will otherwise fail. I have no problem with it. I cannot however understand why if I add “serial: 4” in my playbook and first …

---

## [Ansible best practices: idempotance](https://forum.ansible.com/t/ansible-best-practices-idempotance/35376)

<div class="topic-metadata">

**Author:** [@Jane\_Prusakova](https://forum.ansible.com/u/Jane_Prusakova)\
**Replies:** 17\
**Last updated:** [June 19, 2021, 5:06am UTC](https://forum.ansible.com/t/ansible-best-practices-idempotance/35376 "2021-06-19T05:06:16Z")

</div>

I am new to Ansible, and am trying to understand its best practices. My team uses Ansible for system setup and product deployment. I am reading that idempotance is the foundational virtue, where playbook idempotence is …

---

## [failed to create directory in windows remote machine](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663)

<div class="topic-metadata">

**Author:** [@P\_R\_Music\_video\_s](https://forum.ansible.com/u/P_R_Music_video_s)\
**Replies:** 7\
**Last updated:** [June 18, 2021, 8:43pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663 "2021-06-18T20:43:12Z")

</div>

hi all please tell the solution for this problem “changed”: false, “msg”: "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target director…

---

## [Idempotency in amazon..aws.ec2\_instance](https://forum.ansible.com/t/idempotency-in-amazon-aws-ec2-instance/35374)

<div class="topic-metadata">

**Author:** [@Tim\_Diggins](https://forum.ansible.com/u/Tim_Diggins)\
**Replies:** 1\
**Last updated:** [June 18, 2021, 6:24pm UTC](https://forum.ansible.com/t/idempotency-in-amazon-aws-ec2-instance/35374 "2021-06-18T18:24:51Z")

</div>

Hi when you run use “ec2” module to create an ec2 instance you can specify an id parameter to provide the client token for idempotency. I can’t see an equivalent in ec2\_instance - there’s instance\_ids, but this seems t…

---

## [increase serial value of bind zone](https://forum.ansible.com/t/increase-serial-value-of-bind-zone/35373)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 6:04pm UTC](https://forum.ansible.com/t/increase-serial-value-of-bind-zone/35373 "2021-06-18T18:04:49Z")

</div>

Hello to everyone i have to change a value inside bind zone the problem is how i can increase the serial of the zone? example file attached

---

## [Test connectivity onto windows hosts](https://forum.ansible.com/t/test-connectivity-onto-windows-hosts/35369)

<div class="topic-metadata">

**Author:** [@omoeko](https://forum.ansible.com/u/omoeko)\
**Replies:** 1\
**Last updated:** [June 18, 2021, 2:00pm UTC](https://forum.ansible.com/t/test-connectivity-onto-windows-hosts/35369 "2021-06-18T14:00:23Z")

</div>

Hi All, I have got an ansible tower setup, I am trying to test out which servers my saved credential has access to. To this effect, I am wondering what is the best way to achive this task ? Create a dynamic inventory a…

---

## [upgrade awx 9.1.0 to 17.1.0](https://forum.ansible.com/t/upgrade-awx-9-1-0-to-17-1-0/35368)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 8:34pm UTC](https://forum.ansible.com/t/upgrade-awx-9-1-0-to-17-1-0/35368 "2021-06-17T20:34:38Z")

</div>

In my quest to upgrade AWX to a more somewhat recent version I am getting hit with the following error: TASK \[local\_docker : Stop AWX before upgrading postgres\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ping Host from Ansible Server](https://forum.ansible.com/t/ping-host-from-ansible-server/35362)

<div class="topic-metadata">

**Author:** [@R.B\_Kumar](https://forum.ansible.com/u/R.B_Kumar)\
**Replies:** 8\
**Last updated:** [June 17, 2021, 7:53pm UTC](https://forum.ansible.com/t/ping-host-from-ansible-server/35362 "2021-06-17T19:53:07Z")

</div>

Hello All - I am trying to do a ping test of all the hosts in /etc/ansible/hosts, from the Ansible server. So the requirement is, the ansible server should do a ping test to all the host and return the output. regards,…

---

## [Calling rest API from Ansible](https://forum.ansible.com/t/calling-rest-api-from-ansible/35367)

<div class="topic-metadata">

**Author:** [@Rodrigues](https://forum.ansible.com/u/Rodrigues)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 6:57pm UTC](https://forum.ansible.com/t/calling-rest-api-from-ansible/35367 "2021-06-17T18:57:08Z")

</div>

Hi all, I have the below task which requires to call a rest API in order to call another API. Basically i have a dict of portgroups which i will need to call an API to get the ID from. {{ portgroupID }} Then run the b…

---

## [Unable to update/add credential field in Job Template using API in Ansible tower](https://forum.ansible.com/t/unable-to-update-add-credential-field-in-job-template-using-api-in-ansible-tower/35366)

<div class="topic-metadata">

**Author:** [@Kamlendu\_Shekhar](https://forum.ansible.com/u/Kamlendu_Shekhar)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 6:50pm UTC](https://forum.ansible.com/t/unable-to-update-add-credential-field-in-job-template-using-api-in-ansible-tower/35366 "2021-06-17T18:50:22Z")

</div>

Hi, I am trying to create/update a Job template in Ansible tower using API, everything is working great, but it’s not including the credentials what was passed as payload. even the update is not working(I tried PATCH a…

---

## [Host in multiple inventories in ansible, but not in AWX?](https://forum.ansible.com/t/host-in-multiple-inventories-in-ansible-but-not-in-awx/35365)

<div class="topic-metadata">

**Author:** [@Neil\_Davis](https://forum.ansible.com/u/Neil_Davis)\
**Replies:** 1\
**Last updated:** [June 17, 2021, 4:36pm UTC](https://forum.ansible.com/t/host-in-multiple-inventories-in-ansible-but-not-in-awx/35365 "2021-06-17T16:36:52Z")

</div>

With “simple” ansible, a host can exist in multiple inventories, whereas in AWX this does not appear to be working. Is this how it is supposed to work? Cheers

---

## [Based on vendor have to execute playbook](https://forum.ansible.com/t/based-on-vendor-have-to-execute-playbook/35364)

<div class="topic-metadata">

**Author:** [@NAVEEN](https://forum.ansible.com/u/NAVEEN)\
**Replies:** 3\
**Last updated:** [June 17, 2021, 1:55am UTC](https://forum.ansible.com/t/based-on-vendor-have-to-execute-playbook/35364 "2021-06-17T01:55:11Z")

</div>

Hello Team , I am having 3 vendors Ex :HP ,DELL ,Lenovo i have 3 separate playbooks Now i want to execute those based on vendor .If it is HP it should call Hp Playbook Likewise…Can some one please help.

---

## [Nested Collection](https://forum.ansible.com/t/nested-collection/35348)

<div class="topic-metadata">

**Author:** [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Replies:** 1\
**Last updated:** [June 16, 2021, 8:55pm UTC](https://forum.ansible.com/t/nested-collection/35348 "2021-06-16T20:55:37Z")

</div>

Hi Can someone please comment on whether or or it is possible, whether or not it is recommended to nest collections inside of other collections ? I would like to develop a collection of custom modules, which are again …

---

## [Multiple choice question? Ansible](https://forum.ansible.com/t/multiple-choice-question-ansible/35363)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [June 16, 2021, 6:22pm UTC](https://forum.ansible.com/t/multiple-choice-question-ansible/35363 "2021-06-16T18:22:10Z")

</div>

Does this come from https://vceguide.com/which-of-the-following-are-valid-parameters-of-the-template-module/ ?

---

## [Help in installing application on windows](https://forum.ansible.com/t/help-in-installing-application-on-windows/35358)

<div class="topic-metadata">

**Author:** [@Yerigeri1](https://forum.ansible.com/u/Yerigeri1)\
**Replies:** 1\
**Last updated:** [June 16, 2021, 4:53pm UTC](https://forum.ansible.com/t/help-in-installing-application-on-windows/35358 "2021-06-16T16:53:39Z")

</div>

Hi I need to install an application to many windows machines. The issue is it gets installed but not as expected. After analyzing, we figured our that if we need to automate the process we will have to do it using VNC. …

---

## [DNS Question](https://forum.ansible.com/t/dns-question/35361)

<div class="topic-metadata">

**Author:** [@Matthew\_Wimpelberg](https://forum.ansible.com/u/Matthew_Wimpelberg)\
**Replies:** 0\
**Last updated:** [June 16, 2021, 2:26pm UTC](https://forum.ansible.com/t/dns-question/35361 "2021-06-16T14:26:37Z")

</div>

Hi, I’m running AWX in AWS EKS and I’m not able to reach servers on my internal network by DNS name. How can I set nameservers for the containers?

---

## [Failed to import the required Python library](https://forum.ansible.com/t/failed-to-import-the-required-python-library/35360)

<div class="topic-metadata">

**Author:** [@Anjali\_Adhikari](https://forum.ansible.com/u/Anjali_Adhikari)\
**Replies:** 0\
**Last updated:** [June 16, 2021, 2:09pm UTC](https://forum.ansible.com/t/failed-to-import-the-required-python-library/35360 "2021-06-16T14:09:01Z")

</div>

Hi , Can anyone help me to install pysnow module frm ansible play in Ansible tower. I am getting error . Failed to import the required Python library (pysnow) on ansible-tower-6f8dccc96f-ppvr2’s Python /usr/bin/python2…

---

## [How to change password](https://forum.ansible.com/t/how-to-change-password/35359)

<div class="topic-metadata">

**Author:** [@Komal\_Suthar](https://forum.ansible.com/u/Komal_Suthar)\
**Replies:** 2\
**Last updated:** [June 16, 2021, 1:57pm UTC](https://forum.ansible.com/t/how-to-change-password/35359 "2021-06-16T13:57:06Z")

</div>

Hello, Any approach to change the existing users password on 200 plus machines in a safe way.

---

## [Need a help to perform start and stop of tomcat service](https://forum.ansible.com/t/need-a-help-to-perform-start-and-stop-of-tomcat-service/35355)

<div class="topic-metadata">

**Author:** [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 9:39pm UTC](https://forum.ansible.com/t/need-a-help-to-perform-start-and-stop-of-tomcat-service/35355 "2021-06-15T21:39:33Z")

</div>

Hello Experts, If anyone has has implemented tomcat start and stop on multiple hosts, please .let me know. Regards Amit

---

## [Reference collection root in role](https://forum.ansible.com/t/reference-collection-root-in-role/35356)

<div class="topic-metadata">

**Author:** [@Mark\_Faine](https://forum.ansible.com/u/Mark_Faine)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 9:37pm UTC](https://forum.ansible.com/t/reference-collection-root-in-role/35356 "2021-06-15T21:37:04Z")

</div>

How can I do something like this from within a ROLE: handlers: import\_tasks: {{ collection\_dir}}/handlers/apache.yaml I see that doing this in a playbook that references the collection does work however there are two…

---

## [Ansible for Windows](https://forum.ansible.com/t/ansible-for-windows/35357)

<div class="topic-metadata">

**Author:** [@Gabriel\_Viegas](https://forum.ansible.com/u/Gabriel_Viegas)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 9:20pm UTC](https://forum.ansible.com/t/ansible-for-windows/35357 "2021-06-15T21:20:22Z")

</div>

I have one question about using Ansible with Windows How to enable Administrator user with Ansible for Windows?

---

## [Failed to import the required Python library (psycopg2)](https://forum.ansible.com/t/failed-to-import-the-required-python-library-psycopg2/35351)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 6\
**Last updated:** [June 15, 2021, 9:12pm UTC](https://forum.ansible.com/t/failed-to-import-the-required-python-library-psycopg2/35351 "2021-06-15T21:12:25Z")

</div>

On Ubuntu Linux node $ ansible --version ansible \[core 2.11.1\] config file = /home/jenkins/.ansible.cfg configured module search path = \[‘/home/jenkins/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’\] …

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

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