# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=94

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

**Page:** 95

---

## [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…

---

## [Problems importing an inventory using awx-manage](https://forum.ansible.com/t/problems-importing-an-inventory-using-awx-manage/36114)

<div class="topic-metadata">

**Author:** [@Andrew\_C](https://forum.ansible.com/u/Andrew_C)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 1:04pm UTC](https://forum.ansible.com/t/problems-importing-an-inventory-using-awx-manage/36114 "2021-12-15T13:04:07Z")

</div>

I want to import an inventory file into AWX 19.05 but the command fails: $ kubectl cp /tmp/inventory awx/awx-demo-786447d7bc-h4jhj:/tmp/inventory -c awx-demo-task $ awx-manage inventory\_import --source=/tmp/inventory -…

---

## [Ansible AWX and gitlab integration](https://forum.ansible.com/t/ansible-awx-and-gitlab-integration/36034)

<div class="topic-metadata">

**Author:** [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Replies:** 4\
**Last updated:** [December 15, 2021, 12:46pm UTC](https://forum.ansible.com/t/ansible-awx-and-gitlab-integration/36034 "2021-12-15T12:46:27Z")

</div>

Hello All! Hopefully it is right place to as this, but im planning to move all my local playbooks, roles and inventory to gitlab and sync them with Ansible AWX. Does anyone have any guidence, recommendations or best pra…

---

## [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…

---

## [A cleaner and less alpha way to install AWX](https://forum.ansible.com/t/a-cleaner-and-less-alpha-way-to-install-awx/36111)

<div class="topic-metadata">

**Author:** [@Medicineman25](https://forum.ansible.com/u/Medicineman25)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 9:58am UTC](https://forum.ansible.com/t/a-cleaner-and-less-alpha-way-to-install-awx/36111 "2021-12-15T09:58:11Z")

</div>

Hey all, I’m looking for a less intensive and simpler way to install AWX, so that I can manage a couple of Proxmox nodes. This will run as one application inside an LXC container, so running up and managing (not to ment…

---

## [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…

---

## [CVE-2021-44228](https://forum.ansible.com/t/cve-2021-44228/36107)

<div class="topic-metadata">

**Author:** [@tapan\_behera](https://forum.ansible.com/u/tapan_behera)\
**Replies:** 1\
**Last updated:** [December 14, 2021, 2:43pm UTC](https://forum.ansible.com/t/cve-2021-44228/36107 "2021-12-14T14:43:12Z")

</div>

Hi Team, Is there any impact to AWX tower due Apache Log4j Zero-Day Vulnerability(CVE-2021-44228). Thanks

---

## [Accessing Servers through Jumpbox](https://forum.ansible.com/t/accessing-servers-through-jumpbox/36106)

<div class="topic-metadata">

**Author:** [@Danie\_Brink](https://forum.ansible.com/u/Danie_Brink)\
**Replies:** 1\
**Last updated:** [December 14, 2021, 1:27pm UTC](https://forum.ansible.com/t/accessing-servers-through-jumpbox/36106 "2021-12-14T13:27:01Z")

</div>

Hello all I hope I can get some guidance here regarding my problem reaching my AWX nodes via a jump/bastion server. AWX Version : AWX 17.1.0 OS : Ubuntu 20.04 On my AWX host I tested the following way if I can reach …

---

## [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…

---

## [include\_tasks and noop](https://forum.ansible.com/t/include-tasks-and-noop/36096)

<div class="topic-metadata">

**Author:** [@Omar](https://forum.ansible.com/u/Omar)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 1:06am UTC](https://forum.ansible.com/t/include-tasks-and-noop/36096 "2021-12-10T01:06:22Z")

</div>

This is potential feature idea. I’m developing a small collection and as an extension points I expose various variable that refer to ‘task files’. For example, I have a role named prepare with a task file named \_yum.yml …

---

## [Ansible and SELinux Issues](https://forum.ansible.com/t/ansible-and-selinux-issues/36075)

<div class="topic-metadata">

**Author:** [@Ryan\_P](https://forum.ansible.com/u/Ryan_P)\
**Replies:** 1\
**Last updated:** [December 9, 2021, 11:59pm UTC](https://forum.ansible.com/t/ansible-and-selinux-issues/36075 "2021-12-09T23:59:21Z")

</div>

Hi all, My Ansible server has lost the ability to login to any of my hosts (itself included) and I am hoping others have had a similar issue. The server in question is a RHEL7 server that is required to be configured a…

---

## [Namespaced vs Clusterscoped Operator Install ?](https://forum.ansible.com/t/namespaced-vs-clusterscoped-operator-install/36095)

<div class="topic-metadata">

**Author:** [@Dane\_DeValcourt](https://forum.ansible.com/u/Dane_DeValcourt)\
**Replies:** 0\
**Last updated:** [December 9, 2021, 10:01pm UTC](https://forum.ansible.com/t/namespaced-vs-clusterscoped-operator-install/36095 "2021-12-09T22:01:51Z")

</div>

I understand that Operator needs to be installed and uses cluster scopes for: customresourcedefinitions, clusterroles, and clusterrole bindings as those inherently are all cluster-scoped However this PR: https://github…

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

[Next page](https://forum.ansible.com/c/archives/31.md?page=95)
