# Ansible Project

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

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

**Page:** 13

---

## [extracting key and certificate](https://forum.ansible.com/t/extracting-key-and-certificate/38381)

<div class="topic-metadata">

**Author:** [@Mahesh\_Nalavade](https://forum.ansible.com/u/Mahesh_Nalavade)\
**Replies:** 5\
**Last updated:** [August 29, 2023, 7:11pm UTC](https://forum.ansible.com/t/extracting-key-and-certificate/38381 "2023-08-29T19:11:39Z")

</div>

Hi All, Trying to extract the private key and certificate from pfx file format using ansible module.Can someone please provide the example.

---

## [Need to validate the Service Now Change Request through Ansible tower while deploying any production deployment through Ansible](https://forum.ansible.com/t/need-to-validate-the-service-now-change-request-through-ansible-tower-while-deploying-any-production-deployment-through-ansible/38377)

<div class="topic-metadata">

**Author:** [@Srinu](https://forum.ansible.com/u/Srinu)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 5:44pm UTC](https://forum.ansible.com/t/need-to-validate-the-service-now-change-request-through-ansible-tower-while-deploying-any-production-deployment-through-ansible/38377 "2023-08-29T17:44:15Z")

</div>

Hi, I need a help to validate the SNOW change request with Ansible which are deploying through Ansible template. Thanks

---

## [Formatting the  output  by line by line](https://forum.ansible.com/t/formatting-the-output-by-line-by-line/38380)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 7\
**Last updated:** [August 29, 2023, 2:34pm UTC](https://forum.ansible.com/t/formatting-the-output-by-line-by-line/38380 "2023-08-29T14:34:24Z")

</div>

Hi, My play book print the debug output as below TASK \[Print the status of the server\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[localhost\] =\> { “msg”: \[ “Exten…

---

## [Howto work with dynamic inventories but not cloud](https://forum.ansible.com/t/howto-work-with-dynamic-inventories-but-not-cloud/38386)

<div class="topic-metadata">

**Author:** [@cesarjorgemartinez](https://forum.ansible.com/u/cesarjorgemartinez)\
**Replies:** 0\
**Last updated:** [August 29, 2023, 8:57am UTC](https://forum.ansible.com/t/howto-work-with-dynamic-inventories-but-not-cloud/38386 "2023-08-29T08:57:47Z")

</div>

Hi, I’m use inventory files with Ansible as: inventory/fileinventory.yml As example: myansible: hosts: host1: ansible\_host: x.y.z.t ansible\_port: … myinventoryvar: xyz etc… But I ask if exist a form to pass on…

---

## [KVM/Qemu Running playbook from host](https://forum.ansible.com/t/kvm-qemu-running-playbook-from-host/38382)

<div class="topic-metadata">

**Author:** [@Amit\_Kumar3](https://forum.ansible.com/u/Amit_Kumar3)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 7:48pm UTC](https://forum.ansible.com/t/kvm-qemu-running-playbook-from-host/38382 "2023-08-28T19:48:31Z")

</div>

Task: checking if pip is installed or not, if not then installing pip. playbook.yml

---

## [host iterate on host rather on groups](https://forum.ansible.com/t/host-iterate-on-host-rather-on-groups/38379)

<div class="topic-metadata">

**Author:** [@Marc\_Monlouis](https://forum.ansible.com/u/Marc_Monlouis)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 6:52pm UTC](https://forum.ansible.com/t/host-iterate-on-host-rather-on-groups/38379 "2023-08-28T18:52:15Z")

</div>

Hello, I tring to write a role that manage installation of application modules on servers. All modules must be installed in one time: installtion command takes list of modules to install. My inventory file list all se…

---

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

---

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

---

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

---

## [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\_…

---

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

---

## [login once](https://forum.ansible.com/t/login-once/38328)

<div class="topic-metadata">

**Author:** [@Vijay\_K](https://forum.ansible.com/u/Vijay_K)\
**Replies:** 2\
**Last updated:** [August 23, 2023, 4:56am UTC](https://forum.ansible.com/t/login-once/38328 "2023-08-23T04:56:03Z")

</div>

Hi All I am in need of executing multiple commands on one server. Currently it can login each time and execute the command. But is there module or plugin where I can login once and execute the commands.

---

## [very very simple test with ansible.builtin.uri](https://forum.ansible.com/t/very-very-simple-test-with-ansible-builtin-uri/38354)

<div class="topic-metadata">

**Author:** [@dmastrop](https://forum.ansible.com/u/dmastrop)\
**Replies:** 4\
**Last updated:** [August 22, 2023, 11:48pm UTC](https://forum.ansible.com/t/very-very-simple-test-with-ansible-builtin-uri/38354 "2023-08-22T23:48:59Z")

</div>

hi all I am running a very very simple test with the ansible.builtin.uri and it is failing. This is in a development setup and the terraform infra and the apps are all made to be up and running before this simple test. …

---

## [Similar statement in ansible - string as char value n times](https://forum.ansible.com/t/similar-statement-in-ansible-string-as-char-value-n-times/38360)

<div class="topic-metadata">

**Author:** [@Luiz\_Gustavo](https://forum.ansible.com/u/Luiz_Gustavo)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 8:52pm UTC](https://forum.ansible.com/t/similar-statement-in-ansible-string-as-char-value-n-times/38360 "2023-08-22T20:52:41Z")

</div>

hello masters, Is there a simple way to create a variable like in the bash example? export sep=$(printf ‘%0.1s’ “-”{1…100}) I would need to create a variable with 100 characters ‘-’ but I wanted it in an elegant way l…

---

## ['community.vmware.vmware\_guest module' does not set password](https://forum.ansible.com/t/community-vmware-vmware-guest-module-does-not-set-password/38221)

<div class="topic-metadata">

**Author:** [@tlemons](https://forum.ansible.com/u/tlemons)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 8:06pm UTC](https://forum.ansible.com/t/community-vmware-vmware-guest-module-does-not-set-password/38221 "2023-08-22T20:06:46Z")

</div>

Hi I want to use the community.vmware.vmware\_guest module to set the ‘administrator’ password of a deployed Windows VM. My environment: SLES 15 SP5 Docker image python version = 3.11.3 Ansible Community Package 8.1.…

---

## [Copy File from Azure Storage mapped drive to VM](https://forum.ansible.com/t/copy-file-from-azure-storage-mapped-drive-to-vm/38339)

<div class="topic-metadata">

**Author:** [@Brad3](https://forum.ansible.com/u/Brad3)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 10:36am UTC](https://forum.ansible.com/t/copy-file-from-azure-storage-mapped-drive-to-vm/38339 "2023-08-22T10:36:14Z")

</div>

Hi, I’m trying to get Ansible to copy files from a mapped azure drive locally but I keep getting the below error: fatal: \[192.168.1.193\]: FAILED! =\> {“changed”: false, “dest”: “C:\\Temp\\dotNET53”, “msg”: “Cannot copy sr…

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

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