# Ansible Project

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

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

**Page:** 88

---

## [Need to deploy script over Azure accunt](https://forum.ansible.com/t/need-to-deploy-script-over-azure-accunt/34633)

<div class="topic-metadata">

**Author:** [@Cloud-devops](https://forum.ansible.com/u/Cloud-devops)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 6:23am UTC](https://forum.ansible.com/t/need-to-deploy-script-over-azure-accunt/34633 "2021-02-17T06:23:38Z")

</div>

Hi All, Do we have any module to run script on Azure account based Vm during launch new Vm or exist VMs.? Task: i have 2 script which need to run on azure VMs but it should be automated (not passing user credential) l…

---

## [I am facing issue while installing software from local machine in windows.](https://forum.ansible.com/t/i-am-facing-issue-while-installing-software-from-local-machine-in-windows/34631)

<div class="topic-metadata">

**Author:** [@sd1](https://forum.ansible.com/u/sd1)\
**Replies:** 0\
**Last updated:** [February 16, 2021, 2:54pm UTC](https://forum.ansible.com/t/i-am-facing-issue-while-installing-software-from-local-machine-in-windows/34631 "2021-02-16T14:54:41Z")

</div>

hi , I am facing issue while installing software from local machine in windows. here is my code name: installing soft hosts: win gather\_facts: no tasks: name: install soft win\_package: path: E:\\Soft\\UltraViewer\_s…

---

## [Unable to find Ansible module for Google Cloud Platform server creation using Machine Images](https://forum.ansible.com/t/unable-to-find-ansible-module-for-google-cloud-platform-server-creation-using-machine-images/34628)

<div class="topic-metadata">

**Author:** [@Shristi\_Singh](https://forum.ansible.com/u/Shristi_Singh)\
**Replies:** 1\
**Last updated:** [February 16, 2021, 1:35pm UTC](https://forum.ansible.com/t/unable-to-find-ansible-module-for-google-cloud-platform-server-creation-using-machine-images/34628 "2021-02-16T13:35:52Z")

</div>

Hi, I am trying to create a playbook to launch google cloud server using machine image. For reference please use this - https://cloud.google.com/compute/docs/machine-images/create-instance-from-machine-image. In Ansib…

---

## [Need assistance with ansible script for IOS image copying and MD5 verification](https://forum.ansible.com/t/need-assistance-with-ansible-script-for-ios-image-copying-and-md5-verification/34627)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [February 16, 2021, 8:32am UTC](https://forum.ansible.com/t/need-assistance-with-ansible-script-for-ios-image-copying-and-md5-verification/34627 "2021-02-16T08:32:59Z")

</div>

Can i use below script to copy? iam using below command because i don’t have IOS image stored in ansible controller, rather in a FTP server (10.4.1.104) tasks: – name: copy image cli\_command: command: copy ftp://use…

---

## [botocore.exceptions.NoCredentialsError](https://forum.ansible.com/t/botocore-exceptions-nocredentialserror/34622)

<div class="topic-metadata">

**Author:** [@Brati\_Acharya](https://forum.ansible.com/u/Brati_Acharya)\
**Replies:** 1\
**Last updated:** [February 16, 2021, 2:54am UTC](https://forum.ansible.com/t/botocore-exceptions-nocredentialserror/34622 "2021-02-16T02:54:08Z")

</div>

Hi Any idea on the below error? An exception occurred during task execution. To see the full traceback, use -vvv. The error was: botocore.exceptions.NoCredentialsError: Unable to locate credentials fatal: \[localhost\]:…

---

## [Dynamic dictionary key](https://forum.ansible.com/t/dynamic-dictionary-key/34621)

<div class="topic-metadata">

**Author:** [@Rishare\_Rishare](https://forum.ansible.com/u/Rishare_Rishare)\
**Replies:** 2\
**Last updated:** [February 15, 2021, 4:39pm UTC](https://forum.ansible.com/t/dynamic-dictionary-key/34621 "2021-02-15T16:39:55Z")

</div>

Hi, I can’t find any easy way how to do something like this: set\_fact: “mydict\[{{ myvar }}\]”: “value” vars: myvar: “blabla” However it does not work, because the variable name is not evaluated. The only way I foun…

---

## [Failed to load inventory plugin, skipping community.vmware.vmware\_vm\_inventory](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 10\
**Last updated:** [February 14, 2021, 8:51pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618 "2021-02-14T20:51:34Z")

</div>

Hi, When i run below as Jenkins user i get error ansible-playbook /etc/ansible/playbooks/uptime-inv-based.yml -i /etc/ansible/playbooks/dc-inv-ALL-vmware.yml \[WARNING\]: Failed to load inventory plugin, skipping commun…

---

## [ANNOUNCE: ansible collectio pfsensible.core 0.4.0 released](https://forum.ansible.com/t/announce-ansible-collectio-pfsensible-core-0-4-0-released/34620)

<div class="topic-metadata">

**Author:** [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Replies:** 0\
**Last updated:** [February 13, 2021, 10:51pm UTC](https://forum.ansible.com/t/announce-ansible-collectio-pfsensible-core-0-4-0-released/34620 "2021-02-13T22:51:20Z")

</div>

Version 0.4.0 of the pfsensible.core collection for ansible has just been released here This is a long overdue synchronization from the original ansible-pfsense project and includes a number of bugfixes as well as a cou…

---

## [vmware\_guest create from template very slow to start](https://forum.ansible.com/t/vmware-guest-create-from-template-very-slow-to-start/34617)

<div class="topic-metadata">

**Author:** [@Joacim\_Martensson](https://forum.ansible.com/u/Joacim_Martensson)\
**Replies:** 3\
**Last updated:** [February 13, 2021, 5:23pm UTC](https://forum.ansible.com/t/vmware-guest-create-from-template-very-slow-to-start/34617 "2021-02-13T17:23:00Z")

</div>

Hi, We are using the vmware\_guest module to provisioning servers and have noticed its takes up to 1-2 minutes before the task show up and is executed in VMWare. We have tried it both from a standalone Ansible host and …

---

## [VMware vSphere Automation SDK for Python](https://forum.ansible.com/t/vmware-vsphere-automation-sdk-for-python/34612)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 7\
**Last updated:** [February 12, 2021, 12:16am UTC](https://forum.ansible.com/t/vmware-vsphere-automation-sdk-for-python/34612 "2021-02-12T00:16:10Z")

</div>

Hi, Anyone can suggest on below will help. I am getting error when tried to install VMware vSphere Automation SDK for Python on centos7 Below is my server details Doc i am following is https://github.com/vmware/vsphe…

---

## [Change root user password for VMware servers using Ansible](https://forum.ansible.com/t/change-root-user-password-for-vmware-servers-using-ansible/34614)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 9:11pm UTC](https://forum.ansible.com/t/change-root-user-password-for-vmware-servers-using-ansible/34614 "2021-02-11T21:11:18Z")

</div>

We have to change a number of VMware ESX servers root user’s password. The current process is using Power Shell to handle this task. Is there an Ansible playbook and/or Python VMware module that can be utilized to handle…

---

## [Regarding json query in ansible](https://forum.ansible.com/t/regarding-json-query-in-ansible/34613)

<div class="topic-metadata">

**Author:** [@Deepak\_Sharma1](https://forum.ansible.com/u/Deepak_Sharma1)\
**Replies:** 0\
**Last updated:** [February 11, 2021, 8:18pm UTC](https://forum.ansible.com/t/regarding-json-query-in-ansible/34613 "2021-02-11T20:18:29Z")

</div>

Hi All, I am facing an issue with the JSON query to get value to one variable . Code and Ansible output is given below . Response of JSON is coming as null . name: print user and password debug: msg: “Start\_result=…

---

## [Ansible-3.0.0 release candidate 1](https://forum.ansible.com/t/ansible-3-0-0-release-candidate-1/34598)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 6:10pm UTC](https://forum.ansible.com/t/ansible-3-0-0-release-candidate-1/34598 "2021-02-11T18:10:03Z")

</div>

Hi all, We're happy to announce that the ansible-3.0.0 release candidate 1 package is now available for testing! This update is based on the ansible-base-2.10.x package just like ansible-2.10 was so the changes shoul…

---

## [vmware\_vm\_inventory filters](https://forum.ansible.com/t/vmware-vm-inventory-filters/33744)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 19\
**Last updated:** [February 11, 2021, 4:58am UTC](https://forum.ansible.com/t/vmware-vm-inventory-filters/33744 "2021-02-11T04:58:06Z")

</div>

Hi Needs any suggestion in my case as below We have vCenter where many linux bases vm which are use by other lob, there is no proper naming standard , no ip based filter possible , no folders arranged properly With al…

---

## [YML Error when using shell module](https://forum.ansible.com/t/yml-error-when-using-shell-module/34583)

<div class="topic-metadata">

**Author:** [@CaptainBrewing](https://forum.ansible.com/u/CaptainBrewing)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 11:40pm UTC](https://forum.ansible.com/t/yml-error-when-using-shell-module/34583 "2021-02-10T23:40:12Z")

</div>

Hello, I am using the shell module to run a command inside a docker container and it is giving me a yaml error. The command is stupid silly complicated :wink: Is there a way to get Ansible to just send it as is and ignor…

---

## [ansible 2.9 yaml inventory and group ordering](https://forum.ansible.com/t/ansible-2-9-yaml-inventory-and-group-ordering/34605)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 9:54pm UTC](https://forum.ansible.com/t/ansible-2-9-yaml-inventory-and-group-ordering/34605 "2021-02-10T21:54:52Z")

</div>

Dear list, I recently changed from a ini inventory to a yaml one. And I was hit by a change in the groups ordering on Centos-7. ansible 2.9.17 config file = /opt/devtools-work/bamboo/xml-data/build-dir/1179649/135102…

---

## [Starting vm issue inside docker](https://forum.ansible.com/t/starting-vm-issue-inside-docker/34606)

<div class="topic-metadata">

**Author:** [@kalaiselvi\_Natarajan](https://forum.ansible.com/u/kalaiselvi_Natarajan)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 5:44pm UTC](https://forum.ansible.com/t/starting-vm-issue-inside-docker/34606 "2021-02-10T17:44:27Z")

</div>

Hi Team, Could you please help me out on this i I am not able to send in same mail thread so started new mail thread I have tried below steps and now I am facing below issue due to which we are hitting with the below …

---

## [Wait for service restart](https://forum.ansible.com/t/wait-for-service-restart/34604)

<div class="topic-metadata">

**Author:** [@Mehdi\_Khlifi](https://forum.ansible.com/u/Mehdi_Khlifi)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 3:54pm UTC](https://forum.ansible.com/t/wait-for-service-restart/34604 "2021-02-10T15:54:11Z")

</div>

Hey guys, Is there a way to restart a service and wait for it to finish? I’m starting Keepalived using the service module and apparently it takes a few seconds to actually start after installation so it’s throwing me a…

---

## [Update custom attribute called OS](https://forum.ansible.com/t/update-custom-attribute-called-os/34585)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 7\
**Last updated:** [February 10, 2021, 7:53am UTC](https://forum.ansible.com/t/update-custom-attribute-called-os/34585 "2021-02-10T07:53:57Z")

</div>

Hi anyone can suggest Please if we can update the say a ‘custom attribute’ called OS from OS level with below https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware\_vm\_info\_module.html Say i want …

---

## [Parsing json outputs not returning expected results.](https://forum.ansible.com/t/parsing-json-outputs-not-returning-expected-results/34599)

<div class="topic-metadata">

**Author:** [@Darshan\_Yamakanamard](https://forum.ansible.com/u/Darshan_Yamakanamard)\
**Replies:** 2\
**Last updated:** [February 10, 2021, 5:34am UTC](https://forum.ansible.com/t/parsing-json-outputs-not-returning-expected-results/34599 "2021-02-10T05:34:30Z")

</div>

Hello All, I am trying to parse JSON output and use it as a variable in a playbook. Whilst the JSON query works perfectly fine if I run it on the bash command line, but for some reason, Ansible is not parsing the JSON o…

---

## [GCP Tunnel through IAP](https://forum.ansible.com/t/gcp-tunnel-through-iap/31722)

<div class="topic-metadata">

**Author:** [@Micahel\_Scott](https://forum.ansible.com/u/Micahel_Scott)\
**Replies:** 2\
**Last updated:** [February 9, 2021, 9:56pm UTC](https://forum.ansible.com/t/gcp-tunnel-through-iap/31722 "2021-02-09T21:56:07Z")

</div>

I am required to tunnel through IAP with service account credentials. I have overridden my ssh binary, ‘ssh\_executable=script.sh’, creating a ‘gcloud compute ssh xxxx —tunnel-through-iap’ wrapper, where I regex ssh argu…

---

## [Ansible-2.10.7 released.](https://forum.ansible.com/t/ansible-2-10-7-released/34597)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 1\
**Last updated:** [February 9, 2021, 9:50pm UTC](https://forum.ansible.com/t/ansible-2-10-7-released/34597 "2021-02-09T21:50:19Z")

</div>

Hi all, We're happy to announce that the ansible-2.10.7 package is now available! This update contains bugfixes and new, backwards compatible features in the contained collections. Ansible-2.10.x is a big change in h…

---

## [file module, why useless src should be an error with state absent ?](https://forum.ansible.com/t/file-module-why-useless-src-should-be-an-error-with-state-absent/34592)

<div class="topic-metadata">

**Author:** [@Daniel\_Caillibaud](https://forum.ansible.com/u/Daniel_Caillibaud)\
**Replies:** 4\
**Last updated:** [February 9, 2021, 7:32pm UTC](https://forum.ansible.com/t/file-module-why-useless-src-should-be-an-error-with-state-absent/34592 "2021-02-09T19:32:26Z")

</div>

Hi, I want a symlink to be present on some hosts and absent for others, so I write this task - name: enable plugins for baremetal only file: path: "/etc/munin/plugins/{{ item }}" state: "{{ is\_baremetal | …

---

## [Writing output to ansible server local file](https://forum.ansible.com/t/writing-output-to-ansible-server-local-file/34596)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 0\
**Last updated:** [February 9, 2021, 6:48pm UTC](https://forum.ansible.com/t/writing-output-to-ansible-server-local-file/34596 "2021-02-09T18:48:49Z")

</div>

Hi all, I’ve tried this and it’s worked before but after an upgrade some time ago, it stopped working. I haven’t used it in ages. Anyway, if I want to get variables about my inventory: mac address, ip, os version, etc.…

---

## [(cross post) AWX "mux\_client\_read\_packet: read header failed: Broken Pipe"](https://forum.ansible.com/t/cross-post-awx-mux-client-read-packet-read-header-failed-broken-pipe/34593)

<div class="topic-metadata">

**Author:** [@Ethan\_Sowell](https://forum.ansible.com/u/Ethan_Sowell)\
**Replies:** 0\
**Last updated:** [February 9, 2021, 1:57pm UTC](https://forum.ansible.com/t/cross-post-awx-mux-client-read-packet-read-header-failed-broken-pipe/34593 "2021-02-09T13:57:04Z")

</div>

(This is a cross post from the AWX Project group I made about a week ago. I am just making it here in the hopes anyone with more ansible knowledge here may be able to help me in the mean time.) I am trying to get AWX ru…

---

## [extracting data from dict in a loop](https://forum.ansible.com/t/extracting-data-from-dict-in-a-loop/34589)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 1\
**Last updated:** [February 9, 2021, 7:08am UTC](https://forum.ansible.com/t/extracting-data-from-dict-in-a-loop/34589 "2021-02-09T07:08:07Z")

</div>

Hi, I am trying to extract certain information from a complex dictionary generated by a parser. For each interface which in the loop is the key, I would like to get the system\_name which is several layers deeper. I wan…

---

## [Printing items in a file using lineinfile/blockinfile](https://forum.ansible.com/t/printing-items-in-a-file-using-lineinfile-blockinfile/34587)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar](https://forum.ansible.com/u/Akshay_Kumar)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 8:16pm UTC](https://forum.ansible.com/t/printing-items-in-a-file-using-lineinfile-blockinfile/34587 "2021-02-08T20:16:41Z")

</div>

Hi All, I am currently working on a playbook where in i need to write the output of SQL statement into a file . I have 4 SQL statement and 4 hosts thus want the output in such a way that: 1st host SQL1 output SQL2 O…

---

## [Ansible and Arista](https://forum.ansible.com/t/ansible-and-arista/34570)

<div class="topic-metadata">

**Author:** [@Stefan\_Beck](https://forum.ansible.com/u/Stefan_Beck)\
**Replies:** 1\
**Last updated:** [February 8, 2021, 5:34pm UTC](https://forum.ansible.com/t/ansible-and-arista/34570 "2021-02-08T17:34:52Z")

</div>

Hallo to all, at first I have to commit that I’m a totally beginner - regarding Ansible. And due to this I have a question: I have a setup with an Ansible-controller and a ssh-connection to a Arista-Switch. The Arist…

---

## [Ansible Synchronization Problem](https://forum.ansible.com/t/ansible-synchronization-problem/34579)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 1\
**Last updated:** [February 8, 2021, 5:26pm UTC](https://forum.ansible.com/t/ansible-synchronization-problem/34579 "2021-02-08T17:26:47Z")

</div>

As a part of getting a bunch of nodes ready and configured for our environment, I need to copy a file from already configured node. Let call the already configured node {{ dis\_host }} with actual host name pfch3dis99. He…

---

## [variable expansion in dict](https://forum.ansible.com/t/variable-expansion-in-dict/34582)

<div class="topic-metadata">

**Author:** [@Jff\_Frm](https://forum.ansible.com/u/Jff_Frm)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 3:38pm UTC](https://forum.ansible.com/t/variable-expansion-in-dict/34582 "2021-02-08T15:38:24Z")

</div>

Hi, On my dictionary I need to use a variable to assign the same value on multiple keys so that I only need to update it in one place, but unfortunately results in variable is undefined. I’ve already read that this is n…

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

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