# Latest

**URL:** https://forum.ansible.com/latest.md?page=397

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

**Page:** 398

---

## [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\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Failed to import docker or docker-py - cannot import name constants” when installing AWX on Ubuntu 19.04](https://forum.ansible.com/t/failed-to-import-docker-or-docker-py-cannot-import-name-constants-when-installing-awx-on-ubuntu-19-04/31219)

<div class="topic-metadata">

**Author:** [@Moussa\_Balla](https://forum.ansible.com/u/Moussa_Balla)\
**Replies:** 4\
**Last updated:** [February 22, 2020, 4:52pm UTC](https://forum.ansible.com/t/failed-to-import-docker-or-docker-py-cannot-import-name-constants-when-installing-awx-on-ubuntu-19-04/31219 "2020-02-22T16:52:39Z")

</div>

TASK \[local\_docker : Start the containers\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “Fail…

---

## [How to access any other executable like java, sdkman installed within the awx\_task container?](https://forum.ansible.com/t/how-to-access-any-other-executable-like-java-sdkman-installed-within-the-awx-task-container/32303)

<div class="topic-metadata">

**Author:** [@Blacksensei](https://forum.ansible.com/u/Blacksensei)\
**Replies:** 0\
**Last updated:** [February 22, 2020, 4:42pm UTC](https://forum.ansible.com/t/how-to-access-any-other-executable-like-java-sdkman-installed-within-the-awx-task-container/32303 "2020-02-22T16:42:53Z")

</div>

Hello Team, I have been trying to move my team from ansible core and would like to do that with little change into what we have already so the contribution from team can still happen. I need a way to sync AWX as closely…

---

## [Ansible - Environment variable](https://forum.ansible.com/t/ansible-environment-variable/32283)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 8\
**Last updated:** [February 22, 2020, 6:18am UTC](https://forum.ansible.com/t/ansible-environment-variable/32283 "2020-02-22T06:18:14Z")

</div>

0I have the env file which is present in target machine and it contain certain number of variables with export command(the export command itself was present inside the file). export AB\_HOME=/et/dev/abinitio/abinitio-V3 …

---

## [jump through two bastion hosts?](https://forum.ansible.com/t/jump-through-two-bastion-hosts/32276)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 1\
**Last updated:** [February 21, 2020, 11:31pm UTC](https://forum.ansible.com/t/jump-through-two-bastion-hosts/32276 "2020-02-21T23:31:53Z")

</div>

So I’ve got a host that I need to jump through two bastion hosts to get to: Ansible -----\> bastion\_1 -----\> bastion\_2 -----\> target I can use ansible to get to bastion\_2 by setting up a hostvar: ansible\_ssh\_common\_arg…

---

## [How to source a file which contains environment variables in a linux](https://forum.ansible.com/t/how-to-source-a-file-which-contains-environment-variables-in-a-linux/26810)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 5\
**Last updated:** [February 21, 2020, 10:37pm UTC](https://forum.ansible.com/t/how-to-source-a-file-which-contains-environment-variables-in-a-linux/26810 "2020-02-21T22:37:23Z")

</div>

Hi All, name: “source then env file” shell: . /home/myfiles/setup.env I used . & source to source the env file, but its was not happening the way that works in linux environement my setup.env: export ip\_net=xx.xx.x…

---

## [Migration off Tool Server to Admin Box on Citrix](https://forum.ansible.com/t/migration-off-tool-server-to-admin-box-on-citrix/32299)

<div class="topic-metadata">

**Author:** [@Harris\_Humayun](https://forum.ansible.com/u/Harris_Humayun)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 10:03pm UTC](https://forum.ansible.com/t/migration-off-tool-server-to-admin-box-on-citrix/32299 "2020-02-21T22:03:04Z")

</div>

Hello: I am a sys admin for a contractor in the govt. Where I work we have servers with tools on them, what I am tasked with doing is moving these tools over to an admin box on Citrix, so it can be accessed by VDI. I ne…

---

## [Ansible delegate to another host](https://forum.ansible.com/t/ansible-delegate-to-another-host/32296)

<div class="topic-metadata">

**Author:** [@Amit\_Juneja](https://forum.ansible.com/u/Amit_Juneja)\
**Replies:** 2\
**Last updated:** [February 21, 2020, 9:52pm UTC](https://forum.ansible.com/t/ansible-delegate-to-another-host/32296 "2020-02-21T21:52:54Z")

</div>

Hi everyone, I would appreciate if you could please look at my issue below and provide your suggestions - GOAL - Identify if the data in lower environment is scrambled. Steps - Identify all lower environment and for…

---

## [ansible - ios\_config:  suppress all the "show running-configs" that occur after updating each port on a cisco switch?](https://forum.ansible.com/t/ansible-ios-config-suppress-all-the-show-running-configs-that-occur-after-updating-each-port-on-a-cisco-switch/32297)

<div class="topic-metadata">

**Author:** [@John\_Hawley](https://forum.ansible.com/u/John_Hawley)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 8:14pm UTC](https://forum.ansible.com/t/ansible-ios-config-suppress-all-the-show-running-configs-that-occur-after-updating-each-port-on-a-cisco-switch/32297 "2020-02-21T20:14:04Z")

</div>

I have a playbook that steps through all the ports on a cisco switch stack, adding or removing lines and it takes a very long time to run. I can see in TACACS command accounting that it is doing a “show running-config” a…

[Previous page](https://forum.ansible.com/latest.md?page=396)

[Next page](https://forum.ansible.com/latest.md?page=398)
