# Archives

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

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

**Page:** 119

---

## [How to copy a file from windows to linux](https://forum.ansible.com/t/how-to-copy-a-file-from-windows-to-linux/35416)

<div class="topic-metadata">

**Author:** [@senguler](https://forum.ansible.com/u/senguler)\
**Replies:** 7\
**Last updated:** [June 26, 2021, 11:21am UTC](https://forum.ansible.com/t/how-to-copy-a-file-from-windows-to-linux/35416 "2021-06-26T11:21:23Z")

</div>

Hi all, I want to copy a file from windows to linux but I cannot do that. I trıed win\_copy module and remote\_src=yes and job was success but the file did not exist on target machine. Where I am wrong. Thanks for helps.

---

## [How to get the hostname into jinja file](https://forum.ansible.com/t/how-to-get-the-hostname-into-jinja-file/35408)

<div class="topic-metadata">

**Author:** [@Abdulrazzaq\_shaik](https://forum.ansible.com/u/Abdulrazzaq_shaik)\
**Replies:** 1\
**Last updated:** [June 26, 2021, 6:20am UTC](https://forum.ansible.com/t/how-to-get-the-hostname-into-jinja-file/35408 "2021-06-26T06:20:34Z")

</div>

Hi Folks, Thank you for reading this. My expectation is to get the hostname from the inventory file, please help how to get this. Jinjafile : teaserverurl: “http://{{tibcoteahost}}:8777/tea” vars file : tibco\_tea\_g…

---

## [How to manage different password for different group with same hostname](https://forum.ansible.com/t/how-to-manage-different-password-for-different-group-with-same-hostname/35417)

<div class="topic-metadata">

**Author:** [@Dhineshkumar\_Chandra](https://forum.ansible.com/u/Dhineshkumar_Chandra)\
**Replies:** 0\
**Last updated:** [June 25, 2021, 9:03pm UTC](https://forum.ansible.com/t/how-to-manage-different-password-for-different-group-with-same-hostname/35417 "2021-06-25T21:03:27Z")

</div>

How to manage different password for different group with same hostname ? Ex., \[group1\] test-01 ansible\_sudo\_pass=‘pass1’ ansible\_ssh\_pass=‘pass1’ test-02 test-03 test-04 \[group2\] test-01 ansible\_sudo\_pass=‘pass3…

---

## [Creating a Group and Project within a group with gitlab module](https://forum.ansible.com/t/creating-a-group-and-project-within-a-group-with-gitlab-module/35395)

<div class="topic-metadata">

**Author:** [@Michael\_Weiner](https://forum.ansible.com/u/Michael_Weiner)\
**Replies:** 3\
**Last updated:** [June 25, 2021, 7:43pm UTC](https://forum.ansible.com/t/creating-a-group-and-project-within-a-group-with-gitlab-module/35395 "2021-06-25T19:43:10Z")

</div>

Hi all, I want to create a group in gitlab, and within that group create a project. Any suggestions? I can run the gitlab\_group module, and it does create, what appears to be a subgroup but not a project within that gr…

---

## [Using a variable in a loop](https://forum.ansible.com/t/using-a-variable-in-a-loop/35414)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 3\
**Last updated:** [June 25, 2021, 7:17pm UTC](https://forum.ansible.com/t/using-a-variable-in-a-loop/35414 "2021-06-25T19:17:29Z")

</div>

I’m trying to look through a loop of users to get their email addresses from an IPA server. When I run it, I get an error stating that “name” is an undefined variable. Can anyone see what I’m doing wrong?

---

## [Merging two dictionaries from different files.](https://forum.ansible.com/t/merging-two-dictionaries-from-different-files/35415)

<div class="topic-metadata">

**Author:** [@Steve\_Button](https://forum.ansible.com/u/Steve_Button)\
**Replies:** 1\
**Last updated:** [June 25, 2021, 6:57pm UTC](https://forum.ansible.com/t/merging-two-dictionaries-from-different-files/35415 "2021-06-25T18:57:05Z")

</div>

I’m have two files one which represents the default case, and another for a specific environment. variables/all.yml: all: vars: myapp: COMPONENT\_NAME: “app” (and another hundred or so default settings for myapp) v…

---

## [Issue with folder permissions with a playbook](https://forum.ansible.com/t/issue-with-folder-permissions-with-a-playbook/35412)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [June 25, 2021, 6:18pm UTC](https://forum.ansible.com/t/issue-with-folder-permissions-with-a-playbook/35412 "2021-06-25T18:18:53Z")

</div>

We have a bash script that creates some folders and puts some ACLs on them, and we’re trying to do this with an Ansible playbook. When we run the bash script, the group permission is rwx like we want, but when running th…

---

## [find ansible\_fqdn and default\_ipv4.address with ansible hostvars](https://forum.ansible.com/t/find-ansible-fqdn-and-default-ipv4-address-with-ansible-hostvars/35413)

<div class="topic-metadata">

**Author:** [@Gustave\_Pablo](https://forum.ansible.com/u/Gustave_Pablo)\
**Replies:** 0\
**Last updated:** [June 25, 2021, 6:14pm UTC](https://forum.ansible.com/t/find-ansible-fqdn-and-default-ipv4-address-with-ansible-hostvars/35413 "2021-06-25T18:14:04Z")

</div>

There are my .j2 template and playbook to generate hostname, fqdn and ipv4 for all manage node → vi hosts.j2 {% for i in groups\[‘all’\] %} {{ hostvars\[i\].inventory\_hostname }} {{hostvars\[i\].ansible\_fqdn }} {{hostvar…

---

## [Speed up Ansible AWX role execution](https://forum.ansible.com/t/speed-up-ansible-awx-role-execution/35409)

<div class="topic-metadata">

**Author:** [@j\_j](https://forum.ansible.com/u/j_j)\
**Replies:** 0\
**Last updated:** [June 25, 2021, 10:27am UTC](https://forum.ansible.com/t/speed-up-ansible-awx-role-execution/35409 "2021-06-25T10:27:35Z")

</div>

Hey guys, I’ve successfully installed AWX Tower on Fedora using docker installation method and below are all of my versions I’m using. I want to do some kind of tweaking on the tower and want to speed up the role execu…

---

## [how to rewrite this  the proper way?](https://forum.ansible.com/t/how-to-rewrite-this-the-proper-way/35406)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 1\
**Last updated:** [June 25, 2021, 9:15am UTC](https://forum.ansible.com/t/how-to-rewrite-this-the-proper-way/35406 "2021-06-25T09:15:03Z")

</div>

Hello here’s my playbook, I am looking for interface without IP:

---

## [Need help with inventory sync](https://forum.ansible.com/t/need-help-with-inventory-sync/35407)

<div class="topic-metadata">

**Author:** [@alexey\_safonov](https://forum.ansible.com/u/alexey_safonov)\
**Replies:** 0\
**Last updated:** [June 25, 2021, 9:04am UTC](https://forum.ansible.com/t/need-help-with-inventory-sync/35407 "2021-06-25T09:04:14Z")

</div>

I’ve migrated my AWX from 17.x docker based to 19.2.x k8s based. And now have an issue that my inventory cannot be synced. I have my own script an when I’m calling it ./dns\_inventory --list it returns about 100 of host…

---

## [GitHub no longer supports authentication through query parameters](https://forum.ansible.com/t/github-no-longer-supports-authentication-through-query-parameters/35387)

<div class="topic-metadata">

**Author:** [@Sergii\_Alieksanov](https://forum.ansible.com/u/Sergii_Alieksanov)\
**Replies:** 1\
**Last updated:** [June 24, 2021, 11:15pm UTC](https://forum.ansible.com/t/github-no-longer-supports-authentication-through-query-parameters/35387 "2021-06-24T23:15:13Z")

</div>

Hello. Please help me to understand if the following below Github deprecation was addressed in AWX: https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/ and what is particular issue numb…

---

## [how to stop Tower from deleting extra vars in job template when nothing is uncommented](https://forum.ansible.com/t/how-to-stop-tower-from-deleting-extra-vars-in-job-template-when-nothing-is-uncommented/35404)

<div class="topic-metadata">

**Author:** [@Richard\_Kucera](https://forum.ansible.com/u/Richard_Kucera)\
**Replies:** 0\
**Last updated:** [June 24, 2021, 9:21pm UTC](https://forum.ansible.com/t/how-to-stop-tower-from-deleting-extra-vars-in-job-template-when-nothing-is-uncommented/35404 "2021-06-24T21:21:26Z")

</div>

Hello, Newbie here, I’m sure I’m missing something, thanks in advance for any information. I have found the Extra Variables section to be useful for storing not only variable alternative values (commented out), but lim…

---

## [error creating a directory](https://forum.ansible.com/t/error-creating-a-directory/33270)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 5\
**Last updated:** [June 24, 2021, 3:15pm UTC](https://forum.ansible.com/t/error-creating-a-directory/33270 "2021-06-24T15:15:15Z")

</div>

---

## [Run Postgres queries on a Windows target?](https://forum.ansible.com/t/run-postgres-queries-on-a-windows-target/35396)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [June 24, 2021, 2:52pm UTC](https://forum.ansible.com/t/run-postgres-queries-on-a-windows-target/35396 "2021-06-24T14:52:02Z")

</div>

I’m aware that the postgres\_\* modules only run on Linux. Is there a way to run Postgres queries on a Windows target? For example, I want to CREATE DATABASE myDB Thanks, Chris

---

## [python api return code. when task fails](https://forum.ansible.com/t/python-api-return-code-when-task-fails/35402)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 1\
**Last updated:** [June 24, 2021, 2:10pm UTC](https://forum.ansible.com/t/python-api-return-code-when-task-fails/35402 "2021-06-24T14:10:53Z")

</div>

I am running the python api to develop an inhouse script but the script returns always 0 even if a task failed. how can we capture the task exit code.? the python script always returns 0 even per instance there is a cop…

---

## [Ingress resource:Scheduled for sync](https://forum.ansible.com/t/ingress-resource-scheduled-for-sync/35400)

<div class="topic-metadata">

**Author:** [@Tapan\_Behera1](https://forum.ansible.com/u/Tapan_Behera1)\
**Replies:** 0\
**Last updated:** [June 24, 2021, 3:53am UTC](https://forum.ansible.com/t/ingress-resource-scheduled-for-sync/35400 "2021-06-24T03:53:22Z")

</div>

Hi All, I am trying to configure https for AWX tower Ingress resource is showing “scheduled for sync” Events: Type Reason Age From Message Normal Sync 39m (x2 over 3d20h) nginx-ingress-controller Scheduled for sync …

---

## [How to list installed and available versions of packages](https://forum.ansible.com/t/how-to-list-installed-and-available-versions-of-packages/35399)

<div class="topic-metadata">

**Author:** [@Ozgur\_G](https://forum.ansible.com/u/Ozgur_G)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 10:59pm UTC](https://forum.ansible.com/t/how-to-list-installed-and-available-versions-of-packages/35399 "2021-06-23T22:59:15Z")

</div>

Hi - I posted in ansible project group by mistake. How can I iterate over variable yum\_output results? Task I want to script is roughly like this name: List installed and available versions of packages. yum: list:…

---

## [Handling REST API output with json\_query](https://forum.ansible.com/t/handling-rest-api-output-with-json-query/35393)

<div class="topic-metadata">

**Author:** [@Mike\_Cifelli](https://forum.ansible.com/u/Mike_Cifelli)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 6:16pm UTC](https://forum.ansible.com/t/handling-rest-api-output-with-json-query/35393 "2021-06-23T18:16:06Z")

</div>

Seeking assistance with properly parsing returned json data, storing desired string as variable, to then append it in another play that updates a resource. Essentially I am interacting with Cisco ISE APIs to manage/updat…

---

## [Need clairifictions/help for dynamic tagging](https://forum.ansible.com/t/need-clairifictions-help-for-dynamic-tagging/35397)

<div class="topic-metadata">

**Author:** [@madeinindia.dot](https://forum.ansible.com/u/madeinindia.dot)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 4:18pm UTC](https://forum.ansible.com/t/need-clairifictions-help-for-dynamic-tagging/35397 "2021-06-23T16:18:00Z")

</div>

problem statement: we have a playbook that we’re looking to use but do not own, playbook has a number of tags that we’ll need to use to skip several tags that will impact our application. In order to enforce tower RBAC,…

---

## [Sort ansible\_facts.packages|dict2items](https://forum.ansible.com/t/sort-ansible-facts-packages-dict2items/35392)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 9:59am UTC](https://forum.ansible.com/t/sort-ansible-facts-packages-dict2items/35392 "2021-06-23T09:59:40Z")

</div>

Hi All, Request your help on how to sort a dict2item “{{ ansible\_facts.packages|dict2items }}”

---

## [Loop over vars not working](https://forum.ansible.com/t/loop-over-vars-not-working/34810)

<div class="topic-metadata">

**Author:** [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Replies:** 5\
**Last updated:** [June 23, 2021, 5:59am UTC](https://forum.ansible.com/t/loop-over-vars-not-working/34810 "2021-06-23T05:59:09Z")

</div>

I have a playbook that is doing two lookup for the next available Infoblox network subnet in two different networks. I set the facts and I’m trying to loop over the results of the two lookups. I print the results of the …

---

## [How to start Postgres service via pg\_ctl in Ansible in background?](https://forum.ansible.com/t/how-to-start-postgres-service-via-pg-ctl-in-ansible-in-background/35394)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 11:49pm UTC](https://forum.ansible.com/t/how-to-start-postgres-service-via-pg-ctl-in-ansible-in-background/35394 "2021-06-22T23:49:52Z")

</div>

Ansible 2.11.0 and PostgreSQL 13 I’m using the PostgreSQL binaries to start the PostgreSQL service in Ansible, like this name: “Start PostgreSQL version {{ pg\_version }} service” win\_shell: “pg\_ctl.exe -D {{ pg\_data\_…

---

## [Ansible win\_file can not create a directory on a partitioned drive?](https://forum.ansible.com/t/ansible-win-file-can-not-create-a-directory-on-a-partitioned-drive/35388)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 11:46pm UTC](https://forum.ansible.com/t/ansible-win-file-can-not-create-a-directory-on-a-partitioned-drive/35388 "2021-06-22T23:46:03Z")

</div>

Ansible 2.11.0 I created an I: disk partition on my Windows 2019 host under jenkins user, who is an admin. Logged in as jenkins, I can create a directory on the partition through the GUI. Now I have this Ansible task t…

---

## [New releases: ansible-core 2.11.2, ansible-base 2.10.11, ansible 2.9.23](https://forum.ansible.com/t/new-releases-ansible-core-2-11-2-ansible-base-2-10-11-ansible-2-9-23/35391)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 2:23pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-11-2-ansible-base-2-10-11-ansible-2-9-23/35391 "2021-06-22T14:23:17Z")

</div>

Hi all- we're happy to announce the general release of ansible-core 2.11.2, ansible-base 2.10.11, and ansible 2.9.23. These releases fix a templating security issue, CVE-2021-3583, in addition to several other bugs. H…

---

## [Is there a way to prevent debug module not to print passwords.](https://forum.ansible.com/t/is-there-a-way-to-prevent-debug-module-not-to-print-passwords/35390)

<div class="topic-metadata">

**Author:** [@anil\_reddy](https://forum.ansible.com/u/anil_reddy)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 1:03pm UTC](https://forum.ansible.com/t/is-there-a-way-to-prevent-debug-module-not-to-print-passwords/35390 "2021-06-22T13:03:06Z")

</div>

Hi Team, I am able to print password using debug module even though the password is marked as secret in the credential type. Is there a way to prevent debug module to not to print the password when it is marked as secr…

---

## [Block of include\_tasks with handler/notify](https://forum.ansible.com/t/block-of-include-tasks-with-handler-notify/35389)

<div class="topic-metadata">

**Author:** [@Stefan\_Engel](https://forum.ansible.com/u/Stefan_Engel)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 8:00am UTC](https://forum.ansible.com/t/block-of-include-tasks-with-handler-notify/35389 "2021-06-22T08:00:14Z")

</div>

Hi, Im trying to achieve the following: creating a block with multiple include tasks If any of the tasks change, write the config and sync to HA device (F5) tasks: name: F5 Vanity VIP update in all DC’s block: nam…

---

## [would like to skip unzip if directory exist](https://forum.ansible.com/t/would-like-to-skip-unzip-if-directory-exist/35085)

<div class="topic-metadata">

**Author:** [@jyanga](https://forum.ansible.com/u/jyanga)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 1:52am UTC](https://forum.ansible.com/t/would-like-to-skip-unzip-if-directory-exist/35085 "2021-06-22T01:52:26Z")

</div>

Hi! I would like to skip the unzip of my task if the directory already exists. Here are my info. contents of playbook: install\_zip.yml

---

## [Using delegate\_to: localhost on Windows servers not working as expected](https://forum.ansible.com/t/using-delegate-to-localhost-on-windows-servers-not-working-as-expected/35386)

<div class="topic-metadata">

**Author:** [@shane.do](https://forum.ansible.com/u/shane.do)\
**Replies:** 0\
**Last updated:** [June 21, 2021, 11:09pm UTC](https://forum.ansible.com/t/using-delegate-to-localhost-on-windows-servers-not-working-as-expected/35386 "2021-06-21T23:09:30Z")

</div>

Hi all, I’ve got a playbook that I’ve run on some linux servers for a long time without issue. I’m trying to expand this to cover some windows servers but having an issue with delegate\_to. Basically, we need something …

---

## [WSL2 Molecule testing Windows playbooks](https://forum.ansible.com/t/wsl2-molecule-testing-windows-playbooks/35310)

<div class="topic-metadata">

**Author:** [@John\_Menke](https://forum.ansible.com/u/John_Menke)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 10:03pm UTC](https://forum.ansible.com/t/wsl2-molecule-testing-windows-playbooks/35310 "2021-06-21T22:03:27Z")

</div>

I am new to Molecule and I have finally got the docker driver running from within WSL2. This covers the Linux hosts I have but we also have Windows hosts that I need to test for. is Vagrant the best option for this? Sho…

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

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