# Archives

**URL:** https://forum.ansible.com/c/archives/31.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

---

## [issue with line insert lininfile](https://forum.ansible.com/t/issue-with-line-insert-lininfile/36872)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 2:49pm UTC](https://forum.ansible.com/t/issue-with-line-insert-lininfile/36872 "2023-08-28T14:49:21Z")

</div>

I keep getting errors when running an insert line task the task to insert is name: add line lineinfile: backup: no backrefs: yes state: present path: “{{ file\_path }}” regexp: ‘^(\\s\*)\[#\]?{{ item.search }}(: )\*’ …

---

## [ssh problem ( ansible with pfsense )](https://forum.ansible.com/t/ssh-problem-ansible-with-pfsense/38373)

<div class="topic-metadata">

**Author:** [@Ala\_Karmous](https://forum.ansible.com/u/Ala_Karmous)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 2:30pm UTC](https://forum.ansible.com/t/ssh-problem-ansible-with-pfsense/38373 "2023-08-28T14:30:41Z")

</div>

Hello Everyone, i got this problem when i try to connect ssh Ansible → PfSense: ansible all -m ping x.x.x.x | FAILED! =\> { “changed”: false, “module\_stderr”: “Shared connection to x.x.x.x closed.\\r\\n”, “module\_stdo…

---

## [Ansible ssh problem (with pfsense)](https://forum.ansible.com/t/ansible-ssh-problem-with-pfsense/38372)

<div class="topic-metadata">

**Author:** [@Ala\_Karmous](https://forum.ansible.com/u/Ala_Karmous)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 1:50pm UTC](https://forum.ansible.com/t/ansible-ssh-problem-with-pfsense/38372 "2023-08-28T13:50:57Z")

</div>

ansible all -m ping x.x.x.x | FAILED! =\> { “changed”: false, “module\_stderr”: “Shared connection to x.x.x.x closed.\\r\\n”, “module\_stdout”: “/bin/sh: /usr/bin/python3: not found\\r\\n”, “msg”: “The module failed to exe…

---

## [Problem with ansible collection](https://forum.ansible.com/t/problem-with-ansible-collection/38353)

<div class="topic-metadata">

**Author:** [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 10:31am UTC](https://forum.ansible.com/t/problem-with-ansible-collection/38353 "2023-08-28T10:31:21Z")

</div>

Hi all! I want to use the ‘community.general.ipmi\_power’ module which is included in the ‘community.general’ collection. After updating my gitlab repository I am not able to sync my project (always failed). Do you hav…

---

## [Setting timeout in servicenow.itsm.now inventory module](https://forum.ansible.com/t/setting-timeout-in-servicenow-itsm-now-inventory-module/38358)

<div class="topic-metadata">

**Author:** [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Replies:** 4\
**Last updated:** [August 25, 2023, 7:44pm UTC](https://forum.ansible.com/t/setting-timeout-in-servicenow-itsm-now-inventory-module/38358 "2023-08-25T19:44:58Z")

</div>

I’ve run my inventory source 10 times and it’s failed 9 for timeout. It worked once, by dumb luck, so I know my problem is timeout. I cannot set the timeout. I’ve tried setting it in the environment, in the AWX Job Setti…

---

## [AWX jobs taking ~10 minutes to show any job output](https://forum.ansible.com/t/awx-jobs-taking-10-minutes-to-show-any-job-output/38351)

<div class="topic-metadata">

**Author:** [@Michael\_Hagans](https://forum.ansible.com/u/Michael_Hagans)\
**Replies:** 2\
**Last updated:** [August 25, 2023, 7:31pm UTC](https://forum.ansible.com/t/awx-jobs-taking-10-minutes-to-show-any-job-output/38351 "2023-08-25T19:31:35Z")

</div>

Hello, We’re running AWX version 17.0.1 and our jobs take anywhere from 10 - 15 minutes to show any output. The job is in a running state, not pending while waiting for the job output to display. This is only occurring …

---

## [How to make existing host to be managed by inventory source](https://forum.ansible.com/t/how-to-make-existing-host-to-be-managed-by-inventory-source/38369)

<div class="topic-metadata">

**Author:** [@anil\_reddy](https://forum.ansible.com/u/anil_reddy)\
**Replies:** 2\
**Last updated:** [August 25, 2023, 6:07pm UTC](https://forum.ansible.com/t/how-to-make-existing-host-to-be-managed-by-inventory-source/38369 "2023-08-25T18:07:39Z")

</div>

Hi All, We have a lot of inventories in production for different organizations. We are planning to manage them using inventory source using the data from our CMDB. We have written a script for that and it is working i…

---

## [Awx error message -- Crowstrike Sensor](https://forum.ansible.com/t/awx-error-message-crowstrike-sensor/38295)

<div class="topic-metadata">

**Author:** [@Hernan\_Sal](https://forum.ansible.com/u/Hernan_Sal)\
**Replies:** 7\
**Last updated:** [August 25, 2023, 5:19pm UTC](https://forum.ansible.com/t/awx-error-message-crowstrike-sensor/38295 "2023-08-25T17:19:53Z")

</div>

Hi group, I’m working on an awx setup on k3. I’m running a playbook for crowdstrike sensor/falcon from their github. I get this error, but I can’t find any logs anywhere that describe the problem. THe pods’ logs don’t …

---

## [AWX cpu/memory optimization or moving on from docker-compose to  openshift](https://forum.ansible.com/t/awx-cpu-memory-optimization-or-moving-on-from-docker-compose-to-openshift/38348)

<div class="topic-metadata">

**Author:** [@hulya\_kayikci1](https://forum.ansible.com/u/hulya_kayikci1)\
**Replies:** 4\
**Last updated:** [August 25, 2023, 5:08pm UTC](https://forum.ansible.com/t/awx-cpu-memory-optimization-or-moving-on-from-docker-compose-to-openshift/38348 "2023-08-25T17:08:09Z")

</div>

Hello, AWX version 21.6.0 is running on our virtual redhat 8 server. It provides service through 4 containers built with docker-compose. We want to stand up this environment completely in our openshift environment. W…

---

## [How to remove a single item from a list within a nested dictionary](https://forum.ansible.com/t/how-to-remove-a-single-item-from-a-list-within-a-nested-dictionary/38376)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 3\
**Last updated:** [August 25, 2023, 4:57pm UTC](https://forum.ansible.com/t/how-to-remove-a-single-item-from-a-list-within-a-nested-dictionary/38376 "2023-08-25T16:57:28Z")

</div>

The source nested dictionary is for instance the following: vpc: provider: net\_type: ‘db’ net\_ipv4\_subnet: ‘10.0.0.0/16’ net\_ipv6\_subnet: ‘FD00::/64’ net\_id: ‘0’ nic\_ids: 1111111111 2222222222 net\_type: ‘dns’ ne…

---

## [facing issue with shell module in ansible](https://forum.ansible.com/t/facing-issue-with-shell-module-in-ansible/38371)

<div class="topic-metadata">

**Author:** [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Replies:** 5\
**Last updated:** [August 25, 2023, 3:16pm UTC](https://forum.ansible.com/t/facing-issue-with-shell-module-in-ansible/38371 "2023-08-25T15:16:07Z")

</div>

Hi Team, I’m trying the below code to attach region-specific waf to region-specific alb’s. But the below code doesn’t seem to be working for associating the waf to alb’s. The last shell module is having issues, “$alb\_ar…

---

## [Safer way to fail playbook on callback instead exit(1)](https://forum.ansible.com/t/safer-way-to-fail-playbook-on-callback-instead-exit-1/38375)

<div class="topic-metadata">

**Author:** [@Vlado\_Portos](https://forum.ansible.com/u/Vlado_Portos)\
**Replies:** 0\
**Last updated:** [August 25, 2023, 11:17am UTC](https://forum.ansible.com/t/safer-way-to-fail-playbook-on-callback-instead-exit-1/38375 "2023-08-25T11:17:31Z")

</div>

Hi all, I’m running AWX on single node k3s cluster and need to fail a job if “Could not match supplied host pattern, ignoring:…” basically hook into v2\_playbook\_on\_no\_hosts\_matched I have a callback\_plugin that basical…

---

## [Question on the multiple loop structure in my playbook](https://forum.ansible.com/t/question-on-the-multiple-loop-structure-in-my-playbook/38367)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 2\
**Last updated:** [August 25, 2023, 10:57am UTC](https://forum.ansible.com/t/question-on-the-multiple-loop-structure-in-my-playbook/38367 "2023-08-25T10:57:46Z")

</div>

Hi All , I trying to modify the sshd\_config parameter using the lineinfile ansible module . I would like to delegate this to multiple host . As we have used the loop twice its unable to resolve the loop structure. vars…

---

## [Executing Python pytest test scripts from Ansible AWX](https://forum.ansible.com/t/executing-python-pytest-test-scripts-from-ansible-awx/38374)

<div class="topic-metadata">

**Author:** [@Tom\_Johnson](https://forum.ansible.com/u/Tom_Johnson)\
**Replies:** 0\
**Last updated:** [August 25, 2023, 10:39am UTC](https://forum.ansible.com/t/executing-python-pytest-test-scripts-from-ansible-awx/38374 "2023-08-25T10:39:47Z")

</div>

Hi, I’m tryng to run TestInfra from Ansible Tower on remote hosts. However, every solution I’ve explored requires creating an Ansible Playbook that will be used to set up the environment and run the TestInfra/pytest scr…

---

## [Delegate \_execute\_method and access inventory in ActionModule](https://forum.ansible.com/t/delegate-execute-method-and-access-inventory-in-actionmodule/37736)

<div class="topic-metadata">

**Author:** [@Felix1](https://forum.ansible.com/u/Felix1)\
**Replies:** 1\
**Last updated:** [August 25, 2023, 5:55am UTC](https://forum.ansible.com/t/delegate-execute-method-and-access-inventory-in-actionmodule/37736 "2023-08-25T05:55:00Z")

</div>

Hi all, I am currently developing an Action-module which should do the following: I have a playbook like this: hosts: target-host tasks: my\_module: src\_host: source-host regex: some\_regex It should be checked if …

---

## [Add affinity group vm ovirt\_vm](https://forum.ansible.com/t/add-affinity-group-vm-ovirt-vm/37816)

<div class="topic-metadata">

**Author:** [@Pietro\_Pesce\_Mistak3](https://forum.ansible.com/u/Pietro_Pesce_Mistak3)\
**Replies:** 1\
**Last updated:** [August 25, 2023, 5:07am UTC](https://forum.ansible.com/t/add-affinity-group-vm-ovirt-vm/37816 "2023-08-25T05:07:45Z")

</div>

Hello i want create a task to add vm on existing affinity group. How can do? Thanks Regards

---

## [Ansible Expect - delaybeforesend how to set](https://forum.ansible.com/t/ansible-expect-delaybeforesend-how-to-set/37412)

<div class="topic-metadata">

**Author:** [@Phillip\_Wu](https://forum.ansible.com/u/Phillip_Wu)\
**Replies:** 1\
**Last updated:** [August 25, 2023, 4:10am UTC](https://forum.ansible.com/t/ansible-expect-delaybeforesend-how-to-set/37412 "2023-08-25T04:10:23Z")

</div>

Hi, I undestand that ‘Ansible Expect’ uses python pexpect. Do you know if ansible playbook can change pexpect’s ‘delaybeforesend’? ’ delaybeforesend’ is used to wait a little time before sending a response to a prompt…

---

## [AWS List of Availability Zones](https://forum.ansible.com/t/aws-list-of-availability-zones/37426)

<div class="topic-metadata">

**Author:** [@lee](https://forum.ansible.com/u/lee)\
**Replies:** 1\
**Last updated:** [August 25, 2023, 3:42am UTC](https://forum.ansible.com/t/aws-list-of-availability-zones/37426 "2023-08-25T03:42:44Z")

</div>

Hi, I have a small test playbook https://pastebin.com/kciEWPJ7 The az.out.json is at https://pastebin.com/BnfaLG1N What I need is the region\_name and corresponding zone\_name(s) listed like https://pastebin.com/3H…

---

## [Custom modules that can run on both Linux and Windows](https://forum.ansible.com/t/custom-modules-that-can-run-on-both-linux-and-windows/38359)

<div class="topic-metadata">

**Author:** [@Michele](https://forum.ansible.com/u/Michele)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 3:18pm UTC](https://forum.ansible.com/t/custom-modules-that-can-run-on-both-linux-and-windows/38359 "2023-08-24T15:18:11Z")

</div>

Hello, I’ve created two modules-- one in Python and one in PowerShell for each of my remote machines. Of course, as expected, the Python one can run only on the remote Linux and the PowerShell-written module can only be…

---

## [Docker\_image : Error loading image Specified path does not exist. (The path being perfectly fine)](https://forum.ansible.com/t/docker-image-error-loading-image-specified-path-does-not-exist-the-path-being-perfectly-fine/38362)

<div class="topic-metadata">

**Author:** [@Frederic\_Lauzin](https://forum.ansible.com/u/Frederic_Lauzin)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 1:11pm UTC](https://forum.ansible.com/t/docker-image-error-loading-image-specified-path-does-not-exist-the-path-being-perfectly-fine/38362 "2023-08-24T13:11:02Z")

</div>

Hi ! Hope everyone is doing well, I downloaded grafana image from docker hub. I generated my .tar using : sudo docker save -o /path/grafana\_image.tar grafana/grafana:latest I am using a role to define grafana, here …

---

## [ansible using master sockets with a jump host](https://forum.ansible.com/t/ansible-using-master-sockets-with-a-jump-host/38368)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 0\
**Last updated:** [August 24, 2023, 11:48am UTC](https://forum.ansible.com/t/ansible-using-master-sockets-with-a-jump-host/38368 "2023-08-24T11:48:46Z")

</div>

We are trying to use ansible to set up things through master sockets through a jump host to another host. It works for the first host after the jump host, but succeeding hosts do ot work as the socket is not kept open (h…

---

## [Vmware VM is created with a default template sometime the drive letter parameter gets drifted.](https://forum.ansible.com/t/vmware-vm-is-created-with-a-default-template-sometime-the-drive-letter-parameter-gets-drifted/38361)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 10:44am UTC](https://forum.ansible.com/t/vmware-vm-is-created-with-a-default-template-sometime-the-drive-letter-parameter-gets-drifted/38361 "2023-08-24T10:44:55Z")

</div>

Hi Team, I have a strange issue while add disk to my vm image and I using the community vmware\_guest\_disk . when vm is created with a default template sometime the drive letter parameter is drifted. example /dev/sdb is…

---

## [Running ansible through Windows Jump Host](https://forum.ansible.com/t/running-ansible-through-windows-jump-host/38365)

<div class="topic-metadata">

**Author:** [@Bikram](https://forum.ansible.com/u/Bikram)\
**Replies:** 1\
**Last updated:** [August 23, 2023, 8:42pm UTC](https://forum.ansible.com/t/running-ansible-through-windows-jump-host/38365 "2023-08-23T20:42:15Z")

</div>

Hi Team, I have a use case where I have to run ansible through a windows jump host only due to the fact that ssh port is only open from jump host to the target devices. My ansible server cannot reach the target devices…

---

## [device letter drift and issue with ansible parted](https://forum.ansible.com/t/device-letter-drift-and-issue-with-ansible-parted/38364)

<div class="topic-metadata">

**Author:** [@saikrishna\_kommoju](https://forum.ansible.com/u/saikrishna_kommoju)\
**Replies:** 0\
**Last updated:** [August 23, 2023, 7:25pm UTC](https://forum.ansible.com/t/device-letter-drift-and-issue-with-ansible-parted/38364 "2023-08-23T19:25:46Z")

</div>

Hello everyone, Greetings! name: “Add disk for VM: {{ vm\_name }}” community.vmware.vmware\_guest\_disk: hostname: hostname username: username password: password validate\_certs: false datacenter: XYZ moid: ‘{{ vm\_…

---

## [Reset Admin Login Password](https://forum.ansible.com/t/reset-admin-login-password/38350)

<div class="topic-metadata">

**Author:** [@justanothercloudguy](https://forum.ansible.com/u/justanothercloudguy)\
**Replies:** 1\
**Last updated:** [August 23, 2023, 7:01pm UTC](https://forum.ansible.com/t/reset-admin-login-password/38350 "2023-08-23T19:01:18Z")

</div>

Dear All, Does resetting password on Secrets won’t affect the running AWX web instance? Does that means we need to login to the POD and do the reset using awx-manage cli? Need further clarifications Thank you in adva…

---

## [Remote Execution Node is not in the receptor mesh](https://forum.ansible.com/t/remote-execution-node-is-not-in-the-receptor-mesh/38363)

<div class="topic-metadata">

**Author:** [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Replies:** 0\
**Last updated:** [August 23, 2023, 6:55pm UTC](https://forum.ansible.com/t/remote-execution-node-is-not-in-the-receptor-mesh/38363 "2023-08-23T18:55:44Z")

</div>

Hello, We’d like to gather a bit more information from you. Could you please provide us with the logs from the AWX EE container running in the AWX task pod(That’s where the receptor service is running)? You can also tai…

---

## [AWX -\> max. PostgreSQL version? (15)](https://forum.ansible.com/t/awx-max-postgresql-version-15/38300)

<div class="topic-metadata">

**Author:** [@Tian\_Muc](https://forum.ansible.com/u/Tian_Muc)\
**Replies:** 6\
**Last updated:** [August 23, 2023, 6:38pm UTC](https://forum.ansible.com/t/awx-max-postgresql-version-15/38300 "2023-08-23T18:38:50Z")

</div>

Hello there :slight\_smile: I´m wondering which PostgreSQL version might be the latest, AWX supports. Could there be any limitations? We´d like to upgrade our AWX DB Hosts, if possible to PostgreSQL version 15. Red Ha…

---

## [uri post to avoid duplicate](https://forum.ansible.com/t/uri-post-to-avoid-duplicate/38345)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 2\
**Last updated:** [August 23, 2023, 9:10am UTC](https://forum.ansible.com/t/uri-post-to-avoid-duplicate/38345 "2023-08-23T09:10:40Z")

</div>

Hi , I have the below uri module to post the details inside the web api name: REST POST Example uri: url: “{{ webapp\_url }}/api/orgs” method: POST return\_content: yes body: “{ "name": "{{ project\_name }}" }” bod…

---

## [Call async\_status & python script in one task (Failed error message)](https://forum.ansible.com/t/call-async-status-python-script-in-one-task-failed-error-message/37683)

<div class="topic-metadata">

**Author:** [@neha0021997](https://forum.ansible.com/u/neha0021997)\
**Replies:** 1\
**Last updated:** [August 23, 2023, 6:43am UTC](https://forum.ansible.com/t/call-async-status-python-script-in-one-task-failed-error-message/37683 "2023-08-23T06:43:44Z")

</div>

Hi Team, Below are the two tasks which I am including in playbook. Main agenda is that, when my packages are installing, at that time rather than just getting waiting or retried message, I wanted some customised message…

---

## [Issue with fstab entry added by ansible mount module its adding white space with \\40 character](https://forum.ansible.com/t/issue-with-fstab-entry-added-by-ansible-mount-module-its-adding-white-space-with-40-character/38356)

<div class="topic-metadata">

**Author:** [@Deepak\_B\_K](https://forum.ansible.com/u/Deepak_B_K)\
**Replies:** 4\
**Last updated:** [August 23, 2023, 5:52am UTC](https://forum.ansible.com/t/issue-with-fstab-entry-added-by-ansible-mount-module-its-adding-white-space-with-40-character/38356 "2023-08-23T05:52:42Z")

</div>

Hi Groups, I am using ansible.builtin.mountd module to mount and add the entry in the fstab in couple of hosts but I see that its adding \\040 for the white space . How to get rid of this junk character being added to /e…

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

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