# Latest

**URL:** https://forum.ansible.com/latest.md?page=292

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

**Page:** 293

---

## [Update the port of server.xml file in Tomcat via ansible](https://forum.ansible.com/t/update-the-port-of-server-xml-file-in-tomcat-via-ansible/35431)

<div class="topic-metadata">

**Author:** [@Rajaniesh\_Kaushikk](https://forum.ansible.com/u/Rajaniesh_Kaushikk)\
**Replies:** 1\
**Last updated:** [June 29, 2021, 3:32am UTC](https://forum.ansible.com/t/update-the-port-of-server-xml-file-in-tomcat-via-ansible/35431 "2021-06-29T03:32:13Z")

</div>

Hi, I am very new to Ansible and I need small help top update the p\[ort number in the server.xml file in tomcat to change the port from 8080 to 8090 here is the server.xml (highlighted in bold) ------------------------…

---

## [Installation of AWX 19.2.0 in HA](https://forum.ansible.com/t/installation-of-awx-19-2-0-in-ha/35430)

<div class="topic-metadata">

**Author:** [@Nikita\_Sharma](https://forum.ansible.com/u/Nikita_Sharma)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 7:56pm UTC](https://forum.ansible.com/t/installation-of-awx-19-2-0-in-ha/35430 "2021-06-28T19:56:21Z")

</div>

Hi Team, How can I setup this version of AWX on different nodes? Single node setup I already did … but I am not sure how can I run this on different nodes?

---

## [AWX 17.0.0. copy Docker proxy into AWX containers](https://forum.ansible.com/t/awx-17-0-0-copy-docker-proxy-into-awx-containers/35429)

<div class="topic-metadata">

**Author:** [@Anando\_Singh](https://forum.ansible.com/u/Anando_Singh)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 7:31pm UTC](https://forum.ansible.com/t/awx-17-0-0-copy-docker-proxy-into-awx-containers/35429 "2021-06-28T19:31:57Z")

</div>

Hi all, I am trying to deploy AWX 17.0.0 behind corporate proxy. here is how I have set proxy for Docker /etc/systemd/system/docker.service.d/http-proxy.conf \[Service\] Environment=“HTTP\_PROXY=http://proxy.example.com:…

---

## [how to display sub variables using debug module](https://forum.ansible.com/t/how-to-display-sub-variables-using-debug-module/35427)

<div class="topic-metadata">

**Author:** [@John\_Veliss](https://forum.ansible.com/u/John_Veliss)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 4:05pm UTC](https://forum.ansible.com/t/how-to-display-sub-variables-using-debug-module/35427 "2021-06-28T16:05:21Z")

</div>

I am using the win.find module along with the debug module to list files. tasks: name: Find ALDM zip files ansible.windows.win\_find: paths: c:\\temp recurse: no patterns: “\*.zip” register: files\_to\_copy debug: ms…

---

## [need help to configure a loop](https://forum.ansible.com/t/need-help-to-configure-a-loop/35423)

<div class="topic-metadata">

**Author:** [@y\_c](https://forum.ansible.com/u/y_c)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 3:00pm UTC](https://forum.ansible.com/t/need-help-to-configure-a-loop/35423 "2021-06-28T15:00:45Z")

</div>

Hello guys, I need to run loop with a file but run all tasks item by item. Here is my conf: name: test hosts: yo tasks: name: task 1 win\_uri: url: https://{{ frontsrc }}/{{ item }}/ with\_lines: cat /etc/ansibl…

---

## [How to find the current VM where play is running](https://forum.ansible.com/t/how-to-find-the-current-vm-where-play-is-running/35426)

<div class="topic-metadata">

**Author:** [@Rajaniesh\_Kaushikk](https://forum.ansible.com/u/Rajaniesh_Kaushikk)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 2:52pm UTC](https://forum.ansible.com/t/how-to-find-the-current-vm-where-play-is-running/35426 "2021-06-28T14:52:56Z")

</div>

Hi, I want to automate the software deployment via ansible.Here is my problem where I need some help: When I run the playbook it goes through inventory to install software on a remote VM and update software config file…

---

## [How to pass variable to another playbook and from imported playbook to role used by it](https://forum.ansible.com/t/how-to-pass-variable-to-another-playbook-and-from-imported-playbook-to-role-used-by-it/35425)

<div class="topic-metadata">

**Author:** [@Rajaniesh\_Kaushikk](https://forum.ansible.com/u/Rajaniesh_Kaushikk)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 2:41pm UTC](https://forum.ansible.com/t/how-to-pass-variable-to-another-playbook-and-from-imported-playbook-to-role-used-by-it/35425 "2021-06-28T14:41:36Z")

</div>

Hi, I have two playbooks Playbook1 name: Create Azure VM hosts: localhost name: Include Delete IP address import\_playbook: deleteIPaddress.yml Vars: ipaddress:“{{ipaddress}}” Now in this imported playbook …

---

## [How to add task after importing the playbook](https://forum.ansible.com/t/how-to-add-task-after-importing-the-playbook/35424)

<div class="topic-metadata">

**Author:** [@Rajaniesh\_Kaushikk](https://forum.ansible.com/u/Rajaniesh_Kaushikk)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 2:37pm UTC](https://forum.ansible.com/t/how-to-add-task-after-importing-the-playbook/35424 "2021-06-28T14:37:47Z")

</div>

Hi, I want to add tasks after importing a playbook inside another playbook.’ name: Create Azure VM hosts: localhost name: Creating a targetIPAddress.txt copy: dest: “/home/azureuser/dmptargetIPAddress.txt” con…

---

## [Custom name for a template's temporary file name?](https://forum.ansible.com/t/custom-name-for-a-templates-temporary-file-name/35422)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 10:05am UTC](https://forum.ansible.com/t/custom-name-for-a-templates-temporary-file-name/35422 "2021-06-28T10:05:09Z")

</div>

Hi I'm trying to verify systemd unit files that we deploy with the template module like this: - name: Add systemd unit for our service become: true template: src: my.service.j2 dest: "/lib/systemd/syst…

---

## [How to use the tower\_schedule.](https://forum.ansible.com/t/how-to-use-the-tower-schedule/35420)

<div class="topic-metadata">

**Author:** [@Flavio\_Gobber](https://forum.ansible.com/u/Flavio_Gobber)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 8:37am UTC](https://forum.ansible.com/t/how-to-use-the-tower-schedule/35420 "2021-06-28T08:37:07Z")

</div>

Hello, I need to change the schedule parameter of a Template by script. I have found the command tower\_schedule but I am unable to include that command into a playbook. Here the yml file created:

---

## [change a schedule of a template.](https://forum.ansible.com/t/change-a-schedule-of-a-template/35405)

<div class="topic-metadata">

**Author:** [@Flavio\_Gobber](https://forum.ansible.com/u/Flavio_Gobber)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 8:26am UTC](https://forum.ansible.com/t/change-a-schedule-of-a-template/35405 "2021-06-28T08:26:00Z")

</div>

Hello, I need to create a playbook to update a schedule linked to a Template, this to automate the update a lot of schedule time. Thank you Flavio Gobber

---

## [Need help for getting the logs](https://forum.ansible.com/t/need-help-for-getting-the-logs/35319)

<div class="topic-metadata">

**Author:** [@Sasikanth\_Deva](https://forum.ansible.com/u/Sasikanth_Deva)\
**Replies:** 7\
**Last updated:** [June 28, 2021, 4:25am UTC](https://forum.ansible.com/t/need-help-for-getting-the-logs/35319 "2021-06-28T04:25:47Z")

</div>

Installation AWX on Kubernetes with version 10.0.0. Getting the error while integrating with the Logstash (screenshot is attached below). (attachments)

---

## [pyats doesn’t parse “show class-map”](https://forum.ansible.com/t/pyats-doesn-t-parse-show-class-map/35419)

<div class="topic-metadata">

**Author:** [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Replies:** 0\
**Last updated:** [June 27, 2021, 11:24am UTC](https://forum.ansible.com/t/pyats-doesn-t-parse-show-class-map/35419 "2021-06-27T11:24:47Z")

</div>

Hi There I am testing the following task; name: Gather all class maps ansible.utils.cli\_parse: command: show class-map parser: name: ansible.netcommon.pyats os: iosxe set\_fact: cm The task fails with the follow…

---

## [Ansible Nested Loop Question](https://forum.ansible.com/t/ansible-nested-loop-question/35418)

<div class="topic-metadata">

**Author:** [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Replies:** 2\
**Last updated:** [June 27, 2021, 11:13am UTC](https://forum.ansible.com/t/ansible-nested-loop-question/35418 "2021-06-27T11:13:42Z")

</div>

Hi there, I am using the following tasks to iterate over all policy-maps (outer loop) and I would also like to iterate over all class-maps into each policy-map (inner-loop) name: Gather all policy-maps ansible.utils.…

---

## [Install a french version of SQLServer on an english windows server with ansible](https://forum.ansible.com/t/install-a-french-version-of-sqlserver-on-an-english-windows-server-with-ansible/35403)

<div class="topic-metadata">

**Author:** [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Replies:** 1\
**Last updated:** [June 26, 2021, 1:49pm UTC](https://forum.ansible.com/t/install-a-french-version-of-sqlserver-on-an-english-windows-server-with-ansible/35403 "2021-06-26T13:49:52Z")

</div>

Hi, I try to silently install a french version of SQLServer (this is not my idea, it's become this is the licensed version we have) with ansible using some code like this (I already installed MUI French lang pack via an…

---

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

[Previous page](https://forum.ansible.com/latest.md?page=291)

[Next page](https://forum.ansible.com/latest.md?page=293)
