# Ansible Project

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

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

**Page:** 15

---

## [Ansible playbook undefined variable](https://forum.ansible.com/t/ansible-playbook-undefined-variable/38316)

<div class="topic-metadata">

**Author:** [@Hernan\_Sal](https://forum.ansible.com/u/Hernan_Sal)\
**Replies:** 3\
**Last updated:** [August 10, 2023, 1:15pm UTC](https://forum.ansible.com/t/ansible-playbook-undefined-variable/38316 "2023-08-10T13:15:28Z")

</div>

Hi, I’m running an ansible playbook called create\_admin\_user.yml and I’m getting this error fatal: \[172.31.3.117\]: FAILED! =\> {“msg”: “The task includes an option with an undefined variable. The error was: ‘herlit\_sem…

---

## [Deleting/disabling ansible galaxy collection](https://forum.ansible.com/t/deleting-disabling-ansible-galaxy-collection/38271)

<div class="topic-metadata">

**Author:** [@Clemson\_C](https://forum.ansible.com/u/Clemson_C)\
**Replies:** 4\
**Last updated:** [August 8, 2023, 3:39pm UTC](https://forum.ansible.com/t/deleting-disabling-ansible-galaxy-collection/38271 "2023-08-08T15:39:51Z")

</div>

I have posted uploaded an ansible collection as a test, how do i delete it or disable it from public access?

---

## [reading the key file contents](https://forum.ansible.com/t/reading-the-key-file-contents/38307)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 4\
**Last updated:** [August 8, 2023, 3:02pm UTC](https://forum.ansible.com/t/reading-the-key-file-contents/38307 "2023-08-08T15:02:20Z")

</div>

In a playbook , I gathered the user key into the variable “user\_key” and using a add\_host module to login to the server and execute the required tasks . name: Writing the key to a file ansible.builtin.copy: content:…

---

## [\[Ansible Project \]Ansible New Automation platform](https://forum.ansible.com/t/ansible-project-ansible-new-automation-platform/38311)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 2\
**Last updated:** [August 8, 2023, 5:12am UTC](https://forum.ansible.com/t/ansible-project-ansible-new-automation-platform/38311 "2023-08-08T05:12:08Z")

</div>

Hi folks Recently Redhat Automation platform has been introduced. Is it completely different from Ansible Tower. The reason I am asking I got confused which one to read :frowning: Regards PD

---

## [WinRM settings being erased after Windows update from 10 to 11](https://forum.ansible.com/t/winrm-settings-being-erased-after-windows-update-from-10-to-11/38298)

<div class="topic-metadata">

**Author:** [@Abhisek\_Dash](https://forum.ansible.com/u/Abhisek_Dash)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 6:16pm UTC](https://forum.ansible.com/t/winrm-settings-being-erased-after-windows-update-from-10-to-11/38298 "2023-08-07T18:16:42Z")

</div>

Hello all, We have been using ansible for managing Windows endpoints in our network for a year now. Yesterday I noticed 2 Windows endpoints which updated from Windows 10 to 11 had their WinRM settings removed. The WinR…

---

## [ansible installation on Mac issue](https://forum.ansible.com/t/ansible-installation-on-mac-issue/38305)

<div class="topic-metadata">

**Author:** [@dmastrop](https://forum.ansible.com/u/dmastrop)\
**Replies:** 2\
**Last updated:** [August 7, 2023, 6:12pm UTC](https://forum.ansible.com/t/ansible-installation-on-mac-issue/38305 "2023-08-07T18:12:12Z")

</div>

hi all I have an issue with the ansible installation on Mac. I was able to install ansible without issue on a Cloud9 ubuntu compute instance, EC2 instances, etc, but I am having a permissions issue on the Mac. I have …

---

## [How to user hostvars](https://forum.ansible.com/t/how-to-user-hostvars/38287)

<div class="topic-metadata">

**Author:** [@Olivier\_Studer1](https://forum.ansible.com/u/Olivier_Studer1)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 5:59pm UTC](https://forum.ansible.com/t/how-to-user-hostvars/38287 "2023-08-07T17:59:55Z")

</div>

Hi, I want to use hostvars to use a result of a task runing for on an host to apply this values/result to another host. The “register” can not be use because it is dedicated to the host, not sharing. The goals is to ac…

---

## [restrict playbook execution from specific directory](https://forum.ansible.com/t/restrict-playbook-execution-from-specific-directory/38303)

<div class="topic-metadata">

**Author:** [@K\_T](https://forum.ansible.com/u/K_T)\
**Replies:** 2\
**Last updated:** [August 7, 2023, 5:17pm UTC](https://forum.ansible.com/t/restrict-playbook-execution-from-specific-directory/38303 "2023-08-07T17:17:00Z")

</div>

Hi, Is there a way to restrict playbook execution from specific directory? For example: I don’t want user to execute playbook from home directory and I want to enforce it to be executed from only defined ansible direct…

---

## [help with ansible Mac installation](https://forum.ansible.com/t/help-with-ansible-mac-installation/38302)

<div class="topic-metadata">

**Author:** [@dmastrop](https://forum.ansible.com/u/dmastrop)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 4:07pm UTC](https://forum.ansible.com/t/help-with-ansible-mac-installation/38302 "2023-08-07T16:07:53Z")

</div>

hi all, I have installed ansible on Cloud9 and EC2 ubuntu instances but I am having trouble with the Mac installation. It might be because I installed it using sudo pip3 install ansible when I should have used pytho…

---

## [Correct way to target default inventory with playbook written for localhost](https://forum.ansible.com/t/correct-way-to-target-default-inventory-with-playbook-written-for-localhost/38304)

<div class="topic-metadata">

**Author:** [@RedNek\_Tek](https://forum.ansible.com/u/RedNek_Tek)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 2:49pm UTC](https://forum.ansible.com/t/correct-way-to-target-default-inventory-with-playbook-written-for-localhost/38304 "2023-08-07T14:49:30Z")

</div>

In my journey of learning ansible, I come across playbooks written to target localhost - and I am trying to figure out how to run such playbooks against the inventory file /etc/ansible/hosts. One example here: https://g…

---

## [Filtering\_data manipulation](https://forum.ansible.com/t/filtering-data-manipulation/38283)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 8\
**Last updated:** [August 7, 2023, 12:28pm UTC](https://forum.ansible.com/t/filtering-data-manipulation/38283 "2023-08-07T12:28:29Z")

</div>

While collecting the inventory from a dynamic source , I am able to filter the hostname and print them as below as expected. servera serverb serverc serverd when set to facts with set\_fact also fine and print in the…

---

## [F5 - Fetch UCS Module](https://forum.ansible.com/t/f5-fetch-ucs-module/38284)

<div class="topic-metadata">

**Author:** [@kyle\_jones](https://forum.ansible.com/u/kyle_jones)\
**Replies:** 1\
**Last updated:** [August 6, 2023, 6:45pm UTC](https://forum.ansible.com/t/f5-fetch-ucs-module/38284 "2023-08-06T18:45:53Z")

</div>

Hello, Using the Bigip\_ucs\_fetch module to pull a UCS backup. I keep getting not found, since in the source code of the module its appending /mgmt/tm/sys/ucs to the url path: https://IP:Port/mgmt/tm/sys/ucs. What is yo…

---

## [Handling unreachable hosts](https://forum.ansible.com/t/handling-unreachable-hosts/38277)

<div class="topic-metadata">

**Author:** [@Kenady\_Inampudi](https://forum.ansible.com/u/Kenady_Inampudi)\
**Replies:** 1\
**Last updated:** [August 6, 2023, 4:23pm UTC](https://forum.ansible.com/t/handling-unreachable-hosts/38277 "2023-08-06T16:23:51Z")

</div>

I have a playbook to lock a user this works as expected but fails when any of the server in the inventory is unreachable lock\_user.yml

---

## [Good practices Ansible + GitHub + docker-compose](https://forum.ansible.com/t/good-practices-ansible-github-docker-compose/38292)

<div class="topic-metadata">

**Author:** [@Juan\_Luis\_Cano\_Rodri](https://forum.ansible.com/u/Juan_Luis_Cano_Rodri)\
**Replies:** 1\
**Last updated:** [August 6, 2023, 2:18pm UTC](https://forum.ansible.com/t/good-practices-ansible-github-docker-compose/38292 "2023-08-06T14:18:42Z")

</div>

hello folks, I’m looking for good practices on how to deploy a docker-compose from GitHub to Ansible. at the moment I have a repository https://github.com/Mercado-Social-de-Madrid/ansible-takahe that contains the playbo…

---

## [set facts from items in a loop](https://forum.ansible.com/t/set-facts-from-items-in-a-loop/38297)

<div class="topic-metadata">

**Author:** [@solarflow\_99](https://forum.ansible.com/u/solarflow_99)\
**Replies:** 3\
**Last updated:** [August 4, 2023, 11:03pm UTC](https://forum.ansible.com/t/set-facts-from-items-in-a-loop/38297 "2023-08-04T23:03:06Z")

</div>

I wonder if something like this can be done, the problem i’m seeing is that the fact name has to be static, and could not use {{ item }}: name: Set each tag to facts set\_fact: list\_of\_vars: “{{ my\_instance.instances…

---

## [Executing ansible through SSH](https://forum.ansible.com/t/executing-ansible-through-ssh/38299)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 3\
**Last updated:** [August 4, 2023, 2:30pm UTC](https://forum.ansible.com/t/executing-ansible-through-ssh/38299 "2023-08-04T14:30:33Z")

</div>

Hi , I have 3 servers serverA ,serverB , and serverC. From serverA , I am trying to execute the playbook on serverB which is the control node(Where ansible is available). The playbook when run from serverB(login with …

---

## [postgresql\_privs equivalent for GRANT statement + solution](https://forum.ansible.com/t/postgresql-privs-equivalent-for-grant-statement-solution/38301)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [August 4, 2023, 1:16pm UTC](https://forum.ansible.com/t/postgresql-privs-equivalent-for-grant-statement-solution/38301 "2023-08-04T13:16:07Z")

</div>

Hii, I can't seem to find the correct set of parameters for the postgresql\_privs module to do this as the postgres user: GRANT CREATE ON SCHEMA public TO role1; I tried the obvious: - postgresql\_privs: login\_ho…

---

## [Without common sensible user](https://forum.ansible.com/t/without-common-sensible-user/38294)

<div class="topic-metadata">

**Author:** [@Thiru2\_explore](https://forum.ansible.com/u/Thiru2_explore)\
**Replies:** 1\
**Last updated:** [August 3, 2023, 6:40pm UTC](https://forum.ansible.com/t/without-common-sensible-user/38294 "2023-08-03T18:40:12Z")

</div>

Hi Team, In our Linux environment we use AD (openldap) user authentication, in that how can we add host for auth… However we tried with become-pass but mostly getting failed… Requesting for a kind example/suggestions h…

---

## [ansible playbook error using firewalld to set policy](https://forum.ansible.com/t/ansible-playbook-error-using-firewalld-to-set-policy/38290)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 1\
**Last updated:** [August 3, 2023, 6:24pm UTC](https://forum.ansible.com/t/ansible-playbook-error-using-firewalld-to-set-policy/38290 "2023-08-03T18:24:10Z")

</div>

Hi Group, I am trying to write an ansible playbook to block all incoming traffic on the external interfaces . I am getting the error message “parameters are mutually exclusive:”. I appreciate a quick help I am missing …

---

## [\[ansible-projects\] Hostname trimming help](https://forum.ansible.com/t/ansible-projects-hostname-trimming-help/38289)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 2\
**Last updated:** [August 3, 2023, 2:17am UTC](https://forum.ansible.com/t/ansible-projects-hostname-trimming-help/38289 "2023-08-03T02:17:42Z")

</div>

Hi Experts, Not exactly an ansible issue but any thought would be greatly appreciated. We use AD for Password synchronization between different kinds of systems. For password synchronization we also use mainframe syste…

---

## [Change Windows 'administrator' password upon first login of a new VM](https://forum.ansible.com/t/change-windows-administrator-password-upon-first-login-of-a-new-vm/38132)

<div class="topic-metadata">

**Author:** [@tlemons](https://forum.ansible.com/u/tlemons)\
**Replies:** 2\
**Last updated:** [August 2, 2023, 7:07pm UTC](https://forum.ansible.com/t/change-windows-administrator-password-upon-first-login-of-a-new-vm/38132 "2023-08-02T19:07:13Z")

</div>

Hi - my team has an Ansible automation that deploys and configures a new Windows Server system in our vSphere-based lab environment. It uses govc to deploy an .ova created within our company that has a secure password fo…

---

## [fetch module Errno 13 Permission denied](https://forum.ansible.com/t/fetch-module-errno-13-permission-denied/38286)

<div class="topic-metadata">

**Author:** [@Valentin1919](https://forum.ansible.com/u/Valentin1919)\
**Replies:** 1\
**Last updated:** [August 1, 2023, 3:38pm UTC](https://forum.ansible.com/t/fetch-module-errno-13-permission-denied/38286 "2023-08-01T15:38:38Z")

</div>

i have a playbook with a task that should fetch me the content of a file on host 1 load it into a directory (drop) and the following task should copy the content of the drop directoy and copy it to another file on host 2 …

---

## [handling error codes](https://forum.ansible.com/t/handling-error-codes/38279)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 2\
**Last updated:** [July 31, 2023, 3:53pm UTC](https://forum.ansible.com/t/handling-error-codes/38279 "2023-07-31T15:53:35Z")

</div>

Hi , I have a playbook with the below lines . $ cat double\_check.yml

---

## [Pause task taking more](https://forum.ansible.com/t/pause-task-taking-more/38281)

<div class="topic-metadata">

**Author:** [@Dhirender\_Yadav](https://forum.ansible.com/u/Dhirender_Yadav)\
**Replies:** 1\
**Last updated:** [July 31, 2023, 3:33pm UTC](https://forum.ansible.com/t/pause-task-taking-more/38281 "2023-07-31T15:33:46Z")

</div>

Hi Team, We have observed that sometimes simple pause tasks take more time. 2023-07-31 02:57:46,826 p=103684 u=test n=ansible | TASK \[apache\_cassandra : Pause for 2 minutes for the cluster to form (test)\] \*\*\* 2023-07-…

---

## [Issue with Ruby version on target system](https://forum.ansible.com/t/issue-with-ruby-version-on-target-system/38274)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 3\
**Last updated:** [July 31, 2023, 2:49pm UTC](https://forum.ansible.com/t/issue-with-ruby-version-on-target-system/38274 "2023-07-31T14:49:02Z")

</div>

I have a role that will install Redmine onto a RHEL 8 system. When I run the playbook and it tries to install “bundler”, I get the following error: ERROR: Error installing bundler: bundler requires Ruby version \>= 2.6.…

---

## [\[Ansible Project\] how to get the logged in username](https://forum.ansible.com/t/ansible-project-how-to-get-the-logged-in-username/38276)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 6\
**Last updated:** [July 31, 2023, 2:27pm UTC](https://forum.ansible.com/t/ansible-project-how-to-get-the-logged-in-username/38276 "2023-07-31T14:27:25Z")

</div>

Hi All, I searched a quite but could able to find what I wanted Could any pls suggest me how to get the Username in the host machine. In Linux if I run the below command I get what I suppose to get but don’t know how t…

---

## [builtin.expect question](https://forum.ansible.com/t/builtin-expect-question/38254)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Reis](https://forum.ansible.com/u/Rodrigo_Reis)\
**Replies:** 4\
**Last updated:** [July 30, 2023, 6:55pm UTC](https://forum.ansible.com/t/builtin-expect-question/38254 "2023-07-30T18:55:45Z")

</div>

Hello Everyone! I trying to install ohmyzsh using ansible inside of a bigger yml file with a bunch of other sutff. in hte ansible.builtin.expect block the goal is to anwser one installation question but it waits for th…

---

## [\[Ansible Project\] Not able to process the shell command in control node](https://forum.ansible.com/t/ansible-project-not-able-to-process-the-shell-command-in-control-node/38272)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 6\
**Last updated:** [July 28, 2023, 3:37pm UTC](https://forum.ansible.com/t/ansible-project-not-able-to-process-the-shell-command-in-control-node/38272 "2023-07-28T15:37:47Z")

</div>

Hi Experts, Need your suggestion pls. The below one is ansible file which calls an python file in the control node(localhost) and process an excel file which is also present in control node based on hostnames. There is…

---

## [deferred evaluation (?)](https://forum.ansible.com/t/deferred-evaluation/38270)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 5\
**Last updated:** [July 28, 2023, 3:27am UTC](https://forum.ansible.com/t/deferred-evaluation/38270 "2023-07-28T03:27:31Z")

</div>

I’m trying to loop over a set of strings with ansible.builtin.debug, and I want to produce a three-part message for each string, like this: name: Demo expressions ansible.builtin.debug: msg: ‘{{ item }}’ ‘evaluate it…

---

## [edit string in a multi-line file](https://forum.ansible.com/t/edit-string-in-a-multi-line-file/38266)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 5\
**Last updated:** [July 27, 2023, 7:42pm UTC](https://forum.ansible.com/t/edit-string-in-a-multi-line-file/38266 "2023-07-27T19:42:33Z")

</div>

I am trying to edit a string in a multi-line file. For instance, if I had this string: This is a file and I am editing it I want to add the string “new” in front of file if it does not exist already. I’ve tried linein…

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

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