# Archives

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

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

**Page:** 215

---

## [Developing new module, that includes filetransfer](https://forum.ansible.com/t/developing-new-module-that-includes-filetransfer/32561)

<div class="topic-metadata">

**Author:** [@Alex\_Hoffner](https://forum.ansible.com/u/Alex_Hoffner)\
**Replies:** 2\
**Last updated:** [March 30, 2020, 9:02pm UTC](https://forum.ansible.com/t/developing-new-module-that-includes-filetransfer/32561 "2020-03-30T21:02:32Z")

</div>

Hi I am currently developing a module (actually for windows over ssh). The module requires a filetransfer from the controller. Of course I could just use win\_copy first, but I would like the module to be more self-cont…

---

## [Strategies for handling redundant role dependencies in multiple roles](https://forum.ansible.com/t/strategies-for-handling-redundant-role-dependencies-in-multiple-roles/32566)

<div class="topic-metadata">

**Author:** [@afeller](https://forum.ansible.com/u/afeller)\
**Replies:** 0\
**Last updated:** [March 30, 2020, 8:39pm UTC](https://forum.ansible.com/t/strategies-for-handling-redundant-role-dependencies-in-multiple-roles/32566 "2020-03-30T20:39:07Z")

</div>

I’m looking for insights and strategies for dealing with Ansible roles specifying potentially different versions of the same dependencies, which are being downloaded via ansible-galaxy install. There are a couple of pro…

---

## [Working with dynamic inventory-- inventory scripts link is broken](https://forum.ansible.com/t/working-with-dynamic-inventory-inventory-scripts-link-is-broken/32563)

<div class="topic-metadata">

**Author:** [@Sanjay\_Chakraborty](https://forum.ansible.com/u/Sanjay_Chakraborty)\
**Replies:** 4\
**Last updated:** [March 30, 2020, 5:57pm UTC](https://forum.ansible.com/t/working-with-dynamic-inventory-inventory-scripts-link-is-broken/32563 "2020-03-30T17:57:08Z")

</div>

Hi, I am trying to download ec2.py and ec2.ini for aws auto scaling from https://docs.ansible.com/ansible/latest/user\_guide/intro\_dynamic\_inventory.html . The link points to github page which shows 404 error. https://g…

---

## [Ansible - Unable to reach the host getting Errno 101  Network is unreachable](https://forum.ansible.com/t/ansible-unable-to-reach-the-host-getting-errno-101-network-is-unreachable/32470)

<div class="topic-metadata">

**Author:** [@Santhosh\_Ganesan](https://forum.ansible.com/u/Santhosh_Ganesan)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 5:46pm UTC](https://forum.ansible.com/t/ansible-unable-to-reach-the-host-getting-errno-101-network-is-unreachable/32470 "2020-03-30T17:46:09Z")

</div>

Newbie to ansible, trying to run a playbook to one of host, \</TASK \[Gathering Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[172.28.158.115\] TASK \[include\_role : tes.kibana\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible parser - python](https://forum.ansible.com/t/ansible-parser-python/32562)

<div class="topic-metadata">

**Author:** [@Nemania\_Borovits](https://forum.ansible.com/u/Nemania_Borovits)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 4:02pm UTC](https://forum.ansible.com/t/ansible-parser-python/32562 "2020-03-30T16:02:47Z")

</div>

Hello! I need to parse ansible files effectively. Is there any python library which i can use to parse .yml/.yaml files which contain ansible deployments…? Besides pyyaml or ruamel.yaml

---

## [How can we prevent 2 Ansible playbook to run on the same host at the same time?](https://forum.ansible.com/t/how-can-we-prevent-2-ansible-playbook-to-run-on-the-same-host-at-the-same-time/32557)

<div class="topic-metadata">

**Author:** [@tamar\_matelles](https://forum.ansible.com/u/tamar_matelles)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 3:09pm UTC](https://forum.ansible.com/t/how-can-we-prevent-2-ansible-playbook-to-run-on-the-same-host-at-the-same-time/32557 "2020-03-30T15:09:34Z")

</div>

?How can we prevent from 2 ansible running on the same host at the same time we are working with facts\_catch json file and sometimes have problem that 2 ansibles try write the same json fact\_caching = jsonfile fact\_ca…

---

## [Ansible ssh error](https://forum.ansible.com/t/ansible-ssh-error/32560)

<div class="topic-metadata">

**Author:** [@Bala\_Mutyam](https://forum.ansible.com/u/Bala_Mutyam)\
**Replies:** 2\
**Last updated:** [March 30, 2020, 10:57am UTC](https://forum.ansible.com/t/ansible-ssh-error/32560 "2020-03-30T10:57:35Z")

</div>

Hi Everyone, I trying to run this from Ansible on Ubuntu server and client is Redhat 7 but giving me attached error, please help. root@kotireddy4781c:/etc/ansible# ansible --version ansible 2.5.1 config file = /etc/a…

---

## [aws mount efs volume - ansible](https://forum.ansible.com/t/aws-mount-efs-volume-ansible/32559)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 10:22am UTC](https://forum.ansible.com/t/aws-mount-efs-volume-ansible/32559 "2020-03-30T10:22:14Z")

</div>

Hi I have some problem this msg “Error mounting /home/ec2-user/test\_efs: mount.nfs4: Failed to resolve server fs-a41235e5.efs.ap-southeast-1.amazonaws.com: Name or service not known\\n” } my ansible

---

## [ansible nfsclient error](https://forum.ansible.com/t/ansible-nfsclient-error/32558)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 6:55am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558 "2020-03-30T06:55:19Z")

</div>

Dear all: I can connect to this ip and share folder tasks: name: Ensure NFS Common is installed apt: name=nfs-common update\_cache=yes name: Create mountable dir file: path=/nfs state=directory mode=777 owner=sand…

---

## [Invoke-CommandInDesktopPackage ( Not able to execute Invoke-CommandInDesktopPackage  with Ansible (win\_shell) option](https://forum.ansible.com/t/invoke-commandindesktoppackage-not-able-to-execute-invoke-commandindesktoppackage-with-ansible-win-shell-option/32556)

<div class="topic-metadata">

**Author:** [@Raviteja\_Jinkala](https://forum.ansible.com/u/Raviteja_Jinkala)\
**Replies:** 2\
**Last updated:** [March 30, 2020, 6:31am UTC](https://forum.ansible.com/t/invoke-commandindesktoppackage-not-able-to-execute-invoke-commandindesktoppackage-with-ansible-win-shell-option/32556 "2020-03-30T06:31:12Z")

</div>

Hi Team, I am not able to execute Invoke-CommandInDesktopPackage with Ansible (win\_shell) , facing below error. please check and let me how to fix the issue. I am running with Full access User. Invoke-CommandInDesktop…

---

## [Error in rabbitmq container of awx pod when trying to install awx v9.2.0 on kubernetes cluster](https://forum.ansible.com/t/error-in-rabbitmq-container-of-awx-pod-when-trying-to-install-awx-v9-2-0-on-kubernetes-cluster/32551)

<div class="topic-metadata">

**Author:** [@SANCHIT\_KHANDELWAL](https://forum.ansible.com/u/SANCHIT_KHANDELWAL)\
**Replies:** 9\
**Last updated:** [March 30, 2020, 3:56am UTC](https://forum.ansible.com/t/error-in-rabbitmq-container-of-awx-pod-when-trying-to-install-awx-v9-2-0-on-kubernetes-cluster/32551 "2020-03-30T03:56:34Z")

</div>

Hi All, Hope you are doing well. I have tried installing awx 9.2.0 version on kubernetes on single node(ubuntu machine) and got success. Now when I are trying to install the same version on multi node(1-master 2=worke…

---

## [nfs client ansible](https://forum.ansible.com/t/nfs-client-ansible/32547)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 5\
**Last updated:** [March 30, 2020, 3:06am UTC](https://forum.ansible.com/t/nfs-client-ansible/32547 "2020-03-30T03:06:11Z")

</div>

dear all: fatal: \[192.168.1.120\]: FAILED! =\> { “changed”: false, “invocation”: { “module\_args”: { “dump”: “0”, “fstype”: “nfs”, “opts”: “defaults,nobootwait”, “passno”: “2”, “path”: “/nfs”, “sate”: “mounted”, …

---

## [How to execute Play 2 only if Play 1 succeeds](https://forum.ansible.com/t/how-to-execute-play-2-only-if-play-1-succeeds/32555)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [March 29, 2020, 2:38pm UTC](https://forum.ansible.com/t/how-to-execute-play-2-only-if-play-1-succeeds/32555 "2020-03-29T14:38:24Z")

</div>

I have two Plays having one task each. The first Play 1 checks if the/var/test.datexists on each target host. Only if the Play 1 is successful do I want the second play Play 2 to run which executes scripts in parallel. …

---

## [Specifying template src with a variable](https://forum.ansible.com/t/specifying-template-src-with-a-variable/32554)

<div class="topic-metadata">

**Author:** [@Geo\_P.C](https://forum.ansible.com/u/Geo_P.C)\
**Replies:** 6\
**Last updated:** [March 29, 2020, 10:43am UTC](https://forum.ansible.com/t/specifying-template-src-with-a-variable/32554 "2020-03-29T10:43:10Z")

</div>

In ansible we are trying to access different templates based on variable. We have following template files like: templates app1.conf.j2 app2.conf.j2 app3.conf.j2 taks app.yml In tasks we need to copy template fil…

---

## [Windows Host Unreachable](https://forum.ansible.com/t/windows-host-unreachable/32548)

<div class="topic-metadata">

**Author:** [@Marco\_Passarinho](https://forum.ansible.com/u/Marco_Passarinho)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 12:33am UTC](https://forum.ansible.com/t/windows-host-unreachable/32548 "2020-03-29T00:33:17Z")

</div>

Hello, I’m getting the following error when trying to win\_ping my windows host: Command: ansible VMs -m win\_ping Response: xx.xx.xx.xxx | UNREACHABLE! =\> { “changed”: false, “msg”: “basic: HTTPSConnectionPool(host…

---

## [Error Handling  of Failed Task](https://forum.ansible.com/t/error-handling-of-failed-task/32553)

<div class="topic-metadata">

**Author:** [@Mahmut](https://forum.ansible.com/u/Mahmut)\
**Replies:** 0\
**Last updated:** [March 28, 2020, 8:46pm UTC](https://forum.ansible.com/t/error-handling-of-failed-task/32553 "2020-03-28T20:46:18Z")

</div>

Hello Dear All, I am using a playbook that gives below output intentionally. Is there any possible way that I can write this FAILED statement to a file in order to be used by another script? thanks, PLAY \[CHECK USERS …

---

## [create a new crontab using cron module for ansible](https://forum.ansible.com/t/create-a-new-crontab-using-cron-module-for-ansible/32552)

<div class="topic-metadata">

**Author:** [@Shubham\_Gampawar](https://forum.ansible.com/u/Shubham_Gampawar)\
**Replies:** 0\
**Last updated:** [March 28, 2020, 2:54pm UTC](https://forum.ansible.com/t/create-a-new-crontab-using-cron-module-for-ansible/32552 "2020-03-28T14:54:26Z")

</div>

Hi there, What’s the transport you are using?, Can you share the complete log(along with command for execution) and playbook you are running. You can give a try by running playbook in mode Thanks,

---

## [how to comment multiple lines in ansible playbook](https://forum.ansible.com/t/how-to-comment-multiple-lines-in-ansible-playbook/23510)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 6\
**Last updated:** [March 28, 2020, 2:15pm UTC](https://forum.ansible.com/t/how-to-comment-multiple-lines-in-ansible-playbook/23510 "2020-03-28T14:15:07Z")

</div>

how to comment multiple lines in ansible playbook for line i just use # but to comment multiple line ? Thank you -Jay

---

## [Downloading files with a specific regular expression from remote https host to target server local path.](https://forum.ansible.com/t/downloading-files-with-a-specific-regular-expression-from-remote-https-host-to-target-server-local-path/32543)

<div class="topic-metadata">

**Author:** [@user106](https://forum.ansible.com/u/user106)\
**Replies:** 6\
**Last updated:** [March 27, 2020, 8:15pm UTC](https://forum.ansible.com/t/downloading-files-with-a-specific-regular-expression-from-remote-https-host-to-target-server-local-path/32543 "2020-03-27T20:15:44Z")

</div>

Having some difficulty finding what is the Ansible code to do this: Downloading files with a specific regular expression from remote http / https host to a target server local path. So would like to wget http://remote.…

---

## [save stdout to file on localhost.](https://forum.ansible.com/t/save-stdout-to-file-on-localhost/32550)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 6:00pm UTC](https://forum.ansible.com/t/save-stdout-to-file-on-localhost/32550 "2020-03-27T18:00:20Z")

</div>

i want to query all the users on the hosts of my inventory and create afile for each hosts with all the privileges for each user I know that htere tools like freeipa but we do not have those in place so i am using the …

---

## [expect and "Press \<Enter\> to continue."](https://forum.ansible.com/t/expect-and-press-enter-to-continue/32517)

<div class="topic-metadata">

**Author:** [@Jost](https://forum.ansible.com/u/Jost)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 10:28am UTC](https://forum.ansible.com/t/expect-and-press-enter-to-continue/32517 "2020-03-27T10:28:13Z")

</div>

Hi how can I use expect module to responds to “Press to continue.” during installation of software on linux? The questins during installations are: Press to continue. → then show licence you have to go to the last l…

---

## [Purpose of Migrate database task (Version 9.1.0 and 9.2.0)](https://forum.ansible.com/t/purpose-of-migrate-database-task-version-9-1-0-and-9-2-0/32546)

<div class="topic-metadata">

**Author:** [@Ajitkumar\_Tanwade](https://forum.ansible.com/u/Ajitkumar_Tanwade)\
**Replies:** 0\
**Last updated:** [March 27, 2020, 4:14am UTC](https://forum.ansible.com/t/purpose-of-migrate-database-task-version-9-1-0-and-9-2-0/32546 "2020-03-27T04:14:45Z")

</div>

Hi All, Hope you are doing well When we are trying to install AWX on K8S, it is either hang at the task: Migrate Database or give below error. We are creating a new PV. Error: django.db.utils.OperationalError: could …

---

## [Create AWS EFS](https://forum.ansible.com/t/create-aws-efs/32527)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 7\
**Last updated:** [March 27, 2020, 3:59am UTC](https://forum.ansible.com/t/create-aws-efs/32527 "2020-03-27T03:59:31Z")

</div>

Dear All: I have create efs ansible , I have install boto3 this is show error msg this is my ansible

---

## [How to extract a value of a field within a list of dictionaries  when a key matches another value](https://forum.ansible.com/t/how-to-extract-a-value-of-a-field-within-a-list-of-dictionaries-when-a-key-matches-another-value/32545)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 11:18pm UTC](https://forum.ansible.com/t/how-to-extract-a-value-of-a-field-within-a-list-of-dictionaries-when-a-key-matches-another-value/32545 "2020-03-26T23:18:49Z")

</div>

The playbook below - name: test with json\_query 1/2 hosts: localhost vars: domain\_definition: - name: server11 cluster: cluster1 port: '8080' - name: server12 cluster:…

---

## [Can't delete AWX Inventory](https://forum.ansible.com/t/cant-delete-awx-inventory/32533)

<div class="topic-metadata">

**Author:** [@jzhang2006](https://forum.ansible.com/u/jzhang2006)\
**Replies:** 1\
**Last updated:** [March 26, 2020, 11:01pm UTC](https://forum.ansible.com/t/cant-delete-awx-inventory/32533 "2020-03-26T23:01:01Z")

</div>

Just installed new AWX (AWX 9.3.0, Ansible 2.9.5) and use it from Chrome. Can’t delete Inventory. The radio button seems can’t be selected but when click it, the deletion seems executing on that inventory. It shows ‘work…

---

## [cannot run playbooks inside awx](https://forum.ansible.com/t/cannot-run-playbooks-inside-awx/32521)

<div class="topic-metadata">

**Author:** [@Dieye\_Pape\_Doudou](https://forum.ansible.com/u/Dieye_Pape_Doudou)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 9:55pm UTC](https://forum.ansible.com/t/cannot-run-playbooks-inside-awx/32521 "2020-03-26T21:55:53Z")

</div>

Hello i’m a new user of AWX i can run a simple playbooks inside my VM ( Centos 7) but not inside AWX i have the following error : ansible-playbook 2.9.3 2 config file = /etc/ansible/ansible.cfg 3 configured module…

---

## [Connection timed out\\n\\tIs the server running on host \\"awx-postgresql](https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544)

<div class="topic-metadata">

**Author:** [@SANCHIT\_KHANDELWAL](https://forum.ansible.com/u/SANCHIT_KHANDELWAL)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 6:32pm UTC](https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544 "2020-03-26T18:32:27Z")

</div>

While installing AWX version 9.1.0 on kubernetes, I encountered the below while running the installer Stucks at task : Migrate database Error : fatal: \[localhost\]: FAILED! =\> {“changed”: true, “cmd”: “kubectl -n awx …

---

## [Integer comparison if condition jinja2 template Ansible does not work](https://forum.ansible.com/t/integer-comparison-if-condition-jinja2-template-ansible-does-not-work/32542)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 6:21pm UTC](https://forum.ansible.com/t/integer-comparison-if-condition-jinja2-template-ansible-does-not-work/32542 "2020-03-26T18:21:17Z")

</div>

My jinja2 template yields correct value for the variable {{ vars\[\[allip.name\](http://allip.name/) | join("")\] | default('ERR') }} The variable has value 82.3 which gets printed by Ansible’s template module. I wish to …

---

## [Using an Ansible Vault Key with Newlines](https://forum.ansible.com/t/using-an-ansible-vault-key-with-newlines/32541)

<div class="topic-metadata">

**Author:** [@Susan\_Tang](https://forum.ansible.com/u/Susan_Tang)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 4:59pm UTC](https://forum.ansible.com/t/using-an-ansible-vault-key-with-newlines/32541 "2020-03-26T16:59:13Z")

</div>

Hi all, In our manual Ansible runs, we’re currently using a Vault key file with newlines in it and specifying it as “\<vault\_id\>@file\_path/file\_name”, this all works smoothly. However, when adding credentials to the Vau…

---

## [Setting the restart priority in the vm level](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540)

<div class="topic-metadata">

**Author:** [@Shanmathi\_Manisekara](https://forum.ansible.com/u/Shanmathi_Manisekara)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 2:58pm UTC](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540 "2020-03-26T14:58:49Z")

</div>

Hi all, I wanted to set the restart priority in the vm level. Currently vmware\_cluster\_ha module can set the restart priority in a cluster level. But I did some search and found that there is no module to do this in vm …

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

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