# Ansible Project

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

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

**Page:** 58

---

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

---

## [New releases: ansible-core 2.12.1, ansible-core 2.11.7, ansible-base 2.10.16](https://forum.ansible.com/t/new-releases-ansible-core-2-12-1-ansible-core-2-11-7-ansible-base-2-10-16/36093)

<div class="topic-metadata">

**Author:** [@Matt\_Davis2](https://forum.ansible.com/u/Matt_Davis2)\
**Replies:** 0\
**Last updated:** [December 9, 2021, 8:05pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-12-1-ansible-core-2-11-7-ansible-base-2-10-16/36093 "2021-12-09T20:05:45Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.12.1 ansible-core 2.11.7 ansible-base 2.10.16 How to get it

---

## [Issue on Ansible Playbook Run When Calling WinRM - ConnectionError ('Connection aborted.', OSError("(104, 'ECONNRESET')",))](https://forum.ansible.com/t/issue-on-ansible-playbook-run-when-calling-winrm-connectionerror-connection-aborted-oserror-104-econnreset/36091)

<div class="topic-metadata">

**Author:** [@Panos\_Eracleous](https://forum.ansible.com/u/Panos_Eracleous)\
**Replies:** 2\
**Last updated:** [December 9, 2021, 2:51pm UTC](https://forum.ansible.com/t/issue-on-ansible-playbook-run-when-calling-winrm-connectionerror-connection-aborted-oserror-104-econnreset/36091 "2021-12-09T14:51:03Z")

</div>

We’re currently using Ansible 2.9.15 through Tower 3.8.0. We’re seeing an issue when targeting new builds on Window Server 2016 through WinRM. The issue happens at the start of the Playbook and soon after a Join Domain …

---

## [Update EC2 tags - just change case](https://forum.ansible.com/t/update-ec2-tags-just-change-case/36086)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 1\
**Last updated:** [December 9, 2021, 5:31am UTC](https://forum.ansible.com/t/update-ec2-tags-just-change-case/36086 "2021-12-09T05:31:49Z")

</div>

Hi i have an ec2 with multiple volumes & each vol has tag the ec2 volumes tag need to keep same just change case , in my case making all lower will help eg current tag abc\_Prod\_root\_vol1 abc\_Prod\_root\_vol2 abc\_Prod…

---

## [Run shell script that needs user input](https://forum.ansible.com/t/run-shell-script-that-needs-user-input/36085)

<div class="topic-metadata">

**Author:** [@Aleksandar\_Ilic](https://forum.ansible.com/u/Aleksandar_Ilic)\
**Replies:** 2\
**Last updated:** [December 8, 2021, 10:33pm UTC](https://forum.ansible.com/t/run-shell-script-that-needs-user-input/36085 "2021-12-08T22:33:47Z")

</div>

Hello everyone, I have been trying to find a solution to run a sh script via ansible but the script requires users that run the script to enter username and password. Is it possible to pass those vars via ansible? Reg…

---

## [Ability for a host to declare which roles should be applied to it?](https://forum.ansible.com/t/ability-for-a-host-to-declare-which-roles-should-be-applied-to-it/36084)

<div class="topic-metadata">

**Author:** [@Philip\_Kauffman](https://forum.ansible.com/u/Philip_Kauffman)\
**Replies:** 4\
**Last updated:** [December 8, 2021, 8:24pm UTC](https://forum.ansible.com/t/ability-for-a-host-to-declare-which-roles-should-be-applied-to-it/36084 "2021-12-08T20:24:58Z")

</div>

I’d like to start a discussion on the ability to define roles to import\_role from within host\_vars. Instead of only defining those roles statically in a playbook. My goal is to be able to give an inventory\_host the abil…

---

## [CS Falcon Windows Install Issue](https://forum.ansible.com/t/cs-falcon-windows-install-issue/36069)

<div class="topic-metadata">

**Author:** [@Bone\_Cheeta](https://forum.ansible.com/u/Bone_Cheeta)\
**Replies:** 2\
**Last updated:** [December 8, 2021, 7:31pm UTC](https://forum.ansible.com/t/cs-falcon-windows-install-issue/36069 "2021-12-08T19:31:52Z")

</div>

Hello, using the Crowdstrike Falcon sensor installation (https://github.com/CrowdStrike/ansible\_collection\_falcon) and this works just fine on Linux, but did require the ansible.windows collection along with it. Running…

---

## [Error in RHEL System Roles \[SELinux\]](https://forum.ansible.com/t/error-in-rhel-system-roles-selinux/36083)

<div class="topic-metadata">

**Author:** [@Taha\_Adel](https://forum.ansible.com/u/Taha_Adel)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 5:05pm UTC](https://forum.ansible.com/t/error-in-rhel-system-roles-selinux/36083 "2021-12-08T17:05:12Z")

</div>

Hi Team, I’m trying to practice rhel-system-roles and when I run the selinux roles, I’m getting the following error message fatal: \[ansible-01.example.com\]: FAILED! =\> {“msg”: “The conditional check ‘ansible\_python\_ver…

---

## [ansible.builtin.shell not returning output of script](https://forum.ansible.com/t/ansible-builtin-shell-not-returning-output-of-script/36079)

<div class="topic-metadata">

**Author:** [@dimple\_rohara](https://forum.ansible.com/u/dimple_rohara)\
**Replies:** 5\
**Last updated:** [December 8, 2021, 4:01pm UTC](https://forum.ansible.com/t/ansible-builtin-shell-not-returning-output-of-script/36079 "2021-12-08T16:01:59Z")

</div>

Hi, I am using ansible.builtin.shell, but it’s returning no output of the execution on console. I am using it like this: ansible.builtin.shell: "{{sources\_dir}}/scripts/tomcat/upgrade.sh {{tmp\_dir}}/{{item.name}}.props…

---

## [win\_security\_policy and Registry Values failing](https://forum.ansible.com/t/win-security-policy-and-registry-values-failing/36080)

<div class="topic-metadata">

**Author:** [@paul\_harford](https://forum.ansible.com/u/paul_harford)\
**Replies:** 0\
**Last updated:** [December 8, 2021, 9:54am UTC](https://forum.ansible.com/t/win-security-policy-and-registry-values-failing/36080 "2021-12-08T09:54:41Z")

</div>

hey Ansible group we are trying to set a registry value using win\_security\_policy name: Strong Session Key win\_security\_policy: section: Registry Values key: RequireStrongKey any value we try to set using Registry…

---

## [Parted plugin fails after first run](https://forum.ansible.com/t/parted-plugin-fails-after-first-run/36074)

<div class="topic-metadata">

**Author:** [@Lucas\_Possamai](https://forum.ansible.com/u/Lucas_Possamai)\
**Replies:** 9\
**Last updated:** [December 7, 2021, 8:06pm UTC](https://forum.ansible.com/t/parted-plugin-fails-after-first-run/36074 "2021-12-07T20:06:20Z")

</div>

Hi all. I'm having issues with the parted plugin. It works when I run the playbook for the first time, but if I try to run again, it will fail. I actually want this task to be run only once, but the run\_once parameter …

---

## [Failed to connect to the host via ssh: Connection timed out during banner exchange](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-connection-timed-out-during-banner-exchange/36078)

<div class="topic-metadata">

**Author:** [@Justin\_Seiser](https://forum.ansible.com/u/Justin_Seiser)\
**Replies:** 0\
**Last updated:** [December 7, 2021, 8:01pm UTC](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-connection-timed-out-during-banner-exchange/36078 "2021-12-07T20:01:22Z")

</div>

We have 2 environments, both showing the same problem. ENV 1. Jenkins worker is in a Docker Container, running on a linux server ENV 2. Jenkins worker is a K8s pod. The container the work is being ran from is the same…

---

## [Accessing contents of a fact in a loop](https://forum.ansible.com/t/accessing-contents-of-a-fact-in-a-loop/36043)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 12\
**Last updated:** [December 7, 2021, 6:21pm UTC](https://forum.ansible.com/t/accessing-contents-of-a-fact-in-a-loop/36043 "2021-12-07T18:21:58Z")

</div>

I am traversing our IPA server to get find all users, then I want to loop through all of them to get their password expiration date. I use the IPA API via the uri module and register the variable, but no matter what I tr…

---

## [Run Repadmin on the Domain controller from ansible task server](https://forum.ansible.com/t/run-repadmin-on-the-domain-controller-from-ansible-task-server/36076)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 2\
**Last updated:** [December 7, 2021, 4:40pm UTC](https://forum.ansible.com/t/run-repadmin-on-the-domain-controller-from-ansible-task-server/36076 "2021-12-07T16:40:02Z")

</div>

I am trying to figure out, how to run repadmin on the Domain controller itself: name: Sync Active Directory With New Changes ansible.windows.win\_shell: repadmin /syncall ‘{{ server.domain }}’ /AdeP become: yes becom…

---

## [Ansible 5.0.0 has been released](https://forum.ansible.com/t/ansible-5-0-0-has-been-released/36053)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 7\
**Last updated:** [December 6, 2021, 5:33pm UTC](https://forum.ansible.com/t/ansible-5-0-0-has-been-released/36053 "2021-12-06T17:33:29Z")

</div>

Hi all, We're happy to announce that the Ansible 5.0.0 package has been released ! Ansible 5.0.0 includes the newly released ansible-core 2.12 as well as a curated set of Ansible collections to provide a vast number o…

---

## [gcp\_cloudfunctions\_cloud\_function with function service account](https://forum.ansible.com/t/gcp-cloudfunctions-cloud-function-with-function-service-account/36073)

<div class="topic-metadata">

**Author:** [@jm1](https://forum.ansible.com/u/jm1)\
**Replies:** 0\
**Last updated:** [December 6, 2021, 12:27am UTC](https://forum.ansible.com/t/gcp-cloudfunctions-cloud-function-with-function-service-account/36073 "2021-12-06T00:27:00Z")

</div>

New to Ansible and am attempting to write a playbook to add a Cloud Function to a GCP Project. This Cloud Function will run with its own Service Account ( https://cloud.google.com/sdk/gcloud/reference/functions/deploy ).…

---

## [Redis Cluster using Ansible](https://forum.ansible.com/t/redis-cluster-using-ansible/36071)

<div class="topic-metadata">

**Author:** [@Dip\_Giri](https://forum.ansible.com/u/Dip_Giri)\
**Replies:** 1\
**Last updated:** [December 5, 2021, 9:06am UTC](https://forum.ansible.com/t/redis-cluster-using-ansible/36071 "2021-12-05T09:06:00Z")

</div>

Setup & Configure a redis Cluster on docker using ansible

---

## [with\_items -- only part of the group in my inventory](https://forum.ansible.com/t/with-items-only-part-of-the-group-in-my-inventory/36070)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 9:13am UTC](https://forum.ansible.com/t/with-items-only-part-of-the-group-in-my-inventory/36070 "2021-12-04T09:13:41Z")

</div>

Hi, I have a task based on shell command that need to run on local computer. As part of the command I need to add the IP address of part of the groups I have in my inventory file Inventory file : \[server1\] 130.1.1.1 …

---

## [Deploy an exe file to a list of servers](https://forum.ansible.com/t/deploy-an-exe-file-to-a-list-of-servers/36066)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 9:49pm UTC](https://forum.ansible.com/t/deploy-an-exe-file-to-a-list-of-servers/36066 "2021-12-03T21:49:39Z")

</div>

I can copy an exe file to the destination server and run it using PS, to install it. A need has arised where this exe file would need to be copied to a list of 100+ servers and installed. Can someone show me an example…

---

## [TCP error code 10060](https://forum.ansible.com/t/tcp-error-code-10060/36058)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 1\
**Last updated:** [December 3, 2021, 9:49pm UTC](https://forum.ansible.com/t/tcp-error-code-10060/36058 "2021-12-03T21:49:07Z")

</div>

Anyone know what this error means? Port 9389 and port 5986 is open (tried test-netconnection from the server from where the ansible command is being run from to destination server its reporting below) : The full traceb…

---

## [Ansible licensing when accesing DNAC via API](https://forum.ansible.com/t/ansible-licensing-when-accesing-dnac-via-api/36036)

<div class="topic-metadata">

**Author:** [@Vicente\_Dominguez](https://forum.ansible.com/u/Vicente_Dominguez)\
**Replies:** 1\
**Last updated:** [December 3, 2021, 11:50am UTC](https://forum.ansible.com/t/ansible-licensing-when-accesing-dnac-via-api/36036 "2021-12-03T11:50:17Z")

</div>

Hi all, Question about licensing… Imagine that I have a DNA Center appliance which controls 5 network devices. If I want to, for example, access to the DNAC using a python script launched by Ansible, sending an API GE…

---

## [Error while using lambda\_facts module](https://forum.ansible.com/t/error-while-using-lambda-facts-module/36061)

<div class="topic-metadata">

**Author:** [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Replies:** 5\
**Last updated:** [December 3, 2021, 11:12am UTC](https://forum.ansible.com/t/error-while-using-lambda-facts-module/36061 "2021-12-03T11:12:49Z")

</div>

Hi Team, We are using lambda\_facts module of ansible to fetch existing aws lambda details but facing below issue while running - TASK \[Get lambda info if it already exists\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [hierarchy of variables application](https://forum.ansible.com/t/hierarchy-of-variables-application/36064)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 11:11am UTC](https://forum.ansible.com/t/hierarchy-of-variables-application/36064 "2021-12-03T11:11:25Z")

</div>

there a several ways to define variables for playbooks or roles So it would be possible that conflicting variable values are defined in different locations. I am wondering how the hierarchy looks like here?

---

## [Custom password prompt guidance](https://forum.ansible.com/t/custom-password-prompt-guidance/36060)

<div class="topic-metadata">

**Author:** [@Paul](https://forum.ansible.com/u/Paul)\
**Replies:** 0\
**Last updated:** [December 2, 2021, 7:56pm UTC](https://forum.ansible.com/t/custom-password-prompt-guidance/36060 "2021-12-02T19:56:21Z")

</div>

I’ve no problem using network\_cli to most network devices. But there are a few with non standard password prompts. Sometime like “Password for myuser@myhost@mydot.com:” I’ve not seen a straightforward way to pass a pla…

---

## [remote copy issue](https://forum.ansible.com/t/remote-copy-issue/36056)

<div class="topic-metadata">

**Author:** [@Rene\_Paquin](https://forum.ansible.com/u/Rene_Paquin)\
**Replies:** 5\
**Last updated:** [December 2, 2021, 7:35pm UTC](https://forum.ansible.com/t/remote-copy-issue/36056 "2021-12-02T19:35:13Z")

</div>

I am attemping o copy a file from one remote linux server to two remote linux servers. My playbook is: name: copy file hosts: “remote source server” gather\_facts: false tasks: name: "copy " copy: src: /opt/odriv…

---

## [How to execute SQL query on PostgreSQL?](https://forum.ansible.com/t/how-to-execute-sql-query-on-postgresql/36050)

<div class="topic-metadata">

**Author:** [@Daniel\_Huesca](https://forum.ansible.com/u/Daniel_Huesca)\
**Replies:** 4\
**Last updated:** [December 2, 2021, 3:35pm UTC](https://forum.ansible.com/t/how-to-execute-sql-query-on-postgresql/36050 "2021-12-02T15:35:15Z")

</div>

I’m reading the docs @ community.postgresql.postgresql\_query module – Run PostgreSQL queries — Ansible Community Documentation but I keep getting errors when trying to execute a few simple commands… This is the outpu…

---

## [Is the discussion about the ansible and ansible-core accessible anywhere?](https://forum.ansible.com/t/is-the-discussion-about-the-ansible-and-ansible-core-accessible-anywhere/36059)

<div class="topic-metadata">

**Author:** [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Replies:** 0\
**Last updated:** [December 2, 2021, 5:02am UTC](https://forum.ansible.com/t/is-the-discussion-about-the-ansible-and-ansible-core-accessible-anywhere/36059 "2021-12-02T05:02:20Z")

</div>

I’m trying to understand the reasoning and address some of the problems with the ansible and ansible-core split, in order to publishing workable RPMs for the new ansible. Are the logs of the discussion or the analysis of…

---

## [Update variable for each loop iteration?](https://forum.ansible.com/t/update-variable-for-each-loop-iteration/36045)

<div class="topic-metadata">

**Author:** [@Ron\_T](https://forum.ansible.com/u/Ron_T)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 10:28pm UTC](https://forum.ansible.com/t/update-variable-for-each-loop-iteration/36045 "2021-12-01T22:28:24Z")

</div>

Hi, I’m trying to combine two dictionaries that have lists of hashes within a loop and then performa actions upon the result of the combined dictionaries. The first dictionary has items that are common variables, and th…

---

## [adding a custom dir to a users (not global) PATH via Ansbile](https://forum.ansible.com/t/adding-a-custom-dir-to-a-users-not-global-path-via-ansbile/36040)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [December 1, 2021, 1:18pm UTC](https://forum.ansible.com/t/adding-a-custom-dir-to-a-users-not-global-path-via-ansbile/36040 "2021-12-01T13:18:54Z")

</div>

I am trying my luck with installing barman as barman user (non-root) via ansible At the end I need to adust the PATH of the barman user and have managed to add the relevant location (/opt/barman/.local/bin) to the globa…

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

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