# Ansible Project

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

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

**Page:** 18

---

## [loading tasks file based on ansible\_fqdn value](https://forum.ansible.com/t/loading-tasks-file-based-on-ansible-fqdn-value/38179)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 7\
**Last updated:** [July 3, 2023, 10:57am UTC](https://forum.ansible.com/t/loading-tasks-file-based-on-ansible-fqdn-value/38179 "2023-07-03T10:57:00Z")

</div>

hi, I want to take different sligthly routes in a playbook based on the particular remote. All remotes are in the same hosts group. I am trying to do this by setting a fact based on the ansible\_fqdn value. Based on th…

---

## [separate logfile per target](https://forum.ansible.com/t/separate-logfile-per-target/38175)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 6\
**Last updated:** [July 2, 2023, 3:05pm UTC](https://forum.ansible.com/t/separate-logfile-per-target/38175 "2023-07-02T15:05:36Z")

</div>

we where wondering whether there is a method to generate logfiles per remote target on playbook executions? In other words … one runs a playbook on 50 targets and gets 50 logfiles (1 per target) out of it. I guess anot…

---

## [checking to see if cron entry exists](https://forum.ansible.com/t/checking-to-see-if-cron-entry-exists/38168)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 4\
**Last updated:** [June 29, 2023, 12:59pm UTC](https://forum.ansible.com/t/checking-to-see-if-cron-entry-exists/38168 "2023-06-29T12:59:02Z")

</div>

I am checking to see if a cron job exists and if it doesn’t, add it. Because we use random times (for both hours and minutes) I cannot search for the entire line. Here is what I have: name: UPDATE\_WAZUH lineinfile: …

---

## [community.docker.docker\_login issue](https://forum.ansible.com/t/community-docker-docker-login-issue/38169)

<div class="topic-metadata">

**Author:** [@williamflow](https://forum.ansible.com/u/williamflow)\
**Replies:** 4\
**Last updated:** [June 29, 2023, 4:45am UTC](https://forum.ansible.com/t/community-docker-docker-login-issue/38169 "2023-06-29T04:45:47Z")

</div>

so bottom line I am using the community.docker collection and my code is pretty simple to start I just want to login to my registry and i am failing and do not have a clue as to why my code is below and I get this error …

---

## [Ansible Pull + Ansible Galaxy Integration #76535](https://forum.ansible.com/t/ansible-pull-ansible-galaxy-integration-76535/38170)

<div class="topic-metadata">

**Author:** [@Andrew\_Bezella](https://forum.ansible.com/u/Andrew_Bezella)\
**Replies:** 0\
**Last updated:** [June 29, 2023, 12:00am UTC](https://forum.ansible.com/t/ansible-pull-ansible-galaxy-integration-76535/38170 "2023-06-29T00:00:42Z")

</div>

hello - i was looking at this feature request regarding using ansible-pull alongside ansible-galaxy roles. there was a related PR that looked promising but the issue was closed with the following rationale: Since you …

---

## [Ssh connectivity issues from a Debian core server to a remote Windows 10 Pro host.](https://forum.ansible.com/t/ssh-connectivity-issues-from-a-debian-core-server-to-a-remote-windows-10-pro-host/38145)

<div class="topic-metadata">

**Author:** [@gonzalo\_diaz\_larenas](https://forum.ansible.com/u/gonzalo_diaz_larenas)\
**Replies:** 7\
**Last updated:** [June 28, 2023, 11:13pm UTC](https://forum.ansible.com/t/ssh-connectivity-issues-from-a-debian-core-server-to-a-remote-windows-10-pro-host/38145 "2023-06-28T23:13:07Z")

</div>

Hello how are you, I am trying to connect remotely via ssh to a remote Windows 10 Pro host, I apply the ad-hoc command and the only remote host that does not respond is the one with Windows 10 Pro installed, I attach the…

---

## [abstracting loop items (ditcionary)](https://forum.ansible.com/t/abstracting-loop-items-ditcionary/38161)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [June 28, 2023, 7:19pm UTC](https://forum.ansible.com/t/abstracting-loop-items-ditcionary/38161 "2023-06-28T19:19:45Z")

</div>

I want to create pg\_hba.conf entries with the community.postgresql.postgresql\_pg\_hba module. I think generally my issue here is not releated to how that module works though I can do this with a TASK like the below ...

---

## [Release announcement : Ansible Community Package 8.1.0](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-1-0/38149)

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 6\
**Last updated:** [June 28, 2023, 7:16pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-1-0/38149 "2023-06-28T19:16:33Z")

</div>

Hello everyone, We're happy to announce the release of the Ansible 8.1.0 package! Ansible 8.1.0 includes ansible-core 2.15.1 as well as a curated set of Ansible collections that provide a vast number of modules and pl…

---

## [Configuration Drift](https://forum.ansible.com/t/configuration-drift/38165)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 12\
**Last updated:** [June 28, 2023, 3:56pm UTC](https://forum.ansible.com/t/configuration-drift/38165 "2023-06-28T15:56:41Z")

</div>

Good Afternoon, I was wondering what you all are doing to manage configuration drift. Are you having ansible fix the drift, are you having it notify you of the drift, or are you doing something else. At work, we are pre…

---

## [ssh-agent forwarding](https://forum.ansible.com/t/ssh-agent-forwarding/35845)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 7\
**Last updated:** [June 28, 2023, 3:41pm UTC](https://forum.ansible.com/t/ssh-agent-forwarding/35845 "2023-06-28T15:41:05Z")

</div>

Hi, Trying since hours, can’t make it work (although it worked already somewhen)… OK. Having a public ssh key, say ~/.ssh/id\_rsa.pub. Configured it to Bitbucket. Able to checkout my project using public key authentica…

---

## [How to restart a remote Firefox in Windows machine?](https://forum.ansible.com/t/how-to-restart-a-remote-firefox-in-windows-machine/38087)

<div class="topic-metadata">

**Author:** [@sjuanlu](https://forum.ansible.com/u/sjuanlu)\
**Replies:** 1\
**Last updated:** [June 27, 2023, 12:11pm UTC](https://forum.ansible.com/t/how-to-restart-a-remote-firefox-in-windows-machine/38087 "2023-06-27T12:11:21Z")

</div>

Hi Team! I’ve tried to restart a firefox in remote machine to apply the updates. I can’t use chocolately because Net. Framework is neccesary but it’s not complied with security businness. I have usedthese modules: win\_…

---

## [Removing an LDAP attribute regardless of its value](https://forum.ansible.com/t/removing-an-ldap-attribute-regardless-of-its-value/38159)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 1\
**Last updated:** [June 26, 2023, 5:20pm UTC](https://forum.ansible.com/t/removing-an-ldap-attribute-regardless-of-its-value/38159 "2023-06-26T17:20:53Z")

</div>

Hii, I am trying to remove an attribute from an LDAP entry, in this case the password that was put in during installation of the slapd package. Initially I have this: root@dick-dev1:~# ldapsearch -Q -LLL -Y EXTERNAL -…

---

## [RHEL8-packages-CIS\_Benchmark-playbook](https://forum.ansible.com/t/rhel8-packages-cis-benchmark-playbook/38122)

<div class="topic-metadata">

**Author:** [@Himanshu\_Kaushik](https://forum.ansible.com/u/Himanshu_Kaushik)\
**Replies:** 4\
**Last updated:** [June 26, 2023, 2:12pm UTC](https://forum.ansible.com/t/rhel8-packages-cis-benchmark-playbook/38122 "2023-06-26T14:12:46Z")

</div>

Hi, Greetings! Can anyone please help me if my playbook is correct or not. Also, please help it correct and it should run / execute correctly and it should make the necessary changes in the RHEL8 slave VM and make the…

---

## [Ansible Automation Platform Shared connection to vwaappdb01.orktion.net closed](https://forum.ansible.com/t/ansible-automation-platform-shared-connection-to-vwaappdb01-orktion-net-closed/38155)

<div class="topic-metadata">

**Author:** [@ume90009](https://forum.ansible.com/u/ume90009)\
**Replies:** 0\
**Last updated:** [June 26, 2023, 2:42am UTC](https://forum.ansible.com/t/ansible-automation-platform-shared-connection-to-vwaappdb01-orktion-net-closed/38155 "2023-06-26T02:42:24Z")

</div>

I am currently using the trial version of Ansible Automation Platform. I am attempting to install the AAP stack on 3 Controllers, 1 Hub, and 1 DB using the setup.sh script. However, the installation is failing at the fol…

---

## [when: item is defined not working](https://forum.ansible.com/t/when-item-is-defined-not-working/38154)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 2:15am UTC](https://forum.ansible.com/t/when-item-is-defined-not-working/38154 "2023-06-26T02:15:28Z")

</div>

The below task is not working as expected. i am expecting it will print message for at least 2 times which is defined and skip rest 2. TASK \[Connect to Isilon Device\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [AWX question from a beginner :-(](https://forum.ansible.com/t/awx-question-from-a-beginner/38144)

<div class="topic-metadata">

**Author:** [@Federico\_Rovelli](https://forum.ansible.com/u/Federico_Rovelli)\
**Replies:** 4\
**Last updated:** [June 25, 2023, 3:38pm UTC](https://forum.ansible.com/t/awx-question-from-a-beginner/38144 "2023-06-25T15:38:46Z")

</div>

I have an Ansible environment already configured (control server and managed servers) and I want to manage it with AWX. I have installed AWX and start a GUI but I don’t know in what way I can connect AWX to my configura…

---

## [mail multi-line format](https://forum.ansible.com/t/mail-multi-line-format/38153)

<div class="topic-metadata">

**Author:** [@dbs34](https://forum.ansible.com/u/dbs34)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 5:57pm UTC](https://forum.ansible.com/t/mail-multi-line-format/38153 "2023-06-23T17:57:37Z")

</div>

Hello! I have tried various ways to get my output to email in a readable format, with newlines, but ansible strips them off everytime. Its just a few shell commands i am testing. I’ve tried a for loop, with items, repla…

---

## [https://docs.ansible.com/ansible/2.9\_ja/modules/jenkins\_job\_info\_module.html not printing info for mutlpipleine jobs](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 5\
**Last updated:** [June 23, 2023, 5:05pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146 "2023-06-23T17:05:10Z")

</div>

here is my jenkins info play name: Print the jobname jenkins\_job\_facts: name: ‘build.teamCI’ user: nchitturi@domain.com token: url: https://build.com register: my\_jenkins\_job\_info tags: jenkinsjob2 the above p…

---

## [get\_url can not work with https](https://forum.ansible.com/t/get-url-can-not-work-with-https/27812)

<div class="topic-metadata">

**Author:** [@stifan\_kristi](https://forum.ansible.com/u/stifan_kristi)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 11:01am UTC](https://forum.ansible.com/t/get-url-can-not-work-with-https/27812 "2023-06-23T11:01:15Z")

</div>

ref https://github.com/ansible/ansible/issues/41521 as suggestion on that link, still error, not sure why the issue still not fixed, but it’s been closed step i’ve done, according to the suggestion \` $ brew update &&…

---

## [Ansible task execution until it completes](https://forum.ansible.com/t/ansible-task-execution-until-it-completes/38131)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 13\
**Last updated:** [June 23, 2023, 3:18am UTC](https://forum.ansible.com/t/ansible-task-execution-until-it-completes/38131 "2023-06-23T03:18:44Z")

</div>

Dear All, Could you please help with the below query. I have variable\_data which contains 3 records. I want to keep run debug task continuously every 1 minute until percent\_complete == 100 and then complete task execut…

---

## [mssql\_script module - Segmentation fault  error](https://forum.ansible.com/t/mssql-script-module-segmentation-fault-error/37992)

<div class="topic-metadata">

**Author:** [@shloco](https://forum.ansible.com/u/shloco)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 7:59pm UTC](https://forum.ansible.com/t/mssql-script-module-segmentation-fault-error/37992 "2023-06-22T19:59:14Z")

</div>

I’m running the bellow play name: Setup url run\_once: true community.general.mssql\_script: login\_user: “{{ mssql\_login\_user }}” login\_password: “{{ mssql\_login\_password }}” login\_host: “{{ mssql\_host }}” login\_po…

---

## [fails when trying to use the mssql\_script module #6768](https://forum.ansible.com/t/fails-when-trying-to-use-the-mssql-script-module-6768/38147)

<div class="topic-metadata">

**Author:** [@Nicolas\_Ortiz](https://forum.ansible.com/u/Nicolas_Ortiz)\
**Replies:** 0\
**Last updated:** [June 22, 2023, 7:57pm UTC](https://forum.ansible.com/t/fails-when-trying-to-use-the-mssql-script-module-6768/38147 "2023-06-22T19:57:11Z")

</div>

When I do a sql query with the mssql\_script module, it fails and gives me the following error: FAILED! =\> {“changed”: false, “module\_stderr”: "Excepción al llamar a “Create” con los argumentos “1”: “En línea: 4 Carácter…

---

## [New release announcement : Ansible Community Package 7.7.0](https://forum.ansible.com/t/new-release-announcement-ansible-community-package-7-7-0/38143)

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 0\
**Last updated:** [June 22, 2023, 2:17pm UTC](https://forum.ansible.com/t/new-release-announcement-ansible-community-package-7-7-0/38143 "2023-06-22T14:17:59Z")

</div>

Hello everyone, We're happy to announce the release of the Ansible 7.7.0 package! Ansible 7.7.0 includes ansible-core 2.14.7 as well as a curated set of Ansible collections that provide a vast number of modules and pl…

---

## [Need help on unarchive module](https://forum.ansible.com/t/need-help-on-unarchive-module/38141)

<div class="topic-metadata">

**Author:** [@vibha\_rajnag](https://forum.ansible.com/u/vibha_rajnag)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 12:54pm UTC](https://forum.ansible.com/t/need-help-on-unarchive-module/38141 "2023-06-22T12:54:10Z")

</div>

Hi All, I have some rest api call which is generating some result in csv.gz extention. I have used unarchive module in ansible. It says this module does not support .gz file which dies not have tar. Please help me, h…

---

## [How to dynamically end a loop in Ansible](https://forum.ansible.com/t/how-to-dynamically-end-a-loop-in-ansible/38140)

<div class="topic-metadata">

**Author:** [@ibelieve06](https://forum.ansible.com/u/ibelieve06)\
**Replies:** 2\
**Last updated:** [June 21, 2023, 11:19pm UTC](https://forum.ansible.com/t/how-to-dynamically-end-a-loop-in-ansible/38140 "2023-06-21T23:19:39Z")

</div>

Due to the fact that we cannot run loop on block with Ansible, therefore I have to do include\_tasks in the loop where the referenced file contains more than 1 task. What if I need to dynamically end the loop earlier (le…

---

## [jenkins job config.xml](https://forum.ansible.com/t/jenkins-job-config-xml/38116)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 9:37pm UTC](https://forum.ansible.com/t/jenkins-job-config-xml/38116 "2023-06-21T21:37:03Z")

</div>

I have a jenkins job config.xml file, this is the template file, which will be replaced with the values from another yml file and next it has to create a jenkins job out of it. I am trying to figure out the best way to r…

---

## [passing arguments to python script](https://forum.ansible.com/t/passing-arguments-to-python-script/38139)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 3:18pm UTC](https://forum.ansible.com/t/passing-arguments-to-python-script/38139 "2023-06-21T15:18:12Z")

</div>

Hi all I am trying to pass the ansible hostnames as an array list to python script but could not figure out where the extra characters are coming from. I am passing with ansible\_play\_hosts\_all variable. In my host file…

---

## [Apt module pass arguments](https://forum.ansible.com/t/apt-module-pass-arguments/38138)

<div class="topic-metadata">

**Author:** [@Jeroen\_Rijken](https://forum.ansible.com/u/Jeroen_Rijken)\
**Replies:** 1\
**Last updated:** [June 21, 2023, 2:51pm UTC](https://forum.ansible.com/t/apt-module-pass-arguments/38138 "2023-06-21T14:51:42Z")

</div>

Hi, Is it currently possible to pass apt options to the apt module? The dpkg\_options are only for dpkg, I’d like to pass apt specific options like so: apt-get -o Dir::Etc::SourceList=/tmp/sources.list -o Dir::Etc::Sour…

---

## [lineinfile module to replace a string](https://forum.ansible.com/t/lineinfile-module-to-replace-a-string/38125)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 8:21am UTC](https://forum.ansible.com/t/lineinfile-module-to-replace-a-string/38125 "2023-06-21T08:21:27Z")

</div>

Hi, I am trying to replace a line/string in a 224 lines file . Trying with replace and lineinfile module , but seems i am missing a bit.. below is the string to consider: logging.files: Configure the path where the …

---

## [Collect hostnames in an array](https://forum.ansible.com/t/collect-hostnames-in-an-array/38135)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 3:46am UTC](https://forum.ansible.com/t/collect-hostnames-in-an-array/38135 "2023-06-21T03:46:25Z")

</div>

Hi all Pls help… need to collect all the hostnames in an array and pass that are art finally to an python script as an argument…so that I can process that python file with all hostname in a loop. If any other way to do…

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

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