# Ansible Project

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

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

**Page:** 135

---

## [Ansible URI and GET\_URL does not work for downloading](https://forum.ansible.com/t/ansible-uri-and-get-url-does-not-work-for-downloading/32591)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 11:57am UTC](https://forum.ansible.com/t/ansible-uri-and-get-url-does-not-work-for-downloading/32591 "2020-04-03T11:57:16Z")

</div>

Hello, I need to use Ansible URI and GET\_URL to download a piece of software called amanda backup server. I’m getting trouble with downloading. This is my playbook: name: Create cookie for later request uri: url: “h…

---

## [How to split received multi valued variables from snow and run on a single template](https://forum.ansible.com/t/how-to-split-received-multi-valued-variables-from-snow-and-run-on-a-single-template/32597)

<div class="topic-metadata">

**Author:** [@Diyawary](https://forum.ansible.com/u/Diyawary)\
**Replies:** 0\
**Last updated:** [April 3, 2020, 11:22am UTC](https://forum.ansible.com/t/how-to-split-received-multi-valued-variables-from-snow-and-run-on-a-single-template/32597 "2020-04-03T11:22:39Z")

</div>

Hi Team, currently in my playbook I am using single valued variables hostname and domain,now I am getting variables mserver\_hostname and domain as multiple values from snow. like mserver\_hostname: 1.1.1.1, 2.2.2.2 doa…

---

## [handle backslash in ansible](https://forum.ansible.com/t/handle-backslash-in-ansible/32593)

<div class="topic-metadata">

**Author:** [@Himanshu\_Pupneja](https://forum.ansible.com/u/Himanshu_Pupneja)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 9:14am UTC](https://forum.ansible.com/t/handle-backslash-in-ansible/32593 "2020-04-03T09:14:45Z")

</div>

I have a variable which has value: “domain\\user”. I am trying to split to get the user name I have tried the below code which works well but can’t handle escape sequence like \\n \\r etc. for example “domain\\naman” Could…

---

## [Invoking a 3rd party Web service Listener on creation of entry in Ansible Tower Schedule Table](https://forum.ansible.com/t/invoking-a-3rd-party-web-service-listener-on-creation-of-entry-in-ansible-tower-schedule-table/32586)

<div class="topic-metadata">

**Author:** [@Swaminath\_Ganta](https://forum.ansible.com/u/Swaminath_Ganta)\
**Replies:** 1\
**Last updated:** [April 2, 2020, 9:57pm UTC](https://forum.ansible.com/t/invoking-a-3rd-party-web-service-listener-on-creation-of-entry-in-ansible-tower-schedule-table/32586 "2020-04-02T21:57:16Z")

</div>

Hi All, I would like to know ,how can we invoke an 3rd party Web Service Listener on creation of an record/entry in Schedule Table of Ansible Tower. Please let know your thoughts . Thanks in advance Regards Swaminat…

---

## [OpenSSH-Win64 support?](https://forum.ansible.com/t/openssh-win64-support/32589)

<div class="topic-metadata">

**Author:** [@NoobSkywalker](https://forum.ansible.com/u/NoobSkywalker)\
**Replies:** 3\
**Last updated:** [April 2, 2020, 8:06pm UTC](https://forum.ansible.com/t/openssh-win64-support/32589 "2020-04-02T20:06:52Z")

</div>

We have a handful of Windows 2019 nodes running OpenSSH-Win64 … I’ve been unable to get Ansible ( 2.9.5 ) to be able to connect to these Windows nodes, despite the fact that I’m able to ssh from the Ansible control node …

---

## [Optimize Powershell in playbook](https://forum.ansible.com/t/optimize-powershell-in-playbook/32584)

<div class="topic-metadata">

**Author:** [@Barry\_Obie](https://forum.ansible.com/u/Barry_Obie)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 3:35pm UTC](https://forum.ansible.com/t/optimize-powershell-in-playbook/32584 "2020-04-02T15:35:47Z")

</div>

Hello, I’m trying to get a playbook working that will run the Optimize Powershell script that is here: https://docs.ansible.com/ansible/latest/user\_guide/windows\_performance.html The playbook succeeds, but when I check…

---

## [problem with shell module and actual command passed](https://forum.ansible.com/t/problem-with-shell-module-and-actual-command-passed/32585)

<div class="topic-metadata">

**Author:** [@lolO\_lolO](https://forum.ansible.com/u/lolO_lolO)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 12:05pm UTC](https://forum.ansible.com/t/problem-with-shell-module-and-actual-command-passed/32585 "2020-04-02T12:05:26Z")

</div>

Hello all ! it’s been a while i have troubles with the shell module: as a command is correctly executed in console (even launched as the user awx) git push git@savetogit.skylab.local:savetogit/devbackupdesconfigs.git …

---

## [Location of aws\_ssm module](https://forum.ansible.com/t/location-of-aws-ssm-module/32582)

<div class="topic-metadata">

**Author:** [@Gurtaj\_Atwell](https://forum.ansible.com/u/Gurtaj_Atwell)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 10:56pm UTC](https://forum.ansible.com/t/location-of-aws-ssm-module/32582 "2020-04-01T22:56:26Z")

</div>

Hi, Where is the location of the aws\_ssm module? It used to be lib/ansible/plugins/lookup/aws\_ssm.py on the ansible repo: https://github.com/ansible/ansible I can see with a git log that is was migrated to ansible.ama…

---

## [ansible cmdb? Whats the recommended way to store facts for later retrieval?](https://forum.ansible.com/t/ansible-cmdb-whats-the-recommended-way-to-store-facts-for-later-retrieval/32580)

<div class="topic-metadata">

**Author:** [@Dennis\_McCarthy1](https://forum.ansible.com/u/Dennis_McCarthy1)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 8:12pm UTC](https://forum.ansible.com/t/ansible-cmdb-whats-the-recommended-way-to-store-facts-for-later-retrieval/32580 "2020-04-01T20:12:39Z")

</div>

Hi, I’m trying to set up a MySQL DB to hold all the ansible facts I produce from “ansible -m setup” (on lots of remote hosts), Store each .json file of each server in a directory but I’m having trouble finding a place t…

---

## [Any support for Windows EFS or Bitlocker?](https://forum.ansible.com/t/any-support-for-windows-efs-or-bitlocker/32569)

<div class="topic-metadata">

**Author:** [@Michael\_Moody](https://forum.ansible.com/u/Michael_Moody)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 5:34pm UTC](https://forum.ansible.com/t/any-support-for-windows-efs-or-bitlocker/32569 "2020-04-01T17:34:23Z")

</div>

Good morning, As a long time Ansible user (I believe I started using it in 2014 or so), I tend to solve most automation and administrative challenges with it where appropriate, so allow me to say that you for such an ex…

---

## [.format() in Jinja2 filter](https://forum.ansible.com/t/format-in-jinja2-filter/32579)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 10:30am UTC](https://forum.ansible.com/t/format-in-jinja2-filter/32579 "2020-04-01T10:30:05Z")

</div>

HI! I'd like to reformat a list of IPv4 addresses with a Python formatting string. '12.34.56.78' should be transformed into 'peername.ip=12.34.56.78%255.255.255.255'. In Python I'd just use 'peername.ip={0}%255.255…

---

## [aws efs mount connection time out](https://forum.ansible.com/t/aws-efs-mount-connection-time-out/32578)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 7:13am UTC](https://forum.ansible.com/t/aws-efs-mount-connection-time-out/32578 "2020-04-01T07:13:19Z")

</div>

Hi i try inbound rule add nfs port 2049 to scertiy group id but still show error connection time out no idea how to solved name: mount efs volume mount: path: “/home/ec2-user/{{ efs\_vol\_name }}” src: “{{ efs\_fac…

---

## [Ignore imported playbooks completely when defined](https://forum.ansible.com/t/ignore-imported-playbooks-completely-when-defined/32574)

<div class="topic-metadata">

**Author:** [@Ronen\_Levinson](https://forum.ansible.com/u/Ronen_Levinson)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 6:35am UTC](https://forum.ansible.com/t/ignore-imported-playbooks-completely-when-defined/32574 "2020-04-01T06:35:48Z")

</div>

Hi, I’m using ansible version 2.7.17 and combining multiple playbooks in one file. One of my playbooks I’m running conditionally with when and a condition. My problem is when my condition is false, I want ansible to c…

---

## [win\_xml module 'cannot call a method on a null-valued expression'](https://forum.ansible.com/t/win-xml-module-cannot-call-a-method-on-a-null-valued-expression/32576)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 4\
**Last updated:** [April 1, 2020, 6:13am UTC](https://forum.ansible.com/t/win-xml-module-cannot-call-a-method-on-a-null-valued-expression/32576 "2020-04-01T06:13:33Z")

</div>

I have an JBoss domain.xml file im trying to manipulate with win\_xml: \` … \` When I try to modify the heap size attribute above using win\_xml with this play: name: Test modifying XML win\_x…

---

## [Ansible Reboot Error...](https://forum.ansible.com/t/ansible-reboot-error/32575)

<div class="topic-metadata">

**Author:** [@kmarty009](https://forum.ansible.com/u/kmarty009)\
**Replies:** 4\
**Last updated:** [April 1, 2020, 12:23am UTC](https://forum.ansible.com/t/ansible-reboot-error/32575 "2020-04-01T00:23:16Z")

</div>

I get this error when executing my playbook. I need to reboot the machine but cannot get around this insane error that is preventing me from doing so.. the plybook works until I add the last line for reboot. Can anyone t…

---

## [ansible windows inventory get hostname/user/password ad-hoc from external script](https://forum.ansible.com/t/ansible-windows-inventory-get-hostname-user-password-ad-hoc-from-external-script/32489)

<div class="topic-metadata">

**Author:** [@Gregory\_Storme](https://forum.ansible.com/u/Gregory_Storme)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 1:53pm UTC](https://forum.ansible.com/t/ansible-windows-inventory-get-hostname-user-password-ad-hoc-from-external-script/32489 "2020-03-31T13:53:13Z")

</div>

Hi, We have a couple of hundred Windows hosts, with each host having different credentials (both login and password), which are stored in an on-premise, in-house developed “vault” system. A dream scenario would be to i…

---

## [Ansible with Windows Shared Folder](https://forum.ansible.com/t/ansible-with-windows-shared-folder/32572)

<div class="topic-metadata">

**Author:** [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Replies:** 1\
**Last updated:** [March 31, 2020, 10:44am UTC](https://forum.ansible.com/t/ansible-with-windows-shared-folder/32572 "2020-03-31T10:44:30Z")

</div>

Hi, I’m trying to roll out Microsoft DSC Using the following Playbook to install the application \`

---

## [AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible\_fqdn'](https://forum.ansible.com/t/ansibleundefinedvariable-ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-ansible-fqdn/32567)

<div class="topic-metadata">

**Author:** [@Rajesh](https://forum.ansible.com/u/Rajesh)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 9:15am UTC](https://forum.ansible.com/t/ansibleundefinedvariable-ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-ansible-fqdn/32567 "2020-03-31T09:15:56Z")

</div>

Hi all, Below is my playbook. name: Create server list hosts: all become: true become\_user: root gather\_facts: yes tasks: name: Copy the template template: src: templates/server\_list.j2 dest: /etc/server\_list.…

---

## [set\_fact moudle error ansible](https://forum.ansible.com/t/set-fact-moudle-error-ansible/32568)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 8:16am UTC](https://forum.ansible.com/t/set-fact-moudle-error-ansible/32568 "2020-03-31T08:16:18Z")

</div>

Hi error msg fatal: \[localhost\]: FAILED! =\> { “msg”: “The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute ‘ansible\_facts’\\n\\nThe error appears to be in ‘/home/ldap/cre…

---

## [Ansible and Terraform use cases.](https://forum.ansible.com/t/ansible-and-terraform-use-cases/32565)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://forum.ansible.com/u/Kaushal_Shriyan)\
**Replies:** 1\
**Last updated:** [March 31, 2020, 8:06am UTC](https://forum.ansible.com/t/ansible-and-terraform-use-cases/32565 "2020-03-31T08:06:43Z")

</div>

Hi, I have read about Ansible suited best for configuration management and Terraform which is best suited for Provisioning. Is there a way to invoke terraform scripts using ansible and Is there a way to invoke Ansible p…

---

## [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…

---

## [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…

---

## [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…

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

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