# Archives

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

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

**Page:** 19

---

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

---

## [AWX permissions](https://forum.ansible.com/t/awx-permissions/38357)

<div class="topic-metadata">

**Author:** [@Andrew\_Wrigley](https://forum.ansible.com/u/Andrew_Wrigley)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 1:31pm UTC](https://forum.ansible.com/t/awx-permissions/38357 "2023-08-22T13:31:16Z")

</div>

Hi I can’t seem to launch any jobs. I have a project, and a job template created, but if I launch it it get: POST /api/v2/job\_templates/16/launch/ 403 You do not have permission to perform this action. I am not a sup…

---

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

---

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

---

## [Trusting my self-signing certificate authority in python to connect to on-prem ServiceNow](https://forum.ansible.com/t/trusting-my-self-signing-certificate-authority-in-python-to-connect-to-on-prem-servicenow/38320)

<div class="topic-metadata">

**Author:** [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Replies:** 14\
**Last updated:** [August 18, 2023, 9:04pm UTC](https://forum.ansible.com/t/trusting-my-self-signing-certificate-authority-in-python-to-connect-to-on-prem-servicenow/38320 "2023-08-18T21:04:36Z")

</div>

I’m trying to load a dynamic inventory from ServiceNow using https://galaxy.ansible.com/servicenow/servicenow. I’m almost there, but we use on-prem ServiceNow, not the cloud service, so we have a custom CA signer. I need…

---

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

---

## [Encrypted variable in settings](https://forum.ansible.com/t/encrypted-variable-in-settings/38280)

<div class="topic-metadata">

**Author:** [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Replies:** 4\
**Last updated:** [August 18, 2023, 2:24pm UTC](https://forum.ansible.com/t/encrypted-variable-in-settings/38280 "2023-08-18T14:24:10Z")

</div>

Hello everyone! I have a few variables in Settings\>Job Settings\>Extra Environment Variables, which should be encrypted. I kindly ask if there is any chance to encrypt the mentioned variables.

---

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

---

## [Accessing inventory variables from custom connection plugin](https://forum.ansible.com/t/accessing-inventory-variables-from-custom-connection-plugin/38340)

<div class="topic-metadata">

**Author:** [@Piotr\_Gabrys](https://forum.ansible.com/u/Piotr_Gabrys)\
**Replies:** 3\
**Last updated:** [August 17, 2023, 5:46am UTC](https://forum.ansible.com/t/accessing-inventory-variables-from-custom-connection-plugin/38340 "2023-08-17T05:46:00Z")

</div>

Hi, I am developing a new Ansible collection to manage configuration of network devices. These devices are configured only over API. I need to be able to define them in an inventory file. From my understanding, I should…

---

## [DNF 5 postponed to (likely) Fedora 41](https://forum.ansible.com/t/dnf-5-postponed-to-likely-fedora-41/38343)

<div class="topic-metadata">

**Author:** [@Evan\_Goode](https://forum.ansible.com/u/Evan_Goode)\
**Replies:** 0\
**Last updated:** [August 16, 2023, 7:32pm UTC](https://forum.ansible.com/t/dnf-5-postponed-to-likely-fedora-41/38343 "2023-08-16T19:32:48Z")

</div>

Hi, I’m on the DNF 5 team, and I’m informing projects that use DNF of the following: As you may be aware, the switch to DNF 5 has been postponed, likely to Fedora 41. In Fedora 39, the dnf command will be provided by th…

---

## [Scaling AWX](https://forum.ansible.com/t/scaling-awx/38209)

<div class="topic-metadata">

**Author:** [@Jeb\_Baxley](https://forum.ansible.com/u/Jeb_Baxley)\
**Replies:** 8\
**Last updated:** [August 16, 2023, 6:59pm UTC](https://forum.ansible.com/t/scaling-awx/38209 "2023-08-16T18:59:27Z")

</div>

Hey Everyone, I’m attempting to scale AWX, but am constantly running into road blocks. I have a couple of questions and hope someone from the community can point me in the right direction: Is there a scaling guide fo…

---

## [Help: How to use ssh-add and SSH agent forwarding?](https://forum.ansible.com/t/help-how-to-use-ssh-add-and-ssh-agent-forwarding/38323)

<div class="topic-metadata">

**Author:** [@Chris\_Fu](https://forum.ansible.com/u/Chris_Fu)\
**Replies:** 1\
**Last updated:** [August 16, 2023, 6:54pm UTC](https://forum.ansible.com/t/help-how-to-use-ssh-add-and-ssh-agent-forwarding/38323 "2023-08-16T18:54:02Z")

</div>

Context: I am building a playbook that will clone a private repository from github, so I need to enable ssh-add and SSH agent forwading With native Ansible I can do it with eval “$(ssh-agent -s)” ssh-add ~/.ssh/id\_rs…

---

## [Unable to SSH as root into target host from Ansible, "Bad owner or permission on /etc/crypto-policies/back-ends/openssh.config" error\*\*](https://forum.ansible.com/t/unable-to-ssh-as-root-into-target-host-from-ansible-bad-owner-or-permission-on-etc-crypto-policies-back-ends-openssh-config-error/38329)

<div class="topic-metadata">

**Author:** [@Richa\_singh](https://forum.ansible.com/u/Richa_singh)\
**Replies:** 1\
**Last updated:** [August 16, 2023, 6:41pm UTC](https://forum.ansible.com/t/unable-to-ssh-as-root-into-target-host-from-ansible-bad-owner-or-permission-on-etc-crypto-policies-back-ends-openssh-config-error/38329 "2023-08-16T18:41:51Z")

</div>

Hello community, I’m encountering an issue while attempting to SSH as root into a target host from AWX . Here’s the specific error message I’m facing: Failed to connect to the host via ssh: Bad owner or permission on /…

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

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