# Ansible Project

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

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

**Page:** 57

---

## [Facing Issue Ansible Summary](https://forum.ansible.com/t/facing-issue-ansible-summary/36134)

<div class="topic-metadata">

**Author:** [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Replies:** 3\
**Last updated:** [December 20, 2021, 2:58pm UTC](https://forum.ansible.com/t/facing-issue-ansible-summary/36134 "2021-12-20T14:58:39Z")

</div>

Hi Team, Facing a very strange issue, my failed task output getting swapped with another task, in summary, we have done some modification in the callback module but never saw like this before, any suggestion

---

## [Prevent single failure killing playbook](https://forum.ansible.com/t/prevent-single-failure-killing-playbook/36109)

<div class="topic-metadata">

**Author:** [@Thomas\_Zarowski](https://forum.ansible.com/u/Thomas_Zarowski)\
**Replies:** 2\
**Last updated:** [December 20, 2021, 2:25pm UTC](https://forum.ansible.com/t/prevent-single-failure-killing-playbook/36109 "2021-12-20T14:25:35Z")

</div>

Hi All, I am currently running a playbook of several tasks, with serial:1 specified. If any of the tasks fail on host 1, I would like to still try them on host 2 and host 3 etc. Perhaps host 1 is just too busy at the t…

---

## [vars dictionary](https://forum.ansible.com/t/vars-dictionary/36132)

<div class="topic-metadata">

**Author:** [@Andrew\_K](https://forum.ansible.com/u/Andrew_K)\
**Replies:** 0\
**Last updated:** [December 20, 2021, 12:13am UTC](https://forum.ansible.com/t/vars-dictionary/36132 "2021-12-20T00:13:52Z")

</div>

Hello, A few years back I wrote a playbook that defined a variable like this: variable\_names: “{{ vars.keys() }}” The playbook is still working fine, but when I recently revisited it and tried to refresh myself on how…

---

## [export all ec2 tags](https://forum.ansible.com/t/export-all-ec2-tags/36129)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 1\
**Last updated:** [December 19, 2021, 5:49am UTC](https://forum.ansible.com/t/export-all-ec2-tags/36129 "2021-12-19T05:49:36Z")

</div>

Hi below playbook only export 1 ec2 tags Any please suggestions how can i modify to export all

---

## [Formatting facts as a variable list to another module](https://forum.ansible.com/t/formatting-facts-as-a-variable-list-to-another-module/36127)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 0\
**Last updated:** [December 17, 2021, 2:22pm UTC](https://forum.ansible.com/t/formatting-facts-as-a-variable-list-to-another-module/36127 "2021-12-17T14:22:53Z")

</div>

I’m trying to use the ansible-freeipa user module to disable a list of users (https://github.com/freeipa/ansible-freeipa/blob/master/README-user.md). The module accepts a list for its users parameter. I can get the list …

---

## [Need Help! JuniperJunosModule' object has no attribute '\_pyez\_conn'\\n"](https://forum.ansible.com/t/need-help-juniperjunosmodule-object-has-no-attribute-pyez-conn-n/36124)

<div class="topic-metadata">

**Author:** [@nishant\_shah](https://forum.ansible.com/u/nishant_shah)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 7:41am UTC](https://forum.ansible.com/t/need-help-juniperjunosmodule-object-has-no-attribute-pyez-conn-n/36124 "2021-12-17T07:41:40Z")

</div>

Hi, I am working on managing Juniper devices using Ansible. I am trying to add a new user using a playbook- PLAYBOOK-

---

## [Append DNS Suffix to some hosts in inventory](https://forum.ansible.com/t/append-dns-suffix-to-some-hosts-in-inventory/36125)

<div class="topic-metadata">

**Author:** [@Ian\_Batchelder](https://forum.ansible.com/u/Ian_Batchelder)\
**Replies:** 0\
**Last updated:** [December 17, 2021, 12:27am UTC](https://forum.ansible.com/t/append-dns-suffix-to-some-hosts-in-inventory/36125 "2021-12-17T00:27:19Z")

</div>

Q: append a specific DNS suffix to a subset of hosts via group\_vars? My organization uses a dynamic inventory generated from multiple sources that contains hosts with varying DNS suffixes listed by hostname only, not FQ…

---

## [Iterate host definitions into single file](https://forum.ansible.com/t/iterate-host-definitions-into-single-file/36089)

<div class="topic-metadata">

**Author:** [@chrisjx](https://forum.ansible.com/u/chrisjx)\
**Replies:** 7\
**Last updated:** [December 16, 2021, 8:40pm UTC](https://forum.ansible.com/t/iterate-host-definitions-into-single-file/36089 "2021-12-16T20:40:37Z")

</div>

I use ansible a lot for work and for my home lab. I love it. I keep needing an approach that so far has stumped me, so asking here for advice. I want to create a single file (an icinga2\_hosts.conf) which has a separate…

---

## [polymac filter for Ansible](https://forum.ansible.com/t/polymac-filter-for-ansible/36123)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 0\
**Last updated:** [December 16, 2021, 6:44pm UTC](https://forum.ansible.com/t/polymac-filter-for-ansible/36123 "2021-12-16T18:44:49Z")

</div>

In the Spirit of the Season, this group (“…to share information about cool things done with Ansible…”), and DRY (“don’t repeat yourself”), I’m happy to present to you polymac: a filter for macro expansion of Ansible d…

---

## [Formatting date in Ansible](https://forum.ansible.com/t/formatting-date-in-ansible/36119)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 11\
**Last updated:** [December 16, 2021, 4:05pm UTC](https://forum.ansible.com/t/formatting-date-in-ansible/36119 "2021-12-16T16:05:55Z")

</div>

In another thread, I was explaining how I’m getting a user’s information from our IPA server. I believe that the password expiration is already in a datetime format. I’d like to display it to the user via email in a more…

---

## [Need to Input Host information while run time in Ansible-playbook](https://forum.ansible.com/t/need-to-input-host-information-while-run-time-in-ansible-playbook/36122)

<div class="topic-metadata">

**Author:** [@Joel\_Justin](https://forum.ansible.com/u/Joel_Justin)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 12:48pm UTC](https://forum.ansible.com/t/need-to-input-host-information-while-run-time-in-ansible-playbook/36122 "2021-12-16T12:48:04Z")

</div>

Hi Team, Is there any ways to provide mulitple hosts value input while ansible-playbook runitme? I dont wish to provide the host value in static inventory , instead the hosts information should be fetched while runtime……

---

## [Ansible 4.10.0 has been released](https://forum.ansible.com/t/ansible-4-10-0-has-been-released/36110)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 4:30am UTC](https://forum.ansible.com/t/ansible-4-10-0-has-been-released/36110 "2021-12-16T04:30:02Z")

</div>

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

---

## [Infrastructure as Code - Manage Zabbix suggestions?](https://forum.ansible.com/t/infrastructure-as-code-manage-zabbix-suggestions/36120)

<div class="topic-metadata">

**Author:** [@Lucas\_Possamai](https://forum.ansible.com/u/Lucas_Possamai)\
**Replies:** 0\
**Last updated:** [December 15, 2021, 10:32pm UTC](https://forum.ansible.com/t/infrastructure-as-code-manage-zabbix-suggestions/36120 "2021-12-15T22:32:49Z")

</div>

Hi there. I’m deploying a brand new Zabbix cluster and wanted to do it the “right” way. I thought I would use Ansible to manage Zabbix, add hosts, add Media Types, Actions, etc, but the Ansible Zabbix Collection is not …

---

## [Implementar Firewall en ansible](https://forum.ansible.com/t/implementar-firewall-en-ansible/36118)

<div class="topic-metadata">

**Author:** [@Liliana\_Achig](https://forum.ansible.com/u/Liliana_Achig)\
**Replies:** 0\
**Last updated:** [December 15, 2021, 7:28pm UTC](https://forum.ansible.com/t/implementar-firewall-en-ansible/36118 "2021-12-15T19:28:04Z")

</div>

Por favor me pueden ayudar, tengo que desplegar un firewall en ansible mediante un playbooks, he intentado con algunas plantillas pero me sale como que no tuviera conexión entre la maquina central y el nodo host. Por fav…

---

## [How do I correctly pass NULL in set\_fact ?](https://forum.ansible.com/t/how-do-i-correctly-pass-null-in-set-fact/36113)

<div class="topic-metadata">

**Author:** [@Anthony\_Palermo](https://forum.ansible.com/u/Anthony_Palermo)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 7:25pm UTC](https://forum.ansible.com/t/how-do-i-correctly-pass-null-in-set-fact/36113 "2021-12-15T19:25:35Z")

</div>

I am not able to pass a NULL to community.mysql.mysql\_query but I think the issue is independent from the module mariadb sql table includes the following column date\_of\_removal datetime DEFAULT NULL, The Key Dict is …

---

## [How to make ansible ignore a group name in hosts file if it has no ip?](https://forum.ansible.com/t/how-to-make-ansible-ignore-a-group-name-in-hosts-file-if-it-has-no-ip/36117)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 5:16pm UTC](https://forum.ansible.com/t/how-to-make-ansible-ignore-a-group-name-in-hosts-file-if-it-has-no-ip/36117 "2021-12-15T17:16:26Z")

</div>

I have 2 groups created in hosts file as given below. I have a playbook consisting of 2 plays - the 1st play will be executed on IP in ‘ACTIVEFIREWALL’ group and 2nd play will be executed on IP in ‘STANDBYFIREWALL’ group…

---

## [Problem with delegate\_to to group in inventory](https://forum.ansible.com/t/problem-with-delegate-to-to-group-in-inventory/36112)

<div class="topic-metadata">

**Author:** [@Lucas\_Possamai](https://forum.ansible.com/u/Lucas_Possamai)\
**Replies:** 7\
**Last updated:** [December 15, 2021, 12:36pm UTC](https://forum.ansible.com/t/problem-with-delegate-to-to-group-in-inventory/36112 "2021-12-15T12:36:22Z")

</div>

Hi guys. I’m trying to use the “delegate\_to”, to only run a certain task to a group in my inventory. inventory file: \[zabbixprimary\] localhost ansible\_port=2235 # zabbix primary \[zabbixslave\] localhost ansible\_port…

---

## [Creating a fact array](https://forum.ansible.com/t/creating-a-fact-array/36082)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 19\
**Last updated:** [December 14, 2021, 3:58pm UTC](https://forum.ansible.com/t/creating-a-fact-array/36082 "2021-12-14T15:58:12Z")

</div>

I had another topic about using a fact in a loop, but since this question is slightly different, I figured I’d start a new topic. Background: I’m using the IPA API calls using the uri module to get a list of users in o…

---

## [Trying to build a dynamic query using netbox.nb\_lookup](https://forum.ansible.com/t/trying-to-build-a-dynamic-query-using-netbox-nb-lookup/36108)

<div class="topic-metadata">

**Author:** [@cwispy](https://forum.ansible.com/u/cwispy)\
**Replies:** 0\
**Last updated:** [December 14, 2021, 8:50am UTC](https://forum.ansible.com/t/trying-to-build-a-dynamic-query-using-netbox-nb-lookup/36108 "2021-12-14T08:50:38Z")

</div>

Hi Everyone, I am building some automation for our Netbox as the source of truth and using webhooks to fire off tasks for things like interface updates and vlan creation / deletions. The issue I have is that I am tryin…

---

## [Unknown error with arguments of roles](https://forum.ansible.com/t/unknown-error-with-arguments-of-roles/36104)

<div class="topic-metadata">

**Author:** [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Replies:** 5\
**Last updated:** [December 13, 2021, 4:21pm UTC](https://forum.ansible.com/t/unknown-error-with-arguments-of-roles/36104 "2021-12-13T16:21:29Z")

</div>

Hi all, I have a role lr\_nsupdate so: - - - - name: Show calling args debug: var: ca - name: Update DNS master server community.general.nsupdate: key\_name: '{{ key\_name }}' key\_algorithm: '{{ alg…

---

## [A general question about looping](https://forum.ansible.com/t/a-general-question-about-looping/36102)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 5\
**Last updated:** [December 13, 2021, 2:11pm UTC](https://forum.ansible.com/t/a-general-question-about-looping/36102 "2021-12-13T14:11:28Z")

</div>

I know I can do this from a shell script. I wonder if I can do this in pure Ansible. I was thinking about clusters recently. I know I can use the VM module to spin up a VM. If I wanted 1,000 nodes, how would I loop ins…

---

## [want to pass output of external shell script as variable to ansible task](https://forum.ansible.com/t/want-to-pass-output-of-external-shell-script-as-variable-to-ansible-task/36105)

<div class="topic-metadata">

**Author:** [@devopstrainer1](https://forum.ansible.com/u/devopstrainer1)\
**Replies:** 3\
**Last updated:** [December 13, 2021, 12:40pm UTC](https://forum.ansible.com/t/want-to-pass-output-of-external-shell-script-as-variable-to-ansible-task/36105 "2021-12-13T12:40:42Z")

</div>

I have a scenario where i have a shell script running externally which at every execution generates dynamic value(can’t add it as ansible task since it is not being executed on any inventory host), i want to use output o…

---

## [Updated ansible.spec for ansible-4.9.0 and ansible-5.0.1](https://forum.ansible.com/t/updated-ansible-spec-for-ansible-4-9-0-and-ansible-5-0-1/36103)

<div class="topic-metadata">

**Author:** [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Replies:** 0\
**Last updated:** [December 11, 2021, 11:17am UTC](https://forum.ansible.com/t/updated-ansible-spec-for-ansible-4-9-0-and-ansible-5-0-1/36103 "2021-12-11T11:17:56Z")

</div>

I've been working with ansible.spec files to support backporting ansible 4.9.0 and ansible 5.0.1 to RHEL 7 and 8, and also be compatible with Fedora releases. I've borrowed a few ideas from https://src.fedorapr…

---

## [Simple Shell Command not executing](https://forum.ansible.com/t/simple-shell-command-not-executing/36088)

<div class="topic-metadata">

**Author:** [@pradipto\_dasgupta](https://forum.ansible.com/u/pradipto_dasgupta)\
**Replies:** 6\
**Last updated:** [December 11, 2021, 8:31am UTC](https://forum.ansible.com/t/simple-shell-command-not-executing/36088 "2021-12-11T08:31:17Z")

</div>

Hello All, I am new in Ansible and was trying to execute a shell script in one of the remote hosts. The script runs fine when executed directly from the host. It is a simple shell script to create a folder. The shell s…

---

## [Ansible ssh-agent check](https://forum.ansible.com/t/ansible-ssh-agent-check/36099)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 8:48pm UTC](https://forum.ansible.com/t/ansible-ssh-agent-check/36099 "2021-12-10T20:48:33Z")

</div>

Hi, I’m using the ssh-agent in order to make Ansible aware of my identity during the setup. Unfortunately I mostly forget to run “ssh-add ~/.ssh/id\_rsa” before starting lengthy installations, so at some point later fo…

---

## [change advanced settings for standalone esxi hosts](https://forum.ansible.com/t/change-advanced-settings-for-standalone-esxi-hosts/36087)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 4\
**Last updated:** [December 10, 2021, 4:27pm UTC](https://forum.ansible.com/t/change-advanced-settings-for-standalone-esxi-hosts/36087 "2021-12-10T16:27:54Z")

</div>

I am trying to change advanced settings for standalone esxi host is the possible without vcenter? I looked at name: Manage multiple settings for an ESXi host community.vmware.vmware\_host\_config\_manager: hostname: ‘{{…

---

## [Ansible pass result of a task as an input to another task in role](https://forum.ansible.com/t/ansible-pass-result-of-a-task-as-an-input-to-another-task-in-role/36101)

<div class="topic-metadata">

**Author:** [@RajG](https://forum.ansible.com/u/RajG)\
**Replies:** 0\
**Last updated:** [December 10, 2021, 2:38pm UTC](https://forum.ansible.com/t/ansible-pass-result-of-a-task-as-an-input-to-another-task-in-role/36101 "2021-12-10T14:38:20Z")

</div>

This is my Ansible playbook … roles/myrole ├── defaults │ └── main.yml ├── tasks │ ├── add\_user\_to\_group.yml │ ├── create\_user.yml │ └── main.yml ├── templates │ ├── add\_user\_to\_group\_data.j2 │ └── create\_user\_data.j2 └…

---

## [Ansible SAML Login - F5 Identity Provider (idP)](https://forum.ansible.com/t/ansible-saml-login-f5-identity-provider-idp/36100)

<div class="topic-metadata">

**Author:** [@Harry\_Clendening](https://forum.ansible.com/u/Harry_Clendening)\
**Replies:** 0\
**Last updated:** [December 10, 2021, 2:07pm UTC](https://forum.ansible.com/t/ansible-saml-login-f5-identity-provider-idp/36100 "2021-12-10T14:07:28Z")

</div>

Hello, We currently have Ansible setup with SAML login via Microsoft ADFS. This works fine. We are looking to migrate away from ADFS and start using the F5 BIG-IP as the Identity Provider (idP). With the F5 setup as th…

---

## [Registered variable returns expected value but task is skipped](https://forum.ansible.com/t/registered-variable-returns-expected-value-but-task-is-skipped/36097)

<div class="topic-metadata">

**Author:** [@Lucas\_Possamai](https://forum.ansible.com/u/Lucas_Possamai)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 8:17am UTC](https://forum.ansible.com/t/registered-variable-returns-expected-value-but-task-is-skipped/36097 "2021-12-10T08:17:24Z")

</div>

I'm trying to only run a task if the previous task returned a 0 stdout. - name: Check if efs-utils is already installed ansible.builtin.shell: dpkg -l | grep efs-utils | wc -l register: is\_installed ignore\_errors: "{…

---

## [Copy folder from one host to another](https://forum.ansible.com/t/copy-folder-from-one-host-to-another/36098)

<div class="topic-metadata">

**Author:** [@Lucas\_Possamai](https://forum.ansible.com/u/Lucas_Possamai)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 6:17am UTC](https://forum.ansible.com/t/copy-folder-from-one-host-to-another/36098 "2021-12-10T06:17:35Z")

</div>

Hi all, I need to copy the content of a folder from one remote host to another remote host. The copy command needs to be executed as user “postgres”. Folder to be copied from source: /data/postgresql/pg\_xlog/ Destinat…

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

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