# Ansible Project

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

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

**Page:** 62

---

## [DNS module](https://forum.ansible.com/t/dns-module/35893)

<div class="topic-metadata">

**Author:** [@fahad.riaz1718](https://forum.ansible.com/u/fahad.riaz1718)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 4:42pm UTC](https://forum.ansible.com/t/dns-module/35893 "2021-10-18T16:42:25Z")

</div>

All, I am working on a conversion of a puppet module to ansible playbook but I’m having hard time understanding what the module is doing and how can I convert this over to playbook. Any suggestions or help is appreciat…

---

## [windows patching playbook](https://forum.ansible.com/t/windows-patching-playbook/34828)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 4\
**Last updated:** [October 18, 2021, 3:21pm UTC](https://forum.ansible.com/t/windows-patching-playbook/34828 "2021-10-18T15:21:15Z")

</div>

i need a windows patching playbook to patch mostly windows servers need to install al critical and security updates and auto reboot also need a report status back on which host failed or what was installed and not inst…

---

## [Help needed to alter my code to achieve when condition in loop in stdout](https://forum.ansible.com/t/help-needed-to-alter-my-code-to-achieve-when-condition-in-loop-in-stdout/35891)

<div class="topic-metadata">

**Author:** [@Hareesh\_Vn](https://forum.ansible.com/u/Hareesh_Vn)\
**Replies:** 2\
**Last updated:** [October 18, 2021, 3:04pm UTC](https://forum.ansible.com/t/help-needed-to-alter-my-code-to-achieve-when-condition-in-loop-in-stdout/35891 "2021-10-18T15:04:38Z")

</div>

Hi Team I am installing Mongo on n number of nodes. I have written ansible code for it and its working. When it comes to beatification, like Pass the result of installation to variable (example: result). So this resu…

---

## [installing postgresql -- permission problem with initdb](https://forum.ansible.com/t/installing-postgresql-permission-problem-with-initdb/35886)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 2:37pm UTC](https://forum.ansible.com/t/installing-postgresql-permission-problem-with-initdb/35886 "2021-10-18T14:37:09Z")

</div>

I have a task to create an initial postgres databa (initdb) in a playbook installing postgresql from a tar.gz archive on a centos7 target

---

## [Need info on the commands used by ios\_facts module](https://forum.ansible.com/t/need-info-on-the-commands-used-by-ios-facts-module/35868)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 8:26am UTC](https://forum.ansible.com/t/need-info-on-the-commands-used-by-ios-facts-module/35868 "2021-10-18T08:26:55Z")

</div>

We plan to do ios upgrade and I am using ios\_facts module to compare/manipulate info. There is a team to which we have given limited access to network devices and need to know what command does ios\_facts module execute …

---

## [tell 'service' module to continue with playbook, if service isn't found](https://forum.ansible.com/t/tell-service-module-to-continue-with-playbook-if-service-isnt-found/35878)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 12\
**Last updated:** [October 17, 2021, 5:34pm UTC](https://forum.ansible.com/t/tell-service-module-to-continue-with-playbook-if-service-isnt-found/35878 "2021-10-17T17:34:21Z")

</div>

I am trying to install postgresql via a playbook and want to make sure the service is not running prior installation on the target (rhel7/8 & debian10) machines. However my task below name: stop postgresql.service fro…

---

## [apt autoclean/autoremove not working?](https://forum.ansible.com/t/apt-autoclean-autoremove-not-working/35885)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [October 17, 2021, 7:28am UTC](https://forum.ansible.com/t/apt-autoclean-autoremove-not-working/35885 "2021-10-17T07:28:56Z")

</div>

Hii On my Debian (11) systems I end up having many deb files in /var/cache/apt/archives, and I’m trying to get the apt module to clean those up at the end of a playbook. But I can’t get this to work using the documente…

---

## [How to apply/run playbook target at a specific group of machines in the ini-style inventory](https://forum.ansible.com/t/how-to-apply-run-playbook-target-at-a-specific-group-of-machines-in-the-ini-style-inventory/35884)

<div class="topic-metadata">

**Author:** [@James\_Ngo](https://forum.ansible.com/u/James_Ngo)\
**Replies:** 5\
**Last updated:** [October 16, 2021, 9:18pm UTC](https://forum.ansible.com/t/how-to-apply-run-playbook-target-at-a-specific-group-of-machines-in-the-ini-style-inventory/35884 "2021-10-16T21:18:03Z")

</div>

Hello everyone, I am a pretty new face to Ansible. I can follow instruction pretty good however, I need your help with the following scenario. I created an .INI style inventory file called “hosts”, with basically categ…

---

## [reload command not working properly for asa\_command module](https://forum.ansible.com/t/reload-command-not-working-properly-for-asa-command-module/35883)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [October 16, 2021, 7:27am UTC](https://forum.ansible.com/t/reload-command-not-working-properly-for-asa-command-module/35883 "2021-10-16T07:27:45Z")

</div>

I wrote below script to reload ASA firewall. The script reloads ASA firewall but the fact that reload has happened does not get passed back to ansible. So the script waits forever until command\_timeout occurs. I tried so…

---

## [Variables containing -](https://forum.ansible.com/t/variables-containing/35882)

<div class="topic-metadata">

**Author:** [@Anil\_Kommareddy](https://forum.ansible.com/u/Anil_Kommareddy)\
**Replies:** 0\
**Last updated:** [October 16, 2021, 6:57am UTC](https://forum.ansible.com/t/variables-containing/35882 "2021-10-16T06:57:42Z")

</div>

Hi All, I am retrieving data from storage array. The results are in json format. These results contain variables with “-” i.e. minus symbol in their names. When I try to access data in those variables, I get an error “M…

---

## [Issue ----  Module Failure\\nSee stdout/stderr](https://forum.ansible.com/t/issue-module-failure-nsee-stdout-stderr/35875)

<div class="topic-metadata">

**Author:** [@Abhijot\_Singh\_Kathur](https://forum.ansible.com/u/Abhijot_Singh_Kathur)\
**Replies:** 7\
**Last updated:** [October 15, 2021, 8:27pm UTC](https://forum.ansible.com/t/issue-module-failure-nsee-stdout-stderr/35875 "2021-10-15T20:27:22Z")

</div>

Hey Guys, I need some assistance on the below error. I’ve tried everything but I’m not able to resolve the same. TASK \[Join to Domain\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Template expansion](https://forum.ansible.com/t/template-expansion/35880)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 12:54pm UTC](https://forum.ansible.com/t/template-expansion/35880 "2021-10-15T12:54:30Z")

</div>

When you use the template module, where does it do all the jinjaness (variable expansion, loop, etc): in the host you are running ansible from (server?) or the one you are applying it to (client)?

---

## [the task includes an option with an undefined variable. The error was: 'dict object' has no attribute](https://forum.ansible.com/t/the-task-includes-an-option-with-an-undefined-variable-the-error-was-dict-object-has-no-attribute/35876)

<div class="topic-metadata">

**Author:** [@Bariou\_Alarou](https://forum.ansible.com/u/Bariou_Alarou)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 12:35am UTC](https://forum.ansible.com/t/the-task-includes-an-option-with-an-undefined-variable-the-error-was-dict-object-has-no-attribute/35876 "2021-10-15T00:35:54Z")

</div>

Hello Team, I have spent a lot of time trying troubleshoot this issue. I have a roles with defined variable This is inside defaults/main.yml nessus\_agent\_package: redhat7: al2: ./files/NessusAgent-8.3.1-amzn.x86\_64…

---

## [New releases: ansible-core 2.11.6, ansible-base 2.10.15, ansible 2.9.27](https://forum.ansible.com/t/new-releases-ansible-core-2-11-6-ansible-base-2-10-15-ansible-2-9-27/35874)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 8:27pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-11-6-ansible-base-2-10-15-ansible-2-9-27/35874 "2021-10-14T20:27:16Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.11.6 ansible-base 2.10.15 ansible 2.9.27 How to get it

---

## [Listing installed packages](https://forum.ansible.com/t/listing-installed-packages/35871)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 5:54pm UTC](https://forum.ansible.com/t/listing-installed-packages/35871 "2021-10-14T17:54:04Z")

</div>

I know I can use the package\_facts module to retrieve a list of installed packages, but I’m having trouble formatting these. I’d like to format it similar to the following: Package: Version: Currently I’m doing the f…

---

## [centos7 target - sudden python interpreter trouble](https://forum.ansible.com/t/centos7-target-sudden-python-interpreter-trouble/35867)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 15\
**Last updated:** [October 14, 2021, 1:30pm UTC](https://forum.ansible.com/t/centos7-target-sudden-python-interpreter-trouble/35867 "2021-10-14T13:30:55Z")

</div>

I am running a playbook to install postgresql against a centos7 (python 2.75) target and am getting this error about a bad python interpreter. I try to solve this via the inventory.yml all: hosts: \[hostname\]: # cento…

---

## [Variable is not recognized](https://forum.ansible.com/t/variable-is-not-recognized/35869)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 12:20pm UTC](https://forum.ansible.com/t/variable-is-not-recognized/35869 "2021-10-14T12:20:08Z")

</div>

hm, if it wasn’t too good to be true I’d simply say variable {{ webroot }} exists, variable {{ root }} doesn’t

---

## [Help me to achive this task](https://forum.ansible.com/t/help-me-to-achive-this-task/35854)

<div class="topic-metadata">

**Author:** [@Dineshbabu\_Shankar](https://forum.ansible.com/u/Dineshbabu_Shankar)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 9:39am UTC](https://forum.ansible.com/t/help-me-to-achive-this-task/35854 "2021-10-14T09:39:00Z")

</div>

My requiremnt , i need to add the disk to vms in vcenter by passing vm name, datastorename , and disk\_size via csv file , with the following condition. datastore which i am providing the csv should be in facts colle…

---

## [Getting Permission Denied Error](https://forum.ansible.com/t/getting-permission-denied-error/35858)

<div class="topic-metadata">

**Author:** [@Anirban\_Das](https://forum.ansible.com/u/Anirban_Das)\
**Replies:** 7\
**Last updated:** [October 14, 2021, 9:29am UTC](https://forum.ansible.com/t/getting-permission-denied-error/35858 "2021-10-14T09:29:22Z")

</div>

Hi All, I’m trying to configure few ec2 instances using ansible, hence I created dynamic inventory in controller and playbook both. but I found that I need to pass private key where I’m little bit confused. Does Priv…

---

## [ansible python issue](https://forum.ansible.com/t/ansible-python-issue/35865)

<div class="topic-metadata">

**Author:** [@Marlon\_Frank](https://forum.ansible.com/u/Marlon_Frank)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 9:15am UTC](https://forum.ansible.com/t/ansible-python-issue/35865 "2021-10-14T09:15:33Z")

</div>

hi team, I’ve recently logged an issue on githut however it was close by with clear direction on what to do other than saying install kubernetes client python… that was already installed as described by me on that occa…

---

## [Ansible 4.7.0 has been released](https://forum.ansible.com/t/ansible-4-7-0-has-been-released/35864)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [October 13, 2021, 9:22pm UTC](https://forum.ansible.com/t/ansible-4-7-0-has-been-released/35864 "2021-10-13T21:22:33Z")

</div>

Hi all, We're happy to announce that the ansible-4.7.0 package has been released to PyPi: https://pypi.org/project/ansible/4.7.0/ This new version contains bug fixes as well as new, backwards compatible features in …

---

## [Use Ansible variable in AWS Cloudformation template](https://forum.ansible.com/t/use-ansible-variable-in-aws-cloudformation-template/35852)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 4\
**Last updated:** [October 13, 2021, 2:40pm UTC](https://forum.ansible.com/t/use-ansible-variable-in-aws-cloudformation-template/35852 "2021-10-13T14:40:21Z")

</div>

$ ansible-playbook -e variable=value

---

## [Launch node server in background](https://forum.ansible.com/t/launch-node-server-in-background/35855)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 18\
**Last updated:** [October 12, 2021, 7:26pm UTC](https://forum.ansible.com/t/launch-node-server-in-background/35855 "2021-10-12T19:26:38Z")

</div>

Hmm. I must be making again something fundamentally wrong :slight\_smile: Trying to start a simple node server app into background name: Start server (run as non-privileged user) tags: server shell: | nohup node ser…

---

## [How to use variable in path](https://forum.ansible.com/t/how-to-use-variable-in-path/35856)

<div class="topic-metadata">

**Author:** [@Sanjay\_Chakraborty](https://forum.ansible.com/u/Sanjay_Chakraborty)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 5:21pm UTC](https://forum.ansible.com/t/how-to-use-variable-in-path/35856 "2021-10-12T17:21:03Z")

</div>

I need to disable ipv6 on the network interface config file. The interface name is not the same for all environments. How I can achieve that ? playbook :

---

## [lineinfile - how to hit them all?](https://forum.ansible.com/t/lineinfile-how-to-hit-them-all/35846)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 2:28pm UTC](https://forum.ansible.com/t/lineinfile-how-to-hit-them-all/35846 "2021-10-12T14:28:53Z")

</div>

My /etc/ssh/sshd\_config after initial installation contains these two lines for some reasons: #PasswordAuthentication yes PasswordAuthentication yes I’m trying to change BOTH to “no” with this statement: name: SSH -…

---

## [lvol module - depency problem parted/gparted](https://forum.ansible.com/t/lvol-module-depency-problem-parted-gparted/35848)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [October 12, 2021, 1:14pm UTC](https://forum.ansible.com/t/lvol-module-depency-problem-parted-gparted/35848 "2021-10-12T13:14:12Z")

</div>

I have a task to resize a logical volume on a rhel8 target with the lvol module. I get prompted ‘Failed to find required executable parted’ trying to install it with dnf module tells me ‘parted does not exist’ t…

---

## [fetching hostvar for use elsewhere](https://forum.ansible.com/t/fetching-hostvar-for-use-elsewhere/35853)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 12:37pm UTC](https://forum.ansible.com/t/fetching-hostvar-for-use-elsewhere/35853 "2021-10-12T12:37:37Z")

</div>

Hi We’re using our ansible playbook/vars/etc also for other things/scripts/ Sometimes we need those scripts to fetch a hostvar. Currently i’m using some kludgy construct like: ANSIBLE\_STDOUT\_CALLBACK=json ansible -m …

---

## [Use Ansible variable in AWS Cloudformation template](https://forum.ansible.com/t/use-ansible-variable-in-aws-cloudformation-template/35851)

<div class="topic-metadata">

**Author:** [@Tony1](https://forum.ansible.com/u/Tony1)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 12:04pm UTC](https://forum.ansible.com/t/use-ansible-variable-in-aws-cloudformation-template/35851 "2021-10-12T12:04:18Z")

</div>

Hi, I am trying to use an ansible variable in my AWS cloudformation template, see below red where I am trying to use the variable from Ansible. Parameters: Environment: Description: ‘Environment definition.’ Type: ‘…

---

## [Announcing Ansible-Trace: understand task duration and playbook critical paths](https://forum.ansible.com/t/announcing-ansible-trace-understand-task-duration-and-playbook-critical-paths/35839)

<div class="topic-metadata">

**Author:** [@Mark\_Hansen](https://forum.ansible.com/u/Mark_Hansen)\
**Replies:** 1\
**Last updated:** [October 11, 2021, 12:21pm UTC](https://forum.ansible.com/t/announcing-ansible-trace-understand-task-duration-and-playbook-critical-paths/35839 "2021-10-11T12:21:47Z")

</div>

Hi there, I have some slow Ansible playbooks, and I was wondering where the time goes. So I made a Callback Plugin that outputs Chrome’s “Trace Event Format” for visualising the parallel execution and critical path in h…

---

## [Rolling upgrades based on dynamic-attribute](https://forum.ansible.com/t/rolling-upgrades-based-on-dynamic-attribute/35843)

<div class="topic-metadata">

**Author:** [@Radu\_Stoenescu](https://forum.ansible.com/u/Radu_Stoenescu)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 8:49am UTC](https://forum.ansible.com/t/rolling-upgrades-based-on-dynamic-attribute/35843 "2021-10-11T08:49:32Z")

</div>

I’m trying to manage a set of hosts that make up a dynamic inventory with Ansible. Based on the contents of a database that I can query from Ansible code - these hosts get assigned numbers is a sequence 0,1,2 … I would…

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

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