# Archives

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

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

**Page:** 223

---

## [remote\_src and template\_host for template module not working for me](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32330)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 9:12am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32330 "2020-02-26T09:12:13Z")

</div>

Fix the truthy. See https://docs.ansible.com/ansible/latest/modules/fetch\_module.html#parameters flat: true HTH, -vlado

---

## [remote\_src and template\_host for template module not working for me](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32329)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 8:50am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32329 "2020-02-26T08:50:26Z")

</div>

Hi , 1. I have multiple json as well as j2 files , Need to generate multiple config files by using template module. 2. In fetch module . fetch the files with including host name in path . How we can avoid this hostna…

---

## [Unable to load variable from include\_vars into my playbook](https://forum.ansible.com/t/unable-to-load-variable-from-include-vars-into-my-playbook/32319)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 7:53am UTC](https://forum.ansible.com/t/unable-to-load-variable-from-include-vars-into-my-playbook/32319 "2020-02-26T07:53:40Z")

</div>

I have a playbook where I load a variable file \` cat vars/BASE.yaml EXCLUDE\_front: value1 EXCLUDE\_back: value2 \` I run my test.yml playbook using this command: \` ansible-playbook test.yml -e Layer=“back” -e base\_…

---

## [How to escape single quotes within single quotes in Ansible](https://forum.ansible.com/t/how-to-escape-single-quotes-within-single-quotes-in-ansible/32328)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 7:24am UTC](https://forum.ansible.com/t/how-to-escape-single-quotes-within-single-quotes-in-ansible/32328 "2020-02-26T07:24:24Z")

</div>

Below is my playbook: \` set\_fact: excludefolders: “{{ excludefolders + ’ -o -name ’ + item | default(‘’) }}” with\_items: “{{ lookup(‘vars’, ‘EXCLUDE\_’ + Layer).split(‘,’) }}” debug: msg: “excludedfolder is {{ e…

---

## [How to run plays on all hosts in a group using localhost](https://forum.ansible.com/t/how-to-run-plays-on-all-hosts-in-a-group-using-localhost/32215)

<div class="topic-metadata">

**Author:** [@shane.do](https://forum.ansible.com/u/shane.do)\
**Replies:** 1\
**Last updated:** [February 26, 2020, 12:34am UTC](https://forum.ansible.com/t/how-to-run-plays-on-all-hosts-in-a-group-using-localhost/32215 "2020-02-26T00:34:48Z")

</div>

I’m trying to create a playbook that creates EC2 snapshots of some AWS Windows servers. I’m having a lot of trouble understanding how to get the correct directives in place to make sure things are running as they can. Wh…

---

## [Cannot create some accounts associated to a host inside an external inventory file](https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326)

<div class="topic-metadata">

**Author:** [@Stefano\_Leandro](https://forum.ansible.com/u/Stefano_Leandro)\
**Replies:** 0\
**Last updated:** [February 25, 2020, 10:23pm UTC](https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326 "2020-02-25T22:23:39Z")

</div>

Hi , Pratically im implementing this use case : Passing a inventory file containing host and vars associated ,i would create a play that iterate for each linux acciunt to create per host this is my inventory file form…

---

## [Insifficient support for LVM in Ansible (2.9+)](https://forum.ansible.com/t/insifficient-support-for-lvm-in-ansible-2-9/32321)

<div class="topic-metadata">

**Author:** [@Rene\_van\_der\_Linden](https://forum.ansible.com/u/Rene_van_der_Linden)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 10:04pm UTC](https://forum.ansible.com/t/insifficient-support-for-lvm-in-ansible-2-9/32321 "2020-02-25T22:04:28Z")

</div>

The LVM related modules filesystem and lvol https://docs.ansible.com/ansible/latest/modules/filesystem\_module.html https://docs.ansible.com/ansible/latest/modules/lvol\_module.html are unable to manage xfs and swap fil…

---

## [How to translate a complex sed expressions into regex\_replace](https://forum.ansible.com/t/how-to-translate-a-complex-sed-expressions-into-regex-replace/32324)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 3\
**Last updated:** [February 25, 2020, 3:36pm UTC](https://forum.ansible.com/t/how-to-translate-a-complex-sed-expressions-into-regex-replace/32324 "2020-02-25T15:36:49Z")

</div>

ansible 2.9.5 (pip3) The following sed command: function is to replace all ‘\_’ by ‘-’ in all keys only (and not values) within a list of dictionaries in memory uses character classes which are probably not supported b…

---

## [ansible and yaml syntax - There appears to be both 'k=v' shorthand syntax and YAML in this task. Only one syntax may be used.](https://forum.ansible.com/t/ansible-and-yaml-syntax-there-appears-to-be-both-k-v-shorthand-syntax-and-yaml-in-this-task-only-one-syntax-may-be-used/32323)

<div class="topic-metadata">

**Author:** [@Nicolas\_W](https://forum.ansible.com/u/Nicolas_W)\
**Replies:** 3\
**Last updated:** [February 25, 2020, 3:15pm UTC](https://forum.ansible.com/t/ansible-and-yaml-syntax-there-appears-to-be-both-k-v-shorthand-syntax-and-yaml-in-this-task-only-one-syntax-may-be-used/32323 "2020-02-25T15:15:15Z")

</div>

Hello, any clues what is a workaround for the syntax issue below? This variable is defined in a group among other variables. My playbook won’t run because of this error. I may have to escape the =… I m hoping to keep th…

---

## [how to return additional variables as a part of job status get request](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 3\
**Last updated:** [February 25, 2020, 3:07pm UTC](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316 "2020-02-25T15:07:02Z")

</div>

Hi, I am using ansible AWX for issuing REST calls for calling playbook. Playbook connects to downstream servers and provisions storage using underlying storage API’s and registers o/p of rest call. My requirement is to …

---

## [remote\_src and template\_host for template module not working for me](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32322)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 1\
**Last updated:** [February 25, 2020, 2:53pm UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32322 "2020-02-25T14:53:06Z")

</div>

Thank u Jordan and Dick , Can you please help to know , how can we fetch folder from remote to controller as fetch module not supported folders rather than files. i can able to fetch multiple files but not able t…

---

## [My playbook hangs during a task.](https://forum.ansible.com/t/my-playbook-hangs-during-a-task/32289)

<div class="topic-metadata">

**Author:** [@Keith\_Koene](https://forum.ansible.com/u/Keith_Koene)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 8:44am UTC](https://forum.ansible.com/t/my-playbook-hangs-during-a-task/32289 "2020-02-25T08:44:30Z")

</div>

I have written a playbook that checks for accessible hosts, then copies a script to those hosts, runs the script, copies output to file and then looks for that file and copies it back to the local machine. I ran this pla…

---

## [\[ Ansible \] - Weird nested loop help](https://forum.ansible.com/t/ansible-weird-nested-loop-help/32314)

<div class="topic-metadata">

**Author:** [@Joao\_Santos](https://forum.ansible.com/u/Joao_Santos)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 10:57pm UTC](https://forum.ansible.com/t/ansible-weird-nested-loop-help/32314 "2020-02-24T22:57:27Z")

</div>

Hey community, need your help again… On my goal of automation I’m blocked on loops… dont know if I’m doing wrong, need to change approach or if just stupid… Well, lets try… I would like to replace lines in FILES\_A wit…

---

## [Templating error with Ansible 2.9 or higher](https://forum.ansible.com/t/templating-error-with-ansible-2-9-or-higher/32273)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [February 24, 2020, 6:59pm UTC](https://forum.ansible.com/t/templating-error-with-ansible-2-9-or-higher/32273 "2020-02-24T18:59:56Z")

</div>

I’m using the Satellite6 Content Views role found here: https://galaxy.ansible.com/ahuffman/satellite6\_manage\_content\_views. It works on Ansible up to 2.8.6, but any version after that gives the following error: TASK \[s…

---

## [Trying to understand "unable to find api field in struct Container for the json field \\"$setElementOrder/env\\""](https://forum.ansible.com/t/trying-to-understand-unable-to-find-api-field-in-struct-container-for-the-json-field-setelementorder-env/32318)

<div class="topic-metadata">

**Author:** [@David\_Karr](https://forum.ansible.com/u/David_Karr)\
**Replies:** 1\
**Last updated:** [February 24, 2020, 6:07pm UTC](https://forum.ansible.com/t/trying-to-understand-unable-to-find-api-field-in-struct-container-for-the-json-field-setelementorder-env/32318 "2020-02-24T18:07:26Z")

</div>

I’m working on a project that uses Ansible for template processing (probably overkill). We recently implemented Helm to produce some of our k8s objects, but that may be irrelevant to the current problem. In the build pro…

---

## [Create Key value pair](https://forum.ansible.com/t/create-key-value-pair/32315)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 8\
**Last updated:** [February 24, 2020, 4:40pm UTC](https://forum.ansible.com/t/create-key-value-pair/32315 "2020-02-24T16:40:16Z")

</div>

I have list of items to be executed in the command and I have to save the result in stdout for each item to the same item. Ex: hosts: dev tasks: - name: get variable shell: cat file #this file contain the li…

---

## [Issue with openssl\_csr authority\_cert\_issuer](https://forum.ansible.com/t/issue-with-openssl-csr-authority-cert-issuer/32300)

<div class="topic-metadata">

**Author:** [@Joshua\_Goldman](https://forum.ansible.com/u/Joshua_Goldman)\
**Replies:** 2\
**Last updated:** [February 24, 2020, 4:22pm UTC](https://forum.ansible.com/t/issue-with-openssl-csr-authority-cert-issuer/32300 "2020-02-24T16:22:54Z")

</div>

Hello, I am trying to specify O and CN authority\_cert\_issuer: ‘dirName:O = Example Net, CN = example.net’ authority\_key\_identifier: xxxxxxxx authority\_cert\_serial\_number: xxxxxxxxx I get the following error on playb…

---

## [ansible k8s module to support syntax for creating configmap --from-file](https://forum.ansible.com/t/ansible-k8s-module-to-support-syntax-for-creating-configmap-from-file/32317)

<div class="topic-metadata">

**Author:** [@sri\_sadineni](https://forum.ansible.com/u/sri_sadineni)\
**Replies:** 0\
**Last updated:** [February 24, 2020, 4:17pm UTC](https://forum.ansible.com/t/ansible-k8s-module-to-support-syntax-for-creating-configmap-from-file/32317 "2020-02-24T16:17:41Z")

</div>

Hi Team, I have looking forward to create config maps by using --from-file syntax. I’m on version 2.7.2 and I couldn’t find any syntax that support this. This is the command I’ve been trying to automate. kubectl creat…

---

## [How to integrate AWX to Windows Active directory.](https://forum.ansible.com/t/how-to-integrate-awx-to-windows-active-directory/32263)

<div class="topic-metadata">

**Author:** [@Anburaj\_Palraj](https://forum.ansible.com/u/Anburaj_Palraj)\
**Replies:** 4\
**Last updated:** [February 24, 2020, 1:07pm UTC](https://forum.ansible.com/t/how-to-integrate-awx-to-windows-active-directory/32263 "2020-02-24T13:07:56Z")

</div>

Hi team, I would like to integrate AWX to Windows Active directory. So kindly share if there is any good documentation to refer to.

---

## [How to pass Node\_Resource\_Group while creating AKS cluster via ansible azure\_rm\_aks module](https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179)

<div class="topic-metadata">

**Author:** [@Prakash\_Sharma](https://forum.ansible.com/u/Prakash_Sharma)\
**Replies:** 2\
**Last updated:** [February 24, 2020, 7:36am UTC](https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179 "2020-02-24T07:36:27Z")

</div>

Hello , I am having a difficult time to understand how one can pass node resource group while creating AKS cluster with ansible modules . As I know , in azure cli , one has to add aks-preview addon , and in terraform t…

---

## [Need provisioning in gcp\_container\_cluster module to specify GKE cluster version](https://forum.ansible.com/t/need-provisioning-in-gcp-container-cluster-module-to-specify-gke-cluster-version/32312)

<div class="topic-metadata">

**Author:** [@Rahul\_Monde](https://forum.ansible.com/u/Rahul_Monde)\
**Replies:** 0\
**Last updated:** [February 24, 2020, 5:20am UTC](https://forum.ansible.com/t/need-provisioning-in-gcp-container-cluster-module-to-specify-gke-cluster-version/32312 "2020-02-24T05:20:20Z")

</div>

Hello, Background: We have ansible tower where all the playbooks resides. End user makes call to such playbook to create required resource. Problem statement: I am using gcp\_container\_cluster module to launch GKE clust…

---

## [Connecting to a WinRM host with different credentials?](https://forum.ansible.com/t/connecting-to-a-winrm-host-with-different-credentials/32305)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 4:07am UTC](https://forum.ansible.com/t/connecting-to-a-winrm-host-with-different-credentials/32305 "2020-02-24T04:07:44Z")

</div>

I have a playbook in which I want to create a random password and use it later to connect to a windows box over WinRM I’ve generated a random password like this: name: Generate a temporary random password for new host …

---

## [Building a VM using Ansible Tower](https://forum.ansible.com/t/building-a-vm-using-ansible-tower/32301)

<div class="topic-metadata">

**Author:** [@Sindhu\_Rao](https://forum.ansible.com/u/Sindhu_Rao)\
**Replies:** 1\
**Last updated:** [February 23, 2020, 8:20pm UTC](https://forum.ansible.com/t/building-a-vm-using-ansible-tower/32301 "2020-02-23T20:20:13Z")

</div>

I’m building a VM on Vcenter with a playbook that runs fine and creates a VM when executed from the Ansible server but fails to create a VM when the same playbook is executed from ANsible Tower. I do not see any syntax …

---

## [win\_shell module with multiple lines not working](https://forum.ansible.com/t/win-shell-module-with-multiple-lines-not-working/32308)

<div class="topic-metadata">

**Author:** [@Yehuda\_Pinhas](https://forum.ansible.com/u/Yehuda_Pinhas)\
**Replies:** 2\
**Last updated:** [February 23, 2020, 6:57pm UTC](https://forum.ansible.com/t/win-shell-module-with-multiple-lines-not-working/32308 "2020-02-23T18:57:56Z")

</div>

Hi guys. This is my code:

---

## [wait\_for ping?](https://forum.ansible.com/t/wait-for-ping/32307)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 3\
**Last updated:** [February 23, 2020, 6:54pm UTC](https://forum.ansible.com/t/wait-for-ping/32307 "2020-02-23T18:54:19Z")

</div>

Hi, need to wait until a host is up and running. This host does not (yet) offer ssh, so I need a simple ping. The module wait\_for only offers port tests, as far as I can see. Any ideas? Michael Schwartzkopff

---

## [ansible-playbook for getting orion managed nodes](https://forum.ansible.com/t/ansible-playbook-for-getting-orion-managed-nodes/32310)

<div class="topic-metadata">

**Author:** [@Yehuda\_Pinhas](https://forum.ansible.com/u/Yehuda_Pinhas)\
**Replies:** 0\
**Last updated:** [February 23, 2020, 2:22pm UTC](https://forum.ansible.com/t/ansible-playbook-for-getting-orion-managed-nodes/32310 "2020-02-23T14:22:43Z")

</div>

Hi! Can anyone help me build this playbook? how can i fetch this information from my orion windows-based server?

---

## [Callback plugins works with ansible command?](https://forum.ansible.com/t/callback-plugins-works-with-ansible-command/32306)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 1\
**Last updated:** [February 23, 2020, 8:23am UTC](https://forum.ansible.com/t/callback-plugins-works-with-ansible-command/32306 "2020-02-23T08:23:06Z")

</div>

Hi Guys, We have been using customized callback plugin with playbooks ansile-playbooks command. I’ve been trying callback plugin to improve the output on screen with ansible command, however it is not working. Does cal…

---

## [shell module failing for grep](https://forum.ansible.com/t/shell-module-failing-for-grep/32298)

<div class="topic-metadata">

**Author:** [@mzagrabe](https://forum.ansible.com/u/mzagrabe)\
**Replies:** 3\
**Last updated:** [February 22, 2020, 6:20pm UTC](https://forum.ansible.com/t/shell-module-failing-for-grep/32298 "2020-02-22T18:20:30Z")

</div>

Greetings, I'm running ansible 2.9 (2.9.4+dfsg-1) and I've searched the mailing list archives regarding this issue, but I haven't found out why I'm seeing what I am seeing. shell module is failing when I'm not expect…

---

## [AWX installation](https://forum.ansible.com/t/awx-installation/32188)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [February 22, 2020, 5:21pm UTC](https://forum.ansible.com/t/awx-installation/32188 "2020-02-22T17:21:16Z")

</div>

Hello, I am newbie for awx installation, Can I install AWX containers on windows Docker environment ? which one is best Linux Docker env or Windows Docker env? Thanks Raj

---

## [AWX install failed](https://forum.ansible.com/t/awx-install-failed/32156)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 2\
**Last updated:** [February 22, 2020, 4:57pm UTC](https://forum.ansible.com/t/awx-install-failed/32156 "2020-02-22T16:57:01Z")

</div>

Guys, I try to install AWX but it failed at this step: TASK \[local\_docker : Create Docker Compose Configuration\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

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

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