# Ansible Project

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

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

**Page:** 33

---

## [\[ISSUE\] Ansible for VMware, deploy vms and update them](https://forum.ansible.com/t/issue-ansible-for-vmware-deploy-vms-and-update-them/37024)

<div class="topic-metadata">

**Author:** [@TheReal\_MVP](https://forum.ansible.com/u/TheReal_MVP)\
**Replies:** 7\
**Last updated:** [November 7, 2022, 10:05pm UTC](https://forum.ansible.com/t/issue-ansible-for-vmware-deploy-vms-and-update-them/37024 "2022-11-07T22:05:39Z")

</div>

Hi there, I’ve been banging my head with this for some time now and I can’t figure it out. I’m using Ansible the vmware commnity plugins to deploy 4 VMs from a template and they all have DHCP running. Ultimately, I wan…

---

## [File location path not working in ansible-navigator vs ansible-playbook](https://forum.ansible.com/t/file-location-path-not-working-in-ansible-navigator-vs-ansible-playbook/37316)

<div class="topic-metadata">

**Author:** [@cary.c](https://forum.ansible.com/u/cary.c)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 5:09pm UTC](https://forum.ansible.com/t/file-location-path-not-working-in-ansible-navigator-vs-ansible-playbook/37316 "2022-11-07T17:09:00Z")

</div>

We are testing out current playbooks we have developed with ansible-playbook and are having issues when defining a file path location in our include\_vars: section of the playbook e.g this works in ansible-navigator but …

---

## [netbox inventory fails with message: object has no attribute '\_vars'](https://forum.ansible.com/t/netbox-inventory-fails-with-message-object-has-no-attribute-vars/37315)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 4:47pm UTC](https://forum.ansible.com/t/netbox-inventory-fails-with-message-object-has-no-attribute-vars/37315 "2022-11-07T16:47:32Z")

</div>

Hi., I have a new setup of netbox on ubuntu. netbox install according to setup apt install ansible pynetbox ansible.cfg: \[inventory\] enable\_plugins = host\_list, auto, yaml, netbox.netbox.nb\_inventory netbox\_invent…

---

## [New releases: ansible-core 2.13.6](https://forum.ansible.com/t/new-releases-ansible-core-2-13-6/37313)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 4:18pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-13-6/37313 "2022-11-07T16:18:39Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.13.6 How to get it

---

## [a list of changes in handlers](https://forum.ansible.com/t/a-list-of-changes-in-handlers/37312)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 1\
**Last updated:** [November 7, 2022, 2:51pm UTC](https://forum.ansible.com/t/a-list-of-changes-in-handlers/37312 "2022-11-07T14:51:22Z")

</div>

Hello, Is that possible in handlers to have a list of files changed by task(s) calling it? If not, perhaps there is some tricks? Asking because I need to reload feeding changed (and only changed) files to a daemon. T…

---

## [creating a csv file on localhost with lineinfile](https://forum.ansible.com/t/creating-a-csv-file-on-localhost-with-lineinfile/37311)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 1:07pm UTC](https://forum.ansible.com/t/creating-a-csv-file-on-localhost-with-lineinfile/37311 "2022-11-07T13:07:12Z")

</div>

I want to create a csv with 3 values per host the FQDN of the host, a string "postgres" and the stdout of a vairable I have defined here is my playbook which I am testing againt 3 hosts which all have running postgres,…

---

## [How to create service accounts on MinIO S3 using Ansible](https://forum.ansible.com/t/how-to-create-service-accounts-on-minio-s3-using-ansible/37310)

<div class="topic-metadata">

**Author:** [@jsabater](https://forum.ansible.com/u/jsabater)\
**Replies:** 0\
**Last updated:** [November 6, 2022, 9:28pm UTC](https://forum.ansible.com/t/how-to-create-service-accounts-on-minio-s3-using-ansible/37310 "2022-11-06T21:28:00Z")

</div>

have a single-server MinIO S3 installation running on Debian 11 Bullseye, with an NGINX reverse proxy in front. I have created a myapp user and given it readwrite permissions. This user is to be used by an Ansible playb…

---

## [How to access a variable between different play/hosts in the same playbook?](https://forum.ansible.com/t/how-to-access-a-variable-between-different-play-hosts-in-the-same-playbook/37309)

<div class="topic-metadata">

**Author:** [@Ramkumar\_A](https://forum.ansible.com/u/Ramkumar_A)\
**Replies:** 0\
**Last updated:** [November 6, 2022, 9:06pm UTC](https://forum.ansible.com/t/how-to-access-a-variable-between-different-play-hosts-in-the-same-playbook/37309 "2022-11-06T21:06:17Z")

</div>

Hi Experts, I am a newcomer to Ansible. I need help in accessing a variable between different hosts/play on the playbook. In below code, group of servers is passed here dynamically and creating tempfile directory for e…

---

## [I am stump need to remove square brackets](https://forum.ansible.com/t/i-am-stump-need-to-remove-square-brackets/37308)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [November 6, 2022, 7:03am UTC](https://forum.ansible.com/t/i-am-stump-need-to-remove-square-brackets/37308 "2022-11-06T07:03:00Z")

</div>

The Win\_powershell output variable is a list, and in your case it contains one item: the file content. This is very clearly stated in the module docs: https://docs.ansible.com/ansible/latest/collections/ansible/windows…

---

## [\- Failed to create tmp directory](https://forum.ansible.com/t/failed-to-create-tmp-directory/37303)

<div class="topic-metadata">

**Author:** [@Vivek\_Khochare](https://forum.ansible.com/u/Vivek_Khochare)\
**Replies:** 9\
**Last updated:** [November 4, 2022, 2:58pm UTC](https://forum.ansible.com/t/failed-to-create-tmp-directory/37303 "2022-11-04T14:58:10Z")

</div>

Hi All I am getting the error "Failed to create temporary directory.In Some Cases,you may have been able to authenticate and did not have permission on the target directory.Consider changing the remote tmp path in ansib…

---

## [Download artifacts from artifactory into server location](https://forum.ansible.com/t/download-artifacts-from-artifactory-into-server-location/37304)

<div class="topic-metadata">

**Author:** [@neha0021997](https://forum.ansible.com/u/neha0021997)\
**Replies:** 4\
**Last updated:** [November 4, 2022, 10:36am UTC](https://forum.ansible.com/t/download-artifacts-from-artifactory-into-server-location/37304 "2022-11-04T10:36:36Z")

</div>

Hi Team, I was trying to download the maven artifact from required location (in artifactory) to server. But I a, getting some error for the same. Firstfall, please find my code below: - hosts: 10.115.109.195 gather\_fa…

---

## [Special variable group\_names list items out of order](https://forum.ansible.com/t/special-variable-group-names-list-items-out-of-order/37299)

<div class="topic-metadata">

**Author:** [@Goran\_Kuzmanovic](https://forum.ansible.com/u/Goran_Kuzmanovic)\
**Replies:** 1\
**Last updated:** [November 3, 2022, 2:55pm UTC](https://forum.ansible.com/t/special-variable-group-names-list-items-out-of-order/37299 "2022-11-03T14:55:39Z")

</div>

Hello, While searching for my use-case, I stumbled upon this issue https://github.com/ansible/ansible/issues/73208 when the explanation provided was “The group\_names variable is purposefully alphanumerically sorted by n…

---

## [Forks?](https://forum.ansible.com/t/forks/37290)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 5\
**Last updated:** [November 3, 2022, 1:44am UTC](https://forum.ansible.com/t/forks/37290 "2022-11-03T01:44:12Z")

</div>

I have my forks set to 50 in ~/.Ansible.CTG and the forks setting seems to work for the first set of boxes, but doesn’t seem to work for the rest. I thought the forks setting would keep $forks connections going until all…

---

## [Dynamic inventory can take a long time to fetch hosts in group (aws\_ec2)](https://forum.ansible.com/t/dynamic-inventory-can-take-a-long-time-to-fetch-hosts-in-group-aws-ec2/37295)

<div class="topic-metadata">

**Author:** [@Josh\_K](https://forum.ansible.com/u/Josh_K)\
**Replies:** 0\
**Last updated:** [November 2, 2022, 7:30pm UTC](https://forum.ansible.com/t/dynamic-inventory-can-take-a-long-time-to-fetch-hosts-in-group-aws-ec2/37295 "2022-11-02T19:30:47Z")

</div>

I have a dynamic inventory created with the aws\_ec2 inventory plugin. I added a new group and now my inventory is taking a noticeably long time to load: groups: … u: “tags.get(‘Name’) | regex\_search(‘u\[\\d\]+’)” I’ve w…

---

## [Importing multiple ansible playbooks](https://forum.ansible.com/t/importing-multiple-ansible-playbooks/37294)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 5:16pm UTC](https://forum.ansible.com/t/importing-multiple-ansible-playbooks/37294 "2022-11-02T17:16:34Z")

</div>

Hi all, Is there a way, or what is the syntax since I can’t seem to find it on importing an ansible playbook and with that applying a specific tag to one or some of those playbooks?

---

## [Generate docs from ansible argspec](https://forum.ansible.com/t/generate-docs-from-ansible-argspec/35889)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 2:03pm UTC](https://forum.ansible.com/t/generate-docs-from-ansible-argspec/35889 "2022-11-02T14:03:05Z")

</div>

Is there any way to generate a markdown documentation from ansible role argument spec? https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_reuse\_roles.html#role-argument-validation I could not find anything in…

---

## [Complex lineinfile/replace](https://forum.ansible.com/t/complex-lineinfile-replace/37281)

<div class="topic-metadata">

**Author:** [@Cy\_Schubert](https://forum.ansible.com/u/Cy_Schubert)\
**Replies:** 10\
**Last updated:** [November 1, 2022, 7:12pm UTC](https://forum.ansible.com/t/complex-lineinfile-replace/37281 "2022-11-01T19:12:15Z")

</div>

I need to replace lines in /etc/fstab using the following logic: if line contains “ext4”; then if line ends in “0 0”; then replace “0 0” with “1 2” I can easily do this with sed: sed ‘/ext4/s/0 0$/1 2/’ But from wh…

---

## [Archiving user home directories with a var\_files](https://forum.ansible.com/t/archiving-user-home-directories-with-a-var-files/37291)

<div class="topic-metadata">

**Author:** [@Andrew\_Latham](https://forum.ansible.com/u/Andrew_Latham)\
**Replies:** 2\
**Last updated:** [November 1, 2022, 5:58pm UTC](https://forum.ansible.com/t/archiving-user-home-directories-with-a-var-files/37291 "2022-11-01T17:58:17Z")

</div>

Kenady, I think you are looking to loop\[1\] the users correct? aka loop: “{{ users }}” https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_loops.html

---

## [Archiving user home directories with a var\_files](https://forum.ansible.com/t/archiving-user-home-directories-with-a-var-files/37288)

<div class="topic-metadata">

**Author:** [@Kenady\_Inampudi](https://forum.ansible.com/u/Kenady_Inampudi)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 4:32pm UTC](https://forum.ansible.com/t/archiving-user-home-directories-with-a-var-files/37288 "2022-11-01T16:32:23Z")

</div>

Archiving user home directories with external var file user.yml

---

## [Playbook to create multiple user directories based on user input passed in from playbook execution](https://forum.ansible.com/t/playbook-to-create-multiple-user-directories-based-on-user-input-passed-in-from-playbook-execution/37287)

<div class="topic-metadata">

**Author:** [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 3:25pm UTC](https://forum.ansible.com/t/playbook-to-create-multiple-user-directories-based-on-user-input-passed-in-from-playbook-execution/37287 "2022-11-01T15:25:58Z")

</div>

Hello all, I have a playbook which creates sftp user accounts based on information passed during playbook execution. I would like to create multiple directories based on what the user running the playbook enters. name…

---

## [Ansible Playbook when statement added in playbook](https://forum.ansible.com/t/ansible-playbook-when-statement-added-in-playbook/37286)

<div class="topic-metadata">

**Author:** [@DEEPANSHU\_DANG](https://forum.ansible.com/u/DEEPANSHU_DANG)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 1:01pm UTC](https://forum.ansible.com/t/ansible-playbook-when-statement-added-in-playbook/37286 "2022-11-01T13:01:34Z")

</div>

Hi Team I have created a Playbook for helm deployment and need to make resiliency and exception handling with the help of when condition I got confused in that when adding multiple conditions can any one please help.

---

## [alternative for loop?](https://forum.ansible.com/t/alternative-for-loop/37285)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 11:14am UTC](https://forum.ansible.com/t/alternative-for-loop/37285 "2022-11-01T11:14:32Z")

</div>

Hi I have a playbook that displays a warning when certain legacy variables are found. This works, but I am looking for an alternative that does not involve a looped task. My attempt below works only partly, because se…

---

## [builtin.git fails to clone private repo](https://forum.ansible.com/t/builtin-git-fails-to-clone-private-repo/37284)

<div class="topic-metadata">

**Author:** [@Don\_Bower](https://forum.ansible.com/u/Don_Bower)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 3:09am UTC](https://forum.ansible.com/t/builtin-git-fails-to-clone-private-repo/37284 "2022-11-01T03:09:22Z")

</div>

Here is my task: name: Install Private Git Repos git: repo: “{{ item.repo }}” dest: “/home/don/Developer/{{ item.dest }}” with\_items: repo: git@github.com:DonBower/ansible.git dest: ansible I can do this manually…

---

## [WinRM kerberos- HTTPSConnectionPool](https://forum.ansible.com/t/winrm-kerberos-httpsconnectionpool/37187)

<div class="topic-metadata">

**Author:** [@5d5985669a19a843b4d4](https://forum.ansible.com/u/5d5985669a19a843b4d4)\
**Replies:** 13\
**Last updated:** [October 31, 2022, 12:42pm UTC](https://forum.ansible.com/t/winrm-kerberos-httpsconnectionpool/37187 "2022-10-31T12:42:07Z")

</div>

Hi Team, I need help to resolve the errors below to communicate with WinRM via Ansible. What will the cause for this error? server 1-

---

## [kubernetes.core.helm throwing Invalid Syntax](https://forum.ansible.com/t/kubernetes-core-helm-throwing-invalid-syntax/36876)

<div class="topic-metadata">

**Author:** [@DEEPANSHU\_DANG](https://forum.ansible.com/u/DEEPANSHU_DANG)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 9:16am UTC](https://forum.ansible.com/t/kubernetes-core-helm-throwing-invalid-syntax/36876 "2022-10-31T09:16:36Z")

</div>

Hi team, I’m running ansible on centos 7 in which python 2 coming by default and some dependencies like yum etc is depended on that. When Ansible is install it picking the default python2 as INTERPRETER Ansible --vers…

---

## [Package Facts with multiple Packages](https://forum.ansible.com/t/package-facts-with-multiple-packages/37280)

<div class="topic-metadata">

**Author:** [@Silvio\_Siefke](https://forum.ansible.com/u/Silvio_Siefke)\
**Replies:** 1\
**Last updated:** [October 29, 2022, 2:25pm UTC](https://forum.ansible.com/t/package-facts-with-multiple-packages/37280 "2022-10-29T14:25:50Z")

</div>

Hello, I try to install restic with Ansible and I use multiple Distros. So I create a vars file with content: \_restic\_packages: default: - restic - fuse - bzip2 - pigz Alpine: - restic - fuse - bzip2 - pigz …

---

## [Ansible playbooks hangs forewer](https://forum.ansible.com/t/ansible-playbooks-hangs-forewer/37275)

<div class="topic-metadata">

**Author:** [@Harshad\_Kulkarni](https://forum.ansible.com/u/Harshad_Kulkarni)\
**Replies:** 3\
**Last updated:** [October 29, 2022, 12:04am UTC](https://forum.ansible.com/t/ansible-playbooks-hangs-forewer/37275 "2022-10-29T00:04:08Z")

</div>

Hi Team I have playbooks which configures some standard commands on Cisco IOS-XE & IOS devices. I have seen that playbooks is getting hang after some time for indefinite period of time after some of the hosts got timed …

---

## [How to migrate 6300 hosts to GNU/Linux using Ansible and AWX](https://forum.ansible.com/t/how-to-migrate-6300-hosts-to-gnu-linux-using-ansible-and-awx/37278)

<div class="topic-metadata">

**Author:** [@OSiUX](https://forum.ansible.com/u/OSiUX)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 7:28pm UTC](https://forum.ansible.com/t/how-to-migrate-6300-hosts-to-gnu-linux-using-ansible-and-awx/37278 "2022-10-28T19:28:15Z")

</div>

Hello, I want to share the translation of the transcript of the talk "Cómo migrar 6300 equipos a GNU/Linux usando Ansible y AWX" https://osiux.com/2022-10-20-howto-migrate-6300-hosts-to-gnu-linux-using-ansible-and-awx…

---

## [Removing unicode from output](https://forum.ansible.com/t/removing-unicode-from-output/37274)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [October 27, 2022, 3:48pm UTC](https://forum.ansible.com/t/removing-unicode-from-output/37274 "2022-10-27T15:48:39Z")

</div>

I was reading some suggestions on how to remove the u’ unicode presentation from my output, but none of them work. Here’s what I’m trying: name: Set List of user’s information set\_fact: user\_info: “{{ user\_show.resu…

---

## [Assigning a vNIC Profile to an oVirt VM](https://forum.ansible.com/t/assigning-a-vnic-profile-to-an-ovirt-vm/37269)

<div class="topic-metadata">

**Author:** [@Will1](https://forum.ansible.com/u/Will1)\
**Replies:** 0\
**Last updated:** [October 26, 2022, 3:26am UTC](https://forum.ansible.com/t/assigning-a-vnic-profile-to-an-ovirt-vm/37269 "2022-10-26T03:26:15Z")

</div>

Hello, I’m attempting to create a VM with the simple playbook below, and attach an existing NIC profile to it. In the oVirt web-gui, I would do this by simply selecting the profile in the VM settings under “Instantiate V…

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

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