# Ansible Project

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

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

**Page:** 14

---

## [How can win\_acl be used to obtain the status of a file?](https://forum.ansible.com/t/how-can-win-acl-be-used-to-obtain-the-status-of-a-file/37790)

<div class="topic-metadata">

**Author:** [@Bin\_Wang](https://forum.ansible.com/u/Bin_Wang)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 4:57am UTC](https://forum.ansible.com/t/how-can-win-acl-be-used-to-obtain-the-status-of-a-file/37790 "2023-08-22T04:57:59Z")

</div>

want to obtain the ACL list of a file path through win\_acl and then delete all users except for the three users: System, Administrators, and Service. However, it seems to be unsuccessful. So, I tried to get the JSON form…

---

## [ansible command to reboot host](https://forum.ansible.com/t/ansible-command-to-reboot-host/37811)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 4:53am UTC](https://forum.ansible.com/t/ansible-command-to-reboot-host/37811 "2023-08-22T04:53:40Z")

</div>

I am using follwing command to reboot linux host ansible -i hosts linux\_vms -a “/sbin/shutdown -r now” -Kk --ssh-extra-args=‘-o StrictHostKeyChecking=no’ but keep getting folowing Failed to execute operation: Connecti…

---

## [rescue for target failed connection question using localhost](https://forum.ansible.com/t/rescue-for-target-failed-connection-question-using-localhost/38355)

<div class="topic-metadata">

**Author:** [@Daniel\_Barros](https://forum.ansible.com/u/Daniel_Barros)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 11:41pm UTC](https://forum.ansible.com/t/rescue-for-target-failed-connection-question-using-localhost/38355 "2023-08-21T23:41:11Z")

</div>

Hi everyone. Good day. When we have a regular task like creating a file, or something similar, we can use block and rescue to manage what happens in failure cases. But can we do the same for the first task (connection)…

---

## [How to replace only a specific entry in a nested dictionary](https://forum.ansible.com/t/how-to-replace-only-a-specific-entry-in-a-nested-dictionary/38352)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 3:58pm UTC](https://forum.ansible.com/t/how-to-replace-only-a-specific-entry-in-a-nested-dictionary/38352 "2023-08-21T15:58:55Z")

</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’ net\_…

---

## [Don't show all ansible output only show msg output on the console](https://forum.ansible.com/t/dont-show-all-ansible-output-only-show-msg-output-on-the-console/38264)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 5\
**Last updated:** [August 21, 2023, 3:22pm UTC](https://forum.ansible.com/t/dont-show-all-ansible-output-only-show-msg-output-on-the-console/38264 "2023-08-21T15:22:07Z")

</div>

I have a playbook with bunch of tasks, I am running that playbook on jenkins and all my tasks are working fine. I just don’t want all the output to be seen on the screen except the debug msg. Hoc can I achieve this. TAS…

---

## [Privilege escalation by rsa key](https://forum.ansible.com/t/privilege-escalation-by-rsa-key/38344)

<div class="topic-metadata">

**Author:** [@Evan\_Hisey](https://forum.ansible.com/u/Evan_Hisey)\
**Replies:** 8\
**Last updated:** [August 21, 2023, 3:19pm UTC](https://forum.ansible.com/t/privilege-escalation-by-rsa-key/38344 "2023-08-21T15:19:38Z")

</div>

So I have been doing some rsa-key based to factor authentication work recently, but have hit a stumbling block with Ansible. Has anyone ever done key based privilege escalation? Apparently just use the ssh connection opt…

---

## [Shell module commands runs on Local Controller](https://forum.ansible.com/t/shell-module-commands-runs-on-local-controller/38346)

<div class="topic-metadata">

**Author:** [@Harry\_Clendening](https://forum.ansible.com/u/Harry_Clendening)\
**Replies:** 7\
**Last updated:** [August 21, 2023, 2:40pm UTC](https://forum.ansible.com/t/shell-module-commands-runs-on-local-controller/38346 "2023-08-21T14:40:38Z")

</div>

Good morning, I am attempting to use the (shell:) command to obtain the disk space for a remote host. Once I get the command working, I’ll then use AWK to filter the output. However, the below example playbook insists …

---

## [Ansible win\_lineinfile Assistance](https://forum.ansible.com/t/ansible-win-lineinfile-assistance/37924)

<div class="topic-metadata">

**Author:** [@Huskers79](https://forum.ansible.com/u/Huskers79)\
**Replies:** 1\
**Last updated:** [August 20, 2023, 10:10pm UTC](https://forum.ansible.com/t/ansible-win-lineinfile-assistance/37924 "2023-08-20T22:10:01Z")

</div>

Good day all, Not sure If I’m doing something wrong here or hitting a bug. Goal is to update the below line. \<key=“Token” value=“some\_token” /\> community.windows.win\_lineinfile: path: ‘{{ some\_path }}’ regex: '(.+“…

---

## [Fortigate](https://forum.ansible.com/t/fortigate/37969)

<div class="topic-metadata">

**Author:** [@Bahagia\_BAG](https://forum.ansible.com/u/Bahagia_BAG)\
**Replies:** 1\
**Last updated:** [August 20, 2023, 10:05pm UTC](https://forum.ansible.com/t/fortigate/37969 "2023-08-20T22:05:11Z")

</div>

Hello I want to save fortigate configuration using the command show full-configuration. I already installed fortinet.fortios:2.2.3 What module do I have to load in ansible playbook? Best regards

---

## [add Connector to server.xml file](https://forum.ansible.com/t/add-connector-to-server-xml-file/38005)

<div class="topic-metadata">

**Author:** [@shloco](https://forum.ansible.com/u/shloco)\
**Replies:** 1\
**Last updated:** [August 20, 2023, 10:03pm UTC](https://forum.ansible.com/t/add-connector-to-server-xml-file/38005 "2023-08-20T22:03:48Z")

</div>

Hi Team, I’m trying to add additional Connector to server.xml file, I try to use XML module so far without no luck. any ideas ? community.general.xml: path: server.xml xpath: /Server/Service add\_children: Connecto…

---

## [copy file to multiple datastores in different vcenters](https://forum.ansible.com/t/copy-file-to-multiple-datastores-in-different-vcenters/38117)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [August 19, 2023, 6:15pm UTC](https://forum.ansible.com/t/copy-file-to-multiple-datastores-in-different-vcenters/38117 "2023-08-19T18:15:59Z")

</div>

any idea how to modify my playbook to copy file to multiple datastores on multiple vcenters?

---

## [how to disable vcenter alarm for esxi host](https://forum.ansible.com/t/how-to-disable-vcenter-alarm-for-esxi-host/38164)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [August 19, 2023, 6:12pm UTC](https://forum.ansible.com/t/how-to-disable-vcenter-alarm-for-esxi-host/38164 "2023-08-19T18:12:56Z")

</div>

any idea how to disable/enable vcenter alarm for esxi host in ansible task?

---

## [Ansible vmware vm configuration parameters](https://forum.ansible.com/t/ansible-vmware-vm-configuration-parameters/38191)

<div class="topic-metadata">

**Author:** [@ppktm](https://forum.ansible.com/u/ppktm)\
**Replies:** 1\
**Last updated:** [August 19, 2023, 6:10pm UTC](https://forum.ansible.com/t/ansible-vmware-vm-configuration-parameters/38191 "2023-08-19T18:10:57Z")

</div>

Hello, I am using ovf to deploy a new vm. Is it also possible to set VM configuration parameters using ansible community.vmware ? After a vm is provisioned , I need to add and set new configuration parameter such as: gu…

---

## [Ansible Playbook for enable ssl on weblogic 12c server using WLST](https://forum.ansible.com/t/ansible-playbook-for-enable-ssl-on-weblogic-12c-server-using-wlst/38244)

<div class="topic-metadata">

**Author:** [@malek\_sakir](https://forum.ansible.com/u/malek_sakir)\
**Replies:** 1\
**Last updated:** [August 19, 2023, 6:08pm UTC](https://forum.ansible.com/t/ansible-playbook-for-enable-ssl-on-weblogic-12c-server-using-wlst/38244 "2023-08-19T18:08:47Z")

</div>

In my environment we have deployed oracle WebLogic 12c on windows host using of wlst.cmd we have perform some tasks wlst.cmd path is C:\\Oracle\\Middleware\\Oracle\_Home\\oracle\_common\\common\\bin\\wlst.cmd first i am go to …

---

## [Stop source/destination check of an Instance](https://forum.ansible.com/t/stop-source-destination-check-of-an-instance/38268)

<div class="topic-metadata">

**Author:** [@Faizan](https://forum.ansible.com/u/Faizan)\
**Replies:** 1\
**Last updated:** [August 19, 2023, 6:07pm UTC](https://forum.ansible.com/t/stop-source-destination-check-of-an-instance/38268 "2023-08-19T18:07:57Z")

</div>

I am calling a global role in the main file to spin up an ec2 instance in the aws then i want to use local role to stop the source/destination check for that instance. I am not finding a way to do it using any of the ans…

---

## [Looping through data/vars file turns number into a string when creating a site in Cisco DNA Center](https://forum.ansible.com/t/looping-through-data-vars-file-turns-number-into-a-string-when-creating-a-site-in-cisco-dna-center/38349)

<div class="topic-metadata">

**Author:** [@paulbauer1](https://forum.ansible.com/u/paulbauer1)\
**Replies:** 2\
**Last updated:** [August 18, 2023, 5:57pm UTC](https://forum.ansible.com/t/looping-through-data-vars-file-turns-number-into-a-string-when-creating-a-site-in-cisco-dna-center/38349 "2023-08-18T17:57:44Z")

</div>

When using the task below with the yaml data that is shown below I end up getting an error indicating that my latitude number is not a number. If I just hard code a number in the latitude value the task works as expected…

---

## [Loopless alternative?](https://forum.ansible.com/t/loopless-alternative/38341)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 8\
**Last updated:** [August 18, 2023, 1:34pm UTC](https://forum.ansible.com/t/loopless-alternative/38341 "2023-08-18T13:34:49Z")

</div>

Hii I have a list of dicts, where I want to inject a number of helper keys. I can do this with set\_facts in a loop. Example playbook (hopefully this displays OK):

---

## [How to pass the value of variable created by register from shell module to oracle RMAN](https://forum.ansible.com/t/how-to-pass-the-value-of-variable-created-by-register-from-shell-module-to-oracle-rman/38322)

<div class="topic-metadata">

**Author:** [@Luiz\_Gustavo](https://forum.ansible.com/u/Luiz_Gustavo)\
**Replies:** 2\
**Last updated:** [August 16, 2023, 5:03pm UTC](https://forum.ansible.com/t/how-to-pass-the-value-of-variable-created-by-register-from-shell-module-to-oracle-rman/38322 "2023-08-16T17:03:13Z")

</div>

Hey guys. I’m passing commands to rman through a variable created by the shell module. Where am I going wrong? … name: Creates purge script from the original script shell: egrep -i ‘connect|delete’ “{{ script\_path…

---

## [Ansible 2.15 Warning message](https://forum.ansible.com/t/ansible-2-15-warning-message/38321)

<div class="topic-metadata">

**Author:** [@Dhirender\_Yadav](https://forum.ansible.com/u/Dhirender_Yadav)\
**Replies:** 2\
**Last updated:** [August 16, 2023, 1:21pm UTC](https://forum.ansible.com/t/ansible-2-15-warning-message/38321 "2023-08-16T13:21:37Z")

</div>

Hi Team, Recently we have upgraded to ansible 2.15 and we are getting below WARNINGS. TASK \[fail\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [what determines which version of ansible is invoked when running ansible](https://forum.ansible.com/t/what-determines-which-version-of-ansible-is-invoked-when-running-ansible/38317)

<div class="topic-metadata">

**Author:** [@dmastrop](https://forum.ansible.com/u/dmastrop)\
**Replies:** 4\
**Last updated:** [August 16, 2023, 1:49am UTC](https://forum.ansible.com/t/what-determines-which-version-of-ansible-is-invoked-when-running-ansible/38317 "2023-08-16T01:49:35Z")

</div>

hi I have 2 versions of ansible installed on my Mac.(it was not intentional) One version was not installed through pip and the other version was installed through pip. I had to manually fix some permissions issues and…

---

## [Including a role from a different module](https://forum.ansible.com/t/including-a-role-from-a-different-module/38325)

<div class="topic-metadata">

**Author:** [@Werner\_van\_der\_Merwe](https://forum.ansible.com/u/Werner_van_der_Merwe)\
**Replies:** 1\
**Last updated:** [August 15, 2023, 8:32pm UTC](https://forum.ansible.com/t/including-a-role-from-a-different-module/38325 "2023-08-15T20:32:29Z")

</div>

Due to policies, I cannot upload company code to Galaxy. I am trying to use git roles to work around this. I based my approach off this answer, and by referencing the doco here. All the Ansible code is in two repositor…

---

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

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 0\
**Last updated:** [August 15, 2023, 5:39pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-3-0/38336 "2023-08-15T17:39:16Z")

</div>

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

---

## [ansible does require sudo password (even when key is set up)](https://forum.ansible.com/t/ansible-does-require-sudo-password-even-when-key-is-set-up/38335)

<div class="topic-metadata">

**Author:** [@Simon\_Hryszko](https://forum.ansible.com/u/Simon_Hryszko)\
**Replies:** 4\
**Last updated:** [August 15, 2023, 3:17pm UTC](https://forum.ansible.com/t/ansible-does-require-sudo-password-even-when-key-is-set-up/38335 "2023-08-15T15:17:25Z")

</div>

Hey, I am new with Ansible, trying to set up Ansible, so it won’t require password, so I have bootstrap role what after success run should let Ansible run any action without password When run Ansible it throws err…

---

## [New release: ansible-core 2.14.9](https://forum.ansible.com/t/new-release-ansible-core-2-14-9/38332)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [August 14, 2023, 7:39pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-14-9/38332 "2023-08-14T19:39:29Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.14.9 How to get it

---

## [New release: ansible-core 2.15.3](https://forum.ansible.com/t/new-release-ansible-core-2-15-3/38331)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [August 14, 2023, 7:35pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-15-3/38331 "2023-08-14T19:35:37Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.15.3 How to get it

---

## [Antivirus Whitelist Recommendations](https://forum.ansible.com/t/antivirus-whitelist-recommendations/38330)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 1\
**Last updated:** [August 14, 2023, 5:31pm UTC](https://forum.ansible.com/t/antivirus-whitelist-recommendations/38330 "2023-08-14T17:31:56Z")

</div>

Good Morning, running into an issue, which seems to be turning into a game of whack-a-mole. Our org uses SentinelOne for server antivirus, and it keeps flagging various python scripts, which I know are valid scripts for…

---

## [\[anisible\]Install package](https://forum.ansible.com/t/anisible-install-package/38327)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 1:07pm UTC](https://forum.ansible.com/t/anisible-install-package/38327 "2023-08-14T13:07:42Z")

</div>

Hi folks I want to optimize the code here Existing code: package: name: “{{ item }}” state: present with\_items: vim lvm2 xyz when: is\_USA Now I don’t want to install xyz PACKAGE for RHEL 9 server only then I ve…

---

## [Formatting Issue with YAML Code in Visual Studio Text Editor](https://forum.ansible.com/t/formatting-issue-with-yaml-code-in-visual-studio-text-editor/38324)

<div class="topic-metadata">

**Author:** [@Leon\_Khan](https://forum.ansible.com/u/Leon_Khan)\
**Replies:** 2\
**Last updated:** [August 12, 2023, 11:59pm UTC](https://forum.ansible.com/t/formatting-issue-with-yaml-code-in-visual-studio-text-editor/38324 "2023-08-12T23:59:24Z")

</div>

Greetings everyone, I hope you’re doing well. I’m encountering an issue with formatting YAML source code in the Visual Studio text editor, and I’m seeking some assistance from the community. I have installed the YAML e…

---

## [yum/dnf/package modules hanging on whole system update](https://forum.ansible.com/t/yum-dnf-package-modules-hanging-on-whole-system-update/38315)

<div class="topic-metadata">

**Author:** [@Nicolas\_Goudry](https://forum.ansible.com/u/Nicolas_Goudry)\
**Replies:** 11\
**Last updated:** [August 11, 2023, 2:36pm UTC](https://forum.ansible.com/t/yum-dnf-package-modules-hanging-on-whole-system-update/38315 "2023-08-11T14:36:12Z")

</div>

I’m trying to perform a full system update with the yum module but ansible just hangs for a little bit more than an hour before failing. Here is the command I’m using: ansible all -u node-user -b --become-user=root -i …

---

## [Mail module - multiple tabs in csv file](https://forum.ansible.com/t/mail-module-multiple-tabs-in-csv-file/38314)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 14\
**Last updated:** [August 11, 2023, 7:11am UTC](https://forum.ansible.com/t/mail-module-multiple-tabs-in-csv-file/38314 "2023-08-11T07:11:12Z")

</div>

Hi Todd and Team, Could you please help one below query? Thank you. Example, I have file1.csv creates throught mail module as mentionedbelow. I need to create 2 tabs (data-set1, data\_set2) in file1.csv and update requi…

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

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