# Ansible Project

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

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

**Page:** 49

---

## [Loop through CSV file](https://forum.ansible.com/t/loop-through-csv-file/36484)

<div class="topic-metadata">

**Author:** [@Delmiro\_Campelo](https://forum.ansible.com/u/Delmiro_Campelo)\
**Replies:** 2\
**Last updated:** [March 28, 2022, 2:42pm UTC](https://forum.ansible.com/t/loop-through-csv-file/36484 "2022-03-28T14:42:54Z")

</div>

I was hoping that you can give me a hand with an issue here. I have about a thousand routers that I’m trying to configure. I have all the device specific information on a CSV file that I would like to use for populating …

---

## [How do I Post a question to this group](https://forum.ansible.com/t/how-do-i-post-a-question-to-this-group/36482)

<div class="topic-metadata">

**Author:** [@Arundhati\_Bhende](https://forum.ansible.com/u/Arundhati_Bhende)\
**Replies:** 0\
**Last updated:** [March 27, 2022, 2:44am UTC](https://forum.ansible.com/t/how-do-i-post-a-question-to-this-group/36482 "2022-03-27T02:44:21Z")

</div>

I would like to ask a question and trying to login to https://groups.google.com/g/ansible-project . I am not able to login without a google account. How do I login? Thanks

---

## [Ansible play book error ec2 setpu](https://forum.ansible.com/t/ansible-play-book-error-ec2-setpu/36476)

<div class="topic-metadata">

**Author:** [@prasanna\_kumar1](https://forum.ansible.com/u/prasanna_kumar1)\
**Replies:** 2\
**Last updated:** [March 25, 2022, 12:08pm UTC](https://forum.ansible.com/t/ansible-play-book-error-ec2-setpu/36476 "2022-03-25T12:08:35Z")

</div>

Dear dick, I have to install aws ec2 instances through ansible-playbook,I am getting this error,kindly help me ERROR! A playbook must be a list of plays, got a \<class ‘ansible.parsing.yaml.objects.AnsibleMapping’\> inst…

---

## [iis wildcard-certificate binding leads to error message in site bindings](https://forum.ansible.com/t/iis-wildcard-certificate-binding-leads-to-error-message-in-site-bindings/36479)

<div class="topic-metadata">

**Author:** [@astrakid](https://forum.ansible.com/u/astrakid)\
**Replies:** 0\
**Last updated:** [March 25, 2022, 11:59am UTC](https://forum.ansible.com/t/iis-wildcard-certificate-binding-leads-to-error-message-in-site-bindings/36479 "2022-03-25T11:59:25Z")

</div>

hi, i managed to install an updated wildcard certificate on our server. but after trying to bind one of the sites to that new certificate i got an error message. as a result i am not able to open the site bindings-set…

---

## [Ansible Windows - Module "community.general.ini\_file" - Not working](https://forum.ansible.com/t/ansible-windows-module-community-general-ini-file-not-working/36478)

<div class="topic-metadata">

**Author:** [@Gursharan\_Singh](https://forum.ansible.com/u/Gursharan_Singh)\
**Replies:** 0\
**Last updated:** [March 25, 2022, 7:57am UTC](https://forum.ansible.com/t/ansible-windows-module-community-general-ini-file-not-working/36478 "2022-03-25T07:57:06Z")

</div>

I have installed ansible using Cygwin and need to make some changes in ini and config files. However, some of the modules are not working… Pasting Error below: community.general.ini\_file: \[WARNING\]: No pythonfatal: \[EC…

---

## [How to get desired data from JSON](https://forum.ansible.com/t/how-to-get-desired-data-from-json/36467)

<div class="topic-metadata">

**Author:** [@Know\_Your\_Tech](https://forum.ansible.com/u/Know_Your_Tech)\
**Replies:** 2\
**Last updated:** [March 25, 2022, 7:29am UTC](https://forum.ansible.com/t/how-to-get-desired-data-from-json/36467 "2022-03-25T07:29:36Z")

</div>

I need to print the below for any jdbc\_data\_source found expected output: jdbc\_data\_source name is has username and jndi name \<jndi\_name\> which will print as jdbc\_data\_source name is cwds has username CAN\_USER and …

---

## [synchronize: link\_stat failed](https://forum.ansible.com/t/synchronize-link-stat-failed/36474)

<div class="topic-metadata">

**Author:** [@Robin\_Kluth](https://forum.ansible.com/u/Robin_Kluth)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 1:07pm UTC](https://forum.ansible.com/t/synchronize-link-stat-failed/36474 "2022-03-24T13:07:41Z")

</div>

Hi. I have: name: Copy files to BackupDMZ ansible.posix.synchronize: src: /opt/docusnap/\*.xml dest: /opt/docusnap\_proxy/ mode: pull rsync\_opts: “–timeout=30” delegate\_to: 172.31.10.84 which workls for all hosts…

---

## [ping: Socket: Operation not permitted Ansible Tower](https://forum.ansible.com/t/ping-socket-operation-not-permitted-ansible-tower/36475)

<div class="topic-metadata">

**Author:** [@Jose\_Angel\_Morena\_Si](https://forum.ansible.com/u/Jose_Angel_Morena_Si)\
**Replies:** 0\
**Last updated:** [March 24, 2022, 10:02am UTC](https://forum.ansible.com/t/ping-socket-operation-not-permitted-ansible-tower/36475 "2022-03-24T10:02:18Z")

</div>

Hello there, I am working with Ansible Tower 3.8.4, RHEL 8.4 and I can’t run ping via shell command. fatal: \[localhost\]: FAILED! =\> {“changed”: true, “cmd”: “ping google.com -c 5”, “delta”: “0:00:00.005199”, “end”: “20…

---

## [Configure callback mail](https://forum.ansible.com/t/configure-callback-mail/36461)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 3\
**Last updated:** [March 23, 2022, 6:44am UTC](https://forum.ansible.com/t/configure-callback-mail/36461 "2022-03-23T06:44:26Z")

</div>

Hello, I try to understand mail callback configuration. My ansible.cfg \[defaults\] inventory = env/inventory.ini library = lib callback\_enabled = timer,minimal,profile\_tasks,mail interpreter\_python = /usr/bin/python3 …

---

## [ansible.builtin.apt - Updating all installed packages to latest gives "parameters are mutually exclusive deb|package|upgrade](https://forum.ansible.com/t/ansible-builtin-apt-updating-all-installed-packages-to-latest-gives-parameters-are-mutually-exclusive-deb-package-upgrade/36460)

<div class="topic-metadata">

**Author:** [@John\_Himpel](https://forum.ansible.com/u/John_Himpel)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 7:09pm UTC](https://forum.ansible.com/t/ansible-builtin-apt-updating-all-installed-packages-to-latest-gives-parameters-are-mutually-exclusive-deb-package-upgrade/36460 "2022-03-22T19:09:35Z")

</div>

The following ansible block: name: Block update APT hosts block: name: main - Update APT repo and cache ansible.builtin.apt: update\_cache: true force\_apt\_get: true cache\_valid\_time: 3600 # 1 Hour name: main…

---

## [Ansible: Can you register the Linux banner without logging in?](https://forum.ansible.com/t/ansible-can-you-register-the-linux-banner-without-logging-in/36470)

<div class="topic-metadata">

**Author:** [@Dennis\_McCarthy1](https://forum.ansible.com/u/Dennis_McCarthy1)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 4:08pm UTC](https://forum.ansible.com/t/ansible-can-you-register-the-linux-banner-without-logging-in/36470 "2022-03-22T16:08:32Z")

</div>

I’m trying to capture the linux banner you see before you login to a Linux server - using Ansible. I don’t want to login to the server, just get the banner. I was hoping to use register to save it, then use part of it’s …

---

## [Couldn't execute inventory file](https://forum.ansible.com/t/couldnt-execute-inventory-file/36437)

<div class="topic-metadata">

**Author:** [@Indra\_sena](https://forum.ansible.com/u/Indra_sena)\
**Replies:** 4\
**Last updated:** [March 21, 2022, 11:03pm UTC](https://forum.ansible.com/t/couldnt-execute-inventory-file/36437 "2022-03-21T23:03:31Z")

</div>

Hey, I’m unable to run the inventory file for my project. It’s throwing up few errors. please help me out. ansible-inventory2.9.27.post0 config file = / runner/project/ansible.cfg configured module search path = \[‘/h…

---

## [Ansible in OCI ubi8](https://forum.ansible.com/t/ansible-in-oci-ubi8/36439)

<div class="topic-metadata">

**Author:** [@Eduardo\_Toro](https://forum.ansible.com/u/Eduardo_Toro)\
**Replies:** 2\
**Last updated:** [March 21, 2022, 9:10pm UTC](https://forum.ansible.com/t/ansible-in-oci-ubi8/36439 "2022-03-21T21:10:44Z")

</div>

Hello Experts, I’m seeking your help to confirm if it’s posible to install Ansible in an Universal Base Image from Redhat. If not, could you please confirm if there is any plan to allow this? Thank you for your support…

---

## [Python compatibility between controller and managed nodes](https://forum.ansible.com/t/python-compatibility-between-controller-and-managed-nodes/36449)

<div class="topic-metadata">

**Author:** [@Gaetan\_QUENTIN](https://forum.ansible.com/u/Gaetan_QUENTIN)\
**Replies:** 3\
**Last updated:** [March 21, 2022, 8:56pm UTC](https://forum.ansible.com/t/python-compatibility-between-controller-and-managed-nodes/36449 "2022-03-21T20:56:05Z")

</div>

Hi, A question about python compatibility between controller and managed node. Do an ansible controller 2.9.XX with python 2.7.X can manage nodes where python 3.8 is installed? The answer is not clear here: https://do…

---

## [How to test Windows roles on arm64 MacBook Pro?](https://forum.ansible.com/t/how-to-test-windows-roles-on-arm64-macbook-pro/36466)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 3\
**Last updated:** [March 21, 2022, 3:51pm UTC](https://forum.ansible.com/t/how-to-test-windows-roles-on-arm64-macbook-pro/36466 "2022-03-21T15:51:02Z")

</div>

Got a new arm64 MacBook Pro and “lost” my molecule testing for Windows. I used to use vagrant and virtualbox on my amd64 MacBook. How do I test Window roles now? Use EC2? Openstack?

---

## [{{dest\_file}} only shows output of one host instead of 2 as I was expecting](https://forum.ansible.com/t/dest-file-only-shows-output-of-one-host-instead-of-2-as-i-was-expecting/36441)

<div class="topic-metadata">

**Author:** [@johnc](https://forum.ansible.com/u/johnc)\
**Replies:** 1\
**Last updated:** [March 21, 2022, 3:39pm UTC](https://forum.ansible.com/t/dest-file-only-shows-output-of-one-host-instead-of-2-as-i-was-expecting/36441 "2022-03-21T15:39:28Z")

</div>

hi guys, the below playbook seems to work ok except when the ouput gets written to the local file, it only shows the output of one host instead of 2 that I was expecting. What needs to change so that I can have the outp…

---

## [Loading role vars without executing role](https://forum.ansible.com/t/loading-role-vars-without-executing-role/36417)

<div class="topic-metadata">

**Author:** [@Paul\_Manno](https://forum.ansible.com/u/Paul_Manno)\
**Replies:** 1\
**Last updated:** [March 21, 2022, 3:36pm UTC](https://forum.ansible.com/t/loading-role-vars-without-executing-role/36417 "2022-03-21T15:36:33Z")

</div>

Hello, A bit of background… I manage multiple applications. Each application has an ansible role defined for it. Sometimes, there is a playbook that is common to each application, but I would prefer to keep this playboo…

---

## [Returning from Bug#77302.  Bad file descriptor](https://forum.ansible.com/t/returning-from-bug-77302-bad-file-descriptor/36462)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 3:52pm UTC](https://forum.ansible.com/t/returning-from-bug-77302-bad-file-descriptor/36462 "2022-03-20T15:52:27Z")

</div>

Dear Team, I’m returning fro BUG # https://github.com/ansible/ansible/issues/77302 The issue is specific to a specific version of platform. On different version the code works fine. On RedHat linux 7.9 $ ansible --ve…

---

## [How to trace ansible internal AWS S3 API Call](https://forum.ansible.com/t/how-to-trace-ansible-internal-aws-s3-api-call/36464)

<div class="topic-metadata">

**Author:** [@bhoopathy\_k](https://forum.ansible.com/u/bhoopathy_k)\
**Replies:** 0\
**Last updated:** [March 20, 2022, 2:04pm UTC](https://forum.ansible.com/t/how-to-trace-ansible-internal-aws-s3-api-call/36464 "2022-03-20T14:04:03Z")

</div>

Hi Team, Before Posting my question let me explain the problem of statement and use cases. Usecase: We had a scenario to delete the AWS S3 buckets and recreate the same bucket in the next deployment run. Bucket was d…

---

## [dnf - install postgresql fom postgresql.org yum repos](https://forum.ansible.com/t/dnf-install-postgresql-fom-postgresql-org-yum-repos/36463)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 11:23am UTC](https://forum.ansible.com/t/dnf-install-postgresql-fom-postgresql-org-yum-repos/36463 "2022-03-20T11:23:29Z")

</div>

I want to install PostgreSQL & barman with Ansible from the PostgreSQL.org repositories on an almalinux lxd container. name: “install PostgreSQL-14 & barman @rhel via postgresql.org repos” hosts: barman-220320 tasks…

---

## [How to use include\_vars with a file needing elevated privileges](https://forum.ansible.com/t/how-to-use-include-vars-with-a-file-needing-elevated-privileges/36456)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 13\
**Last updated:** [March 18, 2022, 8:21pm UTC](https://forum.ansible.com/t/how-to-use-include-vars-with-a-file-needing-elevated-privileges/36456 "2022-03-18T20:21:08Z")

</div>

Let’s suppose I run a playbook as a non-root user and one task needs to include a vars file with only root permissions. The ansible.builtin.include\_vars official doc states that:the ‘become’ attribute is not supported b…

---

## [Has anyone used the community.general.facter module?](https://forum.ansible.com/t/has-anyone-used-the-community-general-facter-module/36458)

<div class="topic-metadata">

**Author:** [@Goran](https://forum.ansible.com/u/Goran)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 5:01pm UTC](https://forum.ansible.com/t/has-anyone-used-the-community-general-facter-module/36458 "2022-03-18T17:01:07Z")

</div>

I’m trying to access Puppet custom facts from a ansible playbook… But I’m out of my depth when it comes to decoding the JSON… Has anyone worked with the facter module and got some example to help me on my way? Somethi…

---

## [need to get info for /etc/passwd /etc/group](https://forum.ansible.com/t/need-to-get-info-for-etc-passwd-etc-group/36457)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 4:08pm UTC](https://forum.ansible.com/t/need-to-get-info-for-etc-passwd-etc-group/36457 "2022-03-18T16:08:04Z")

</div>

any idea how I would get this info from 20 esx servers? do I do a ad-hoc command or is there a module or playbook?

---

## [replace spaces in filenames](https://forum.ansible.com/t/replace-spaces-in-filenames/36455)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 12:35am UTC](https://forum.ansible.com/t/replace-spaces-in-filenames/36455 "2022-03-18T00:35:21Z")

</div>

hi everybody, I have a situation where I need to replace spaces in filenames on a large scale. Is there any way to do this with Ansible?

---

## [Parsing json output issues](https://forum.ansible.com/t/parsing-json-output-issues/36405)

<div class="topic-metadata">

**Author:** [@Delmiro\_Campelo](https://forum.ansible.com/u/Delmiro_Campelo)\
**Replies:** 7\
**Last updated:** [March 17, 2022, 10:29pm UTC](https://forum.ansible.com/t/parsing-json-output-issues/36405 "2022-03-17T22:29:26Z")

</div>

Hello Ansible friends, I’m hoping that you can provide some assistance here. I’m trying to parsed through json response from a web application, but I’m having some issues. The goal of this playbook is to display the sit…

---

## [Ansible Asynchronous actions](https://forum.ansible.com/t/ansible-asynchronous-actions/36454)

<div class="topic-metadata">

**Author:** [@Dip\_Giri](https://forum.ansible.com/u/Dip_Giri)\
**Replies:** 1\
**Last updated:** [March 17, 2022, 11:19am UTC](https://forum.ansible.com/t/ansible-asynchronous-actions/36454 "2022-03-17T11:19:59Z")

</div>

name: Check if database import is complete async\_status: jid: “{{ output.ansible\_job\_id }}” register: job\_result until: job\_result.finished delay: 10 retries: 25920 no\_log: true How to hide FAILED - RETRYING l…

---

## [question on LVM exists or not](https://forum.ansible.com/t/question-on-lvm-exists-or-not/36452)

<div class="topic-metadata">

**Author:** [@subbamma\_natla](https://forum.ansible.com/u/subbamma_natla)\
**Replies:** 1\
**Last updated:** [March 17, 2022, 1:45am UTC](https://forum.ansible.com/t/question-on-lvm-exists-or-not/36452 "2022-03-17T01:45:22Z")

</div>

why am I getting output when " when: ansible\_facts\[‘lvm’\]\[‘lvs’\]\[‘lv\_mysql’\] is not defined"

---

## [Passing json in shell module in ansible](https://forum.ansible.com/t/passing-json-in-shell-module-in-ansible/36363)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 10:13pm UTC](https://forum.ansible.com/t/passing-json-in-shell-module-in-ansible/36363 "2022-03-16T22:13:23Z")

</div>

Can you confirm that the exact same command (without single quotes around it) actually works from an interactive shell?

---

## [Automate shutdown command via Ansible playbook](https://forum.ansible.com/t/automate-shutdown-command-via-ansible-playbook/36451)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 10:02pm UTC](https://forum.ansible.com/t/automate-shutdown-command-via-ansible-playbook/36451 "2022-03-16T22:02:37Z")

</div>

I’m using ansible 2.9. There is no shutdown module available. I need to automate shutdown command via Ansible playbook. The target hosts are different distributions of CentOS servers - 7 or 6. When I ran the playbook to…

---

## [create a dict from a list (value of another dict)](https://forum.ansible.com/t/create-a-dict-from-a-list-value-of-another-dict/36443)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 3\
**Last updated:** [March 16, 2022, 8:45pm UTC](https://forum.ansible.com/t/create-a-dict-from-a-list-value-of-another-dict/36443 "2022-03-16T20:45:17Z")

</div>

Hi Team, My playbook role receive a dict coming from a lookup file, linux\_file\_list is the variable name of this lookup. This dict has only one key and some lists as value. Elements of these lists are dict too. Here’s …

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

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