# Ansible Project

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

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

**Page:** 82

---

## [become mode for securesphere devices.](https://forum.ansible.com/t/become-mode-for-securesphere-devices/34900)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 0\
**Last updated:** [April 1, 2021, 9:36am UTC](https://forum.ansible.com/t/become-mode-for-securesphere-devices/34900 "2021-04-01T09:36:13Z")

</div>

Hello I want to perform automation on securesphere devices (Imperva) in order to do most tasks i need to enter the command ‘admin’ very similar to the enable mode in cisco devices. the command admin will give me full …

---

## [Issues Using Ansible with ServiceNow Through an HTTP Proxy](https://forum.ansible.com/t/issues-using-ansible-with-servicenow-through-an-http-proxy/34279)

<div class="topic-metadata">

**Author:** [@Steven\_Klinder](https://forum.ansible.com/u/Steven_Klinder)\
**Replies:** 6\
**Last updated:** [March 31, 2021, 10:25am UTC](https://forum.ansible.com/t/issues-using-ansible-with-servicenow-through-an-http-proxy/34279 "2021-03-31T10:25:47Z")

</div>

I am trying to allow my Ansible controller to connect to my ServiceNow instance through an HTTP proxy using the “snow\_record” and “snow\_record\_find” modules. I am running Ansible v2.9.10 with the Python “pysnow” v0.7.16 …

---

## [Ansible suddenly fails to read vault passwords](https://forum.ansible.com/t/ansible-suddenly-fails-to-read-vault-passwords/34885)

<div class="topic-metadata">

**Author:** [@Jacob\_Olsen](https://forum.ansible.com/u/Jacob_Olsen)\
**Replies:** 5\
**Last updated:** [March 31, 2021, 10:06am UTC](https://forum.ansible.com/t/ansible-suddenly-fails-to-read-vault-passwords/34885 "2021-03-31T10:06:42Z")

</div>

G’day all, New to the group, glad to be here. To not waste too much of anyone’s time, I will get straight to it. When I run some Ansible Playbooks, I now suddenly get this error message: \[The below changed for reasons…

---

## [Need assistance to run tasks/module on several switch simultaneously (my script currently checks 1 device at a time)](https://forum.ansible.com/t/need-assistance-to-run-tasks-module-on-several-switch-simultaneously-my-script-currently-checks-1-device-at-a-time/34892)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 9:01am UTC](https://forum.ansible.com/t/need-assistance-to-run-tasks-module-on-several-switch-simultaneously-my-script-currently-checks-1-device-at-a-time/34892 "2021-03-31T09:01:35Z")

</div>

Below is the script i have written to perform MD5 verification for stacked switch 2. Problem with this script is that iam saving output of MD5 verification command to a custom varriable called ‘md5\_flash2’ using register…

---

## [blockinfile, delete the rest](https://forum.ansible.com/t/blockinfile-delete-the-rest/34891)

<div class="topic-metadata">

**Author:** [@need\_abettername](https://forum.ansible.com/u/need_abettername)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 4:44am UTC](https://forum.ansible.com/t/blockinfile-delete-the-rest/34891 "2021-03-31T04:44:33Z")

</div>

Hi, I’d like to edit a file using block in file and delete anything in the file that isn’t in that block, in an idempotent way i,e, not just deleting the file first. I suspect I should be using a template here but part…

---

## [Basic Ansible](https://forum.ansible.com/t/basic-ansible/34882)

<div class="topic-metadata">

**Author:** [@shubham\_suroshe](https://forum.ansible.com/u/shubham_suroshe)\
**Replies:** 8\
**Last updated:** [March 31, 2021, 12:38am UTC](https://forum.ansible.com/t/basic-ansible/34882 "2021-03-31T00:38:02Z")

</div>

Hello Team, Does ansible.cfg and /etc/ansible directory created automatically when i install ansible ? I have installed ansible in virtaul environment. I am not able to locate ansible.cfg or host file. what i can see …

---

## [Ansible-3.2.0 released](https://forum.ansible.com/t/ansible-3-2-0-released/34888)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 7:20pm UTC](https://forum.ansible.com/t/ansible-3-2-0-released/34888 "2021-03-30T19:20:58Z")

</div>

Hi all, We're happy to announce that the ansible-3.2.0 package is now available! This update contains bugfixes and new, backwards compatible features in the contained collections. If you would like to learn about how…

---

## [Help With Jinja Statement For Appending To List](https://forum.ansible.com/t/help-with-jinja-statement-for-appending-to-list/34887)

<div class="topic-metadata">

**Author:** [@Clint\_Denham](https://forum.ansible.com/u/Clint_Denham)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 4:51pm UTC](https://forum.ansible.com/t/help-with-jinja-statement-for-appending-to-list/34887 "2021-03-30T16:51:45Z")

</div>

I’m having a problem with Jinja Statements, and having it append to a list. I have an existing list of VLANs that I’m trying to sort into individual lists but the statement I’m using isn’t appending, but rather creating…

---

## [Ansible's paths crossed? or need to install python 3 in right folder?](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842)

<div class="topic-metadata">

**Author:** [@Kristina\_Bressler](https://forum.ansible.com/u/Kristina_Bressler)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 4:45pm UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842 "2021-03-30T16:45:30Z")

</div>

Was trying to fix a problem in my project with Vagrant. I got this error: \`System info: Ansible 2.7.1; Vagrant 2.2.14; Darwin Trellis 1.0.3: April 30th, 2019

---

## [How to write script for multiple prompts?](https://forum.ansible.com/t/how-to-write-script-for-multiple-prompts/34847)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [March 30, 2021, 10:43am UTC](https://forum.ansible.com/t/how-to-write-script-for-multiple-prompts/34847 "2021-03-30T10:43:43Z")

</div>

Hi, Below is the command i need executed as part of IOS upgrade activiity. As you can see, it involves 2 prompts. So how do i write a script using ios\_command module when multiple prompts are involved? install add file…

---

## [Changing ansible\_shell\_type - is ansible reusing ssh connection?](https://forum.ansible.com/t/changing-ansible-shell-type-is-ansible-reusing-ssh-connection/34869)

<div class="topic-metadata">

**Author:** [@need\_abettername](https://forum.ansible.com/u/need_abettername)\
**Replies:** 4\
**Last updated:** [March 29, 2021, 7:07pm UTC](https://forum.ansible.com/t/changing-ansible-shell-type-is-ansible-reusing-ssh-connection/34869 "2021-03-29T19:07:38Z")

</div>

Trying to make a dual boot script and came across these results, the shell is changed during the playbook but subsequent tasks are somehow using the old one. How can I force a new connection please? Change shell to cm…

---

## [Need clarification on the max routers to which ansible can copy image simultaneously?](https://forum.ansible.com/t/need-clarification-on-the-max-routers-to-which-ansible-can-copy-image-simultaneously/34876)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [March 29, 2021, 3:13pm UTC](https://forum.ansible.com/t/need-clarification-on-the-max-routers-to-which-ansible-can-copy-image-simultaneously/34876 "2021-03-29T15:13:51Z")

</div>

I read that by default, for each task, Ansible will fork five parallel threads (called forks) and execute these threads in parallel across five nodes in the inventory. Once these tasks finish, it will target the remainin…

---

## [Register variable in task with loop and use registered results for task conditional](https://forum.ansible.com/t/register-variable-in-task-with-loop-and-use-registered-results-for-task-conditional/34878)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 0\
**Last updated:** [March 29, 2021, 8:54am UTC](https://forum.ansible.com/t/register-variable-in-task-with-loop-and-use-registered-results-for-task-conditional/34878 "2021-03-29T08:54:59Z")

</div>

I am trying to run a loop over a task and I am registering the results. The items in the loop are not unique and can repeat. I don’t want to run the same item twice. So, in the same task, I want to use a conditional to c…

---

## [Ansible Bonding with automatic recongition of interfaces](https://forum.ansible.com/t/ansible-bonding-with-automatic-recongition-of-interfaces/34877)

<div class="topic-metadata">

**Author:** [@bmc1](https://forum.ansible.com/u/bmc1)\
**Replies:** 1\
**Last updated:** [March 29, 2021, 8:52am UTC](https://forum.ansible.com/t/ansible-bonding-with-automatic-recongition-of-interfaces/34877 "2021-03-29T08:52:00Z")

</div>

I have some issues with my project. I need to bond two interfaces, automatically choosing the two with 25Gbit speed. I’m able to make a normal bonding selecting the interface names, I’m able to filter the interfaces thro…

---

## [Ansible shows error that says missing ':' even when it is already present](https://forum.ansible.com/t/ansible-shows-error-that-says-missing-even-when-it-is-already-present/34865)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 3\
**Last updated:** [March 29, 2021, 8:16am UTC](https://forum.ansible.com/t/ansible-shows-error-that-says-missing-even-when-it-is-already-present/34865 "2021-03-29T08:16:23Z")

</div>

Please look at the screenshot in below link. Ansible shows an error that ‘could not find expected :’. However as shown in the screenshot, the palce where it indicates an error, that palce already has the ‘:’. Why does an…

---

## [When Condition use with Variables](https://forum.ansible.com/t/when-condition-use-with-variables/34864)

<div class="topic-metadata">

**Author:** [@Pravin\_V](https://forum.ansible.com/u/Pravin_V)\
**Replies:** 1\
**Last updated:** [March 29, 2021, 7:37am UTC](https://forum.ansible.com/t/when-condition-use-with-variables/34864 "2021-03-29T07:37:16Z")

</div>

Hello Everyone, I’ve a task - name: Device Description uri: url: “{{ URL }}/api-db?username={{ USERNAME }};password={{ PASSWORD }};cmds=mget+\*+{{ display\_name }}+sys+SNMPv2-MIB.sysDescr” validate\_certs: no method:…

---

## [Ansible Playbook - Version Control - GUI - Distributed architecture](https://forum.ansible.com/t/ansible-playbook-version-control-gui-distributed-architecture/34875)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 0\
**Last updated:** [March 28, 2021, 11:44pm UTC](https://forum.ansible.com/t/ansible-playbook-version-control-gui-distributed-architecture/34875 "2021-03-28T23:44:10Z")

</div>

Hi Folks What you folks recommend for below Would need playbooks in version control GUI for folks to run playbooks If you have multiple VMware vCenter data centers & AWS datacenters ie VMs in various geo locati…

---

## [Can't filter Find togheter with with\_sequence](https://forum.ansible.com/t/cant-filter-find-togheter-with-with-sequence/34854)

<div class="topic-metadata">

**Author:** [@Cornelis\_van\_Ginkel](https://forum.ansible.com/u/Cornelis_van_Ginkel)\
**Replies:** 2\
**Last updated:** [March 27, 2021, 7:14pm UTC](https://forum.ansible.com/t/cant-filter-find-togheter-with-with-sequence/34854 "2021-03-27T19:14:09Z")

</div>

Hi All, I’m new here and have an issue that gives me a headache :wink: I’m pretty new to ansible although I did the RH294 course. Here’s my playbook:

---

## [Uses SysPrep for Windows VM (depends on ‘guest\_id’ parameter match ‘win’) with PyVmomi.](https://forum.ansible.com/t/uses-sysprep-for-windows-vm-depends-on-guest-id-parameter-match-win-with-pyvmomi/34873)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 0\
**Last updated:** [March 27, 2021, 7:01pm UTC](https://forum.ansible.com/t/uses-sysprep-for-windows-vm-depends-on-guest-id-parameter-match-win-with-pyvmomi/34873 "2021-03-27T19:01:43Z")

</div>

Hello Below is my playbook for the vm creation with template which is windows server 2019 I saw notes for the module wrt sysprep in : https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware\_guest\_m…

---

## [how to use mutiple with\_items together in ansible](https://forum.ansible.com/t/how-to-use-mutiple-with-items-together-in-ansible/34872)

<div class="topic-metadata">

**Author:** [@Sanoj\_Thampi](https://forum.ansible.com/u/Sanoj_Thampi)\
**Replies:** 0\
**Last updated:** [March 27, 2021, 6:26pm UTC](https://forum.ansible.com/t/how-to-use-mutiple-with-items-together-in-ansible/34872 "2021-03-27T18:26:52Z")

</div>

Here I have attached the input format of Json which consists of two arrays, objects and targets, I try to use the Ansible with\_item module to loop objects into the Uri module. this concept is working with a single array…

---

## [Help to do MSI automation](https://forum.ansible.com/t/help-to-do-msi-automation/34870)

<div class="topic-metadata">

**Author:** [@Somasundaram\_R](https://forum.ansible.com/u/Somasundaram_R)\
**Replies:** 2\
**Last updated:** [March 27, 2021, 4:49pm UTC](https://forum.ansible.com/t/help-to-do-msi-automation/34870 "2021-03-27T16:49:20Z")

</div>

Hi, I am newbie to windows automation. I am planning to do MSI automation through win\_package. But how to retrieve public properties of MSI file. I am planning to collect public properties of MSI packages by installing…

---

## [facts to txt file](https://forum.ansible.com/t/facts-to-txt-file/34866)

<div class="topic-metadata">

**Author:** [@Marcio\_Xavier](https://forum.ansible.com/u/Marcio_Xavier)\
**Replies:** 4\
**Last updated:** [March 26, 2021, 6:24pm UTC](https://forum.ansible.com/t/facts-to-txt-file/34866 "2021-03-26T18:24:57Z")

</div>

Hi all Is there a way to store facts like (mem,CPU,HD etc ) to a txt file ? Thanks ! Marcio X

---

## [url lookup fails on my Apple M1](https://forum.ansible.com/t/url-lookup-fails-on-my-apple-m1/34863)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 1:44pm UTC](https://forum.ansible.com/t/url-lookup-fails-on-my-apple-m1/34863 "2021-03-26T13:44:04Z")

</div>

Dear list, The following play fails on my ansible installation: hosts: localhost gather\_facts: false tasks: set\_fact: toto: “{{ lookup(‘url’, ‘https://google.ch’) }}” The error is objc\[57643\]: +\[\_\_NSCFConstantS…

---

## [Need assistance in Regex](https://forum.ansible.com/t/need-assistance-in-regex/34862)

<div class="topic-metadata">

**Author:** [@Devops\_testing](https://forum.ansible.com/u/Devops_testing)\
**Replies:** 3\
**Last updated:** [March 26, 2021, 1:23pm UTC](https://forum.ansible.com/t/need-assistance-in-regex/34862 "2021-03-26T13:23:17Z")

</div>

I’m trying to add new IP address (10.97.6.12) in firewall, Before adding, I’m validating whether the new IP already exists in firewall or not. Task: set\_fact: existing: “{{ result | json\_query(‘objects\[\*\].value’) | s…

---

## [AzureRM / azcollection ARM Zip file](https://forum.ansible.com/t/azurerm-azcollection-arm-zip-file/34860)

<div class="topic-metadata">

**Author:** [@tlourey](https://forum.ansible.com/u/tlourey)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 9:46am UTC](https://forum.ansible.com/t/azurerm-azcollection-arm-zip-file/34860 "2021-03-26T09:46:45Z")

</div>

Hi, From various playing around and troubleshooting over the last year or two I think Ansible takes a playbook with plays using azure\_rm modules from azcollection then, creates an Azure ARM Template (and maybe parameter…

---

## [Assistance With ternary and use of Jinja substitution for variable](https://forum.ansible.com/t/assistance-with-ternary-and-use-of-jinja-substitution-for-variable/34861)

<div class="topic-metadata">

**Author:** [@Clint\_Denham](https://forum.ansible.com/u/Clint_Denham)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 7:09am UTC](https://forum.ansible.com/t/assistance-with-ternary-and-use-of-jinja-substitution-for-variable/34861 "2021-03-26T07:09:51Z")

</div>

The main point of this I am having difficulty in using ternary in conjunction with a variable and would like to see if this is even possible? The ternary doesn’t seem to like the use of variable substitution inside its s…

---

## [how to loop inventory groups in ansible](https://forum.ansible.com/t/how-to-loop-inventory-groups-in-ansible/34816)

<div class="topic-metadata">

**Author:** [@Chetan\_Kumar\_Sriram](https://forum.ansible.com/u/Chetan_Kumar_Sriram)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 1:56am UTC](https://forum.ansible.com/t/how-to-loop-inventory-groups-in-ansible/34816 "2021-03-26T01:56:38Z")

</div>

Hi I am struck with looping for below requirement. The mail section has to loop over first group in inventory, check the uptime with the condition of more than 200 days and send mail to only the lab\_email with lab serve…

---

## [deploy windows server playbook](https://forum.ansible.com/t/deploy-windows-server-playbook/34859)

<div class="topic-metadata">

**Author:** [@Rene\_Paquin](https://forum.ansible.com/u/Rene_Paquin)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 7:35pm UTC](https://forum.ansible.com/t/deploy-windows-server-playbook/34859 "2021-03-25T19:35:40Z")

</div>

Currently on ansible version 2.10.6 with the latest vmware.commumity.vmware\_guest package and dependcies. I am trying to deploy a windows server from template using the following playbook. The issue I have is when the se…

---

## [\[WARNING\]: module winrm not found in:](https://forum.ansible.com/t/warning-module-winrm-not-found-in/34855)

<div class="topic-metadata">

**Author:** [@Olariu\_Irinel](https://forum.ansible.com/u/Olariu_Irinel)\
**Replies:** 1\
**Last updated:** [March 25, 2021, 5:11pm UTC](https://forum.ansible.com/t/warning-module-winrm-not-found-in/34855 "2021-03-25T17:11:48Z")

</div>

Hello I’m trying to use winrm module but even if I installed it : \[centos@ip-172-17-0-84 site-packages\]$ pip list Package Version ansible 3.1.0 ansible-base 2.10.7 certifi 2020.12.5 cffi 1.14.5 chardet 4.0.0 cr…

---

## [Ansible 2.5.3 to Ansible 2.9.9 upgrade steps and dependancies](https://forum.ansible.com/t/ansible-2-5-3-to-ansible-2-9-9-upgrade-steps-and-dependancies/34858)

<div class="topic-metadata">

**Author:** [@manohar\_joshi](https://forum.ansible.com/u/manohar_joshi)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 4:24pm UTC](https://forum.ansible.com/t/ansible-2-5-3-to-ansible-2-9-9-upgrade-steps-and-dependancies/34858 "2021-03-25T16:24:44Z")

</div>

Hello All, I have ansible 2.5.3 and Python 2.7.5 , I need to upgrade Ansible to 2.9.9. Can someone please guide me on what the dependant packages or Python libraries I should upgrade while upgrading to Ansible 2.9.9. T…

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

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