# Ansible Project

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

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

**Page:** 75

---

## [Multiple commands output in a single file](https://forum.ansible.com/t/multiple-commands-output-in-a-single-file/35256)

<div class="topic-metadata">

**Author:** [@Djay\_wadhwa](https://forum.ansible.com/u/Djay_wadhwa)\
**Replies:** 10\
**Last updated:** [June 3, 2021, 8:20am UTC](https://forum.ansible.com/t/multiple-commands-output-in-a-single-file/35256 "2021-06-03T08:20:07Z")

</div>

Hi All I have this ansible code where i need output of all these commands in one file, however, all i am getting is either output of first command or second command if i change the following to 0,1,2 however ansible is …

---

## [How to display verbose only for a particular task in playbook?](https://forum.ansible.com/t/how-to-display-verbose-only-for-a-particular-task-in-playbook/35268)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 7\
**Last updated:** [June 2, 2021, 9:07pm UTC](https://forum.ansible.com/t/how-to-display-verbose-only-for-a-particular-task-in-playbook/35268 "2021-06-02T21:07:45Z")

</div>

I have several tasks in a playbook. I want to see -vvvv (highest verbose level) only for a single task in the playbook. So i don’t want to give -vvvv after ‘ansible-playbook sample.yaml’. Is there any way to display -vv…

---

## [Ansible using Azure DevOps SSH service connection](https://forum.ansible.com/t/ansible-using-azure-devops-ssh-service-connection/35271)

<div class="topic-metadata">

**Author:** [@Wim\_Van\_Leuven](https://forum.ansible.com/u/Wim_Van_Leuven)\
**Replies:** 0\
**Last updated:** [June 2, 2021, 10:07am UTC](https://forum.ansible.com/t/ansible-using-azure-devops-ssh-service-connection/35271 "2021-06-02T10:07:08Z")

</div>

Hello, We manage an on-premise platform completely via Ansible playbooks. I’m currently investigating how to best integrate these runs in a CICD setup on Azure DevOps. Our security team is also asking to manage the SS…

---

## [How to run 2 tasks simultaneously in playbook?](https://forum.ansible.com/t/how-to-run-2-tasks-simultaneously-in-playbook/35269)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 9:47pm UTC](https://forum.ansible.com/t/how-to-run-2-tasks-simultaneously-in-playbook/35269 "2021-06-01T21:47:49Z")

</div>

I have several tasks defined in a playbook and there are 2 tasks in middle of the playbook that i would like to run simultaneously. I also want to wait for both these tasks to complete before moving onto next task (as is…

---

## [Requesting assistance re. how to test a PR on community.aws.cloudfront\_distribution](https://forum.ansible.com/t/requesting-assistance-re-how-to-test-a-pr-on-community-aws-cloudfront-distribution/35247)

<div class="topic-metadata">

**Author:** [@Bryant\_Foresman](https://forum.ansible.com/u/Bryant_Foresman)\
**Replies:** 3\
**Last updated:** [June 1, 2021, 7:11pm UTC](https://forum.ansible.com/t/requesting-assistance-re-how-to-test-a-pr-on-community-aws-cloudfront-distribution/35247 "2021-06-01T19:11:26Z")

</div>

I identified a bug: https://github.com/ansible-collections/community.aws/issues/504 and want to help test a PR fix to get the bug fixed. I don’t know how to do this, but I’m wondering if the following is correct; I ha…

---

## [error with variable using set\_facts to grab host\_od from jumphost](https://forum.ansible.com/t/error-with-variable-using-set-facts-to-grab-host-od-from-jumphost/35250)

<div class="topic-metadata">

**Author:** [@Tim4](https://forum.ansible.com/u/Tim4)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 2:16pm UTC](https://forum.ansible.com/t/error-with-variable-using-set-facts-to-grab-host-od-from-jumphost/35250 "2021-06-01T14:16:18Z")

</div>

So I’m running into an error that is related to a role, but I dont think it’s the roll directly. It seems to error out when trying to set a variable from the ‘ansible\_os\_family’ fact. I am running this through a jump hos…

---

## [How To Get Hostname, OS and Version From Ansible Facts In A List Format?](https://forum.ansible.com/t/how-to-get-hostname-os-and-version-from-ansible-facts-in-a-list-format/35260)

<div class="topic-metadata">

**Author:** [@Marcus\_Hayhurst](https://forum.ansible.com/u/Marcus_Hayhurst)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 3:55pm UTC](https://forum.ansible.com/t/how-to-get-hostname-os-and-version-from-ansible-facts-in-a-list-format/35260 "2021-05-31T15:55:49Z")

</div>

Hello everyone, I’m attempting to get a list of information of all my machines to send in an email: Hostname - OS (and) Version so essentially: {{ ansible\_hostname }} - {{ ansible\_distribution }} {{ ansible\_distribut…

---

## [Handling Prompt in Cisco IOS\_CONFIG module](https://forum.ansible.com/t/handling-prompt-in-cisco-ios-config-module/35255)

<div class="topic-metadata">

**Author:** [@R.B\_Kumar](https://forum.ansible.com/u/R.B_Kumar)\
**Replies:** 3\
**Last updated:** [May 31, 2021, 2:58pm UTC](https://forum.ansible.com/t/handling-prompt-in-cisco-ios-config-module/35255 "2021-05-31T14:58:19Z")

</div>

Hello All - Using Ansible v2.7 I am tying to execute Cisco IOS commands that prompts to type Y/N. Looks like the Prompt: is not available in ios\_config module. For example name: delete\_crypto\_map ios\_config: lines: n…

---

## [Juniper rule-sets](https://forum.ansible.com/t/juniper-rule-sets/35259)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 1:30pm UTC](https://forum.ansible.com/t/juniper-rule-sets/35259 "2021-05-31T13:30:50Z")

</div>

For those who are using the juniper playbooks, is it me or the only way to create/edit rule-sets in ansible is to, for instance, have a template of the relevant session (or the entire config) and replace it as needed? …

---

## [exe installation trough ansible](https://forum.ansible.com/t/exe-installation-trough-ansible/35257)

<div class="topic-metadata">

**Author:** [@Shyju\_Krishnan](https://forum.ansible.com/u/Shyju_Krishnan)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 6:59am UTC](https://forum.ansible.com/t/exe-installation-trough-ansible/35257 "2021-05-31T06:59:21Z")

</div>

Dear Team, How to install the .exe package through Ansible. MSI is working fine looking for your valuable comments

---

## [Register variable using {{ item }}](https://forum.ansible.com/t/register-variable-using-item/35246)

<div class="topic-metadata">

**Author:** [@R.B\_Kumar](https://forum.ansible.com/u/R.B_Kumar)\
**Replies:** 12\
**Last updated:** [May 30, 2021, 5:19pm UTC](https://forum.ansible.com/t/register-variable-using-item/35246 "2021-05-30T17:19:20Z")

</div>

Hello Everyone again - Trying to get the IP address of the multiple Interfaces from a Cisco Router and register it. Using {{ item }} loop method to feed the Multiple Interfaces (eg: GigabitEthernet 0/0/0) in the command. …

---

## [Loop to Print same name multiple times](https://forum.ansible.com/t/loop-to-print-same-name-multiple-times/35254)

<div class="topic-metadata">

**Author:** [@R.B\_Kumar](https://forum.ansible.com/u/R.B_Kumar)\
**Replies:** 1\
**Last updated:** [May 30, 2021, 4:59pm UTC](https://forum.ansible.com/t/loop-to-print-same-name-multiple-times/35254 "2021-05-30T16:59:23Z")

</div>

Hello Everyone - I am aware we can use with\_items and loop methods to create a iterative loops in Ansible. Is there a logic to use kind of “for loops” For example, i want to execute one Cisco command in the same Router …

---

## [Request for jinja2 template.](https://forum.ansible.com/t/request-for-jinja2-template/35253)

<div class="topic-metadata">

**Author:** [@Melvin\_Satheesan](https://forum.ansible.com/u/Melvin_Satheesan)\
**Replies:** 0\
**Last updated:** [May 30, 2021, 9:51am UTC](https://forum.ansible.com/t/request-for-jinja2-template/35253 "2021-05-30T09:51:55Z")

</div>

Hello All, Good day. I am practicing the Ansible. A small play book has been created in order to collect few command out put and format it from a bunch of servers. The commands and the template is working as expected. …

---

## [Using Variable inside  IOS\_CONFIG](https://forum.ansible.com/t/using-variable-inside-ios-config/35252)

<div class="topic-metadata">

**Author:** [@R.B\_Kumar](https://forum.ansible.com/u/R.B_Kumar)\
**Replies:** 2\
**Last updated:** [May 30, 2021, 8:56am UTC](https://forum.ansible.com/t/using-variable-inside-ios-config/35252 "2021-05-30T08:56:39Z")

</div>

Hello Everyone - Need your help When I use a variable inside ios\_config I am getting an error. The error message is below. Goal Caputre an IP addresses from “show ip interface brief” from Cisco Router Register th…

---

## [dynamic variable  help](https://forum.ansible.com/t/dynamic-variable-help/35202)

<div class="topic-metadata">

**Author:** [@Manoj\_Chander](https://forum.ansible.com/u/Manoj_Chander)\
**Replies:** 4\
**Last updated:** [May 30, 2021, 7:27am UTC](https://forum.ansible.com/t/dynamic-variable-help/35202 "2021-05-30T07:27:05Z")

</div>

Hi , Im a newbie learnig ansible .im stuck with the below I need to get input from user and based on input dynamically create a url . input group1 is a single value and group2 is a list using with\_items and loop im a…

---

## [Need help to print all the messages as new lines](https://forum.ansible.com/t/need-help-to-print-all-the-messages-as-new-lines/35240)

<div class="topic-metadata">

**Author:** [@Jayan\_Anirudhan](https://forum.ansible.com/u/Jayan_Anirudhan)\
**Replies:** 4\
**Last updated:** [May 28, 2021, 9:50pm UTC](https://forum.ansible.com/t/need-help-to-print-all-the-messages-as-new-lines/35240 "2021-05-28T21:50:32Z")

</div>

Hi Team, I have created a playbook to gather information from a Redhat KVM server. The issue I am facing is that I am getting the entire message in a single line. Can someone suggest a solution to print the message cont…

---

## [Need assistance to write script for verifying EIGRP neigbourship in routers](https://forum.ansible.com/t/need-assistance-to-write-script-for-verifying-eigrp-neigbourship-in-routers/35241)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 6\
**Last updated:** [May 28, 2021, 3:24pm UTC](https://forum.ansible.com/t/need-assistance-to-write-script-for-verifying-eigrp-neigbourship-in-routers/35241 "2021-05-28T15:24:15Z")

</div>

I request assistance to write a script that needs to verify that EIGRP neighbourship shown in router before IOS upgrade is the same after IOS upgrade (and reload) as well. Below is a sample output of EIGRP neibourship th…

---

## [Chocolatey Checksums Mismatch in CI Procedures](https://forum.ansible.com/t/chocolatey-checksums-mismatch-in-ci-procedures/35245)

<div class="topic-metadata">

**Author:** [@Roy\_Keret](https://forum.ansible.com/u/Roy_Keret)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 10:34am UTC](https://forum.ansible.com/t/chocolatey-checksums-mismatch-in-ci-procedures/35245 "2021-05-28T10:34:40Z")

</div>

Hi guys, In my company, we’re using the win\_chocolatey module to install several Windows programs as part of the CI process. Every now and then, a Chocolatey package gets updated while the checksum does not, resulting …

---

## ["VARIABLE IS NOT DEFINED!" when use {{ item }}](https://forum.ansible.com/t/variable-is-not-defined-when-use-item/35244)

<div class="topic-metadata">

**Author:** [@R.B\_Kumar](https://forum.ansible.com/u/R.B_Kumar)\
**Replies:** 10\
**Last updated:** [May 28, 2021, 10:31am UTC](https://forum.ansible.com/t/variable-is-not-defined-when-use-item/35244 "2021-05-28T10:31:16Z")

</div>

Hello All - I am using Ansible version 2.7.18 I am trying this code to get IP address of the Cisco Router interface. When i use {{ item }}, the IP address is not captured. Where as if i use a static value (eg: show ip i…

---

## [Quick help](https://forum.ansible.com/t/quick-help/35243)

<div class="topic-metadata">

**Author:** [@NAVEEN](https://forum.ansible.com/u/NAVEEN)\
**Replies:** 2\
**Last updated:** [May 28, 2021, 6:48am UTC](https://forum.ansible.com/t/quick-help/35243 "2021-05-28T06:48:55Z")

</div>

Hello team, I am working on Dell IDRAC firmware automation.i need help here I can able to fetch the complete data from dell server.what ever output come I will put into REGISTER module. From REGISTER module I want spe…

---

## [timeout in ansible.posix.firewalld](https://forum.ansible.com/t/timeout-in-ansible-posix-firewalld/35238)

<div class="topic-metadata">

**Author:** [@Ozgur\_G](https://forum.ansible.com/u/Ozgur_G)\
**Replies:** 4\
**Last updated:** [May 27, 2021, 4:52pm UTC](https://forum.ansible.com/t/timeout-in-ansible-posix-firewalld/35238 "2021-05-27T16:52:43Z")

</div>

Hi, I’m using ansible on RHEL 7 remote servers to open up some ports temporarily. I’m looking at the official documentation but it is not clear to me whether the timeout set in integer is whether in seconds or minutes. …

---

## [Ansible nxos\_static\_routes multiple destination address same next\_hops](https://forum.ansible.com/t/ansible-nxos-static-routes-multiple-destination-address-same-next-hops/35235)

<div class="topic-metadata">

**Author:** [@Arnau\_Amargant\_Domen](https://forum.ansible.com/u/Arnau_Amargant_Domen)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 4:48pm UTC](https://forum.ansible.com/t/ansible-nxos-static-routes-multiple-destination-address-same-next-hops/35235 "2021-05-27T16:48:01Z")

</div>

Hello, Is there a way to have multiple destination address and the same next\_hops? What I’m trying to do is shorten the lines of the playbook and better readability. If you see the following image repeats the same next…

---

## [fix idempotence for this command](https://forum.ansible.com/t/fix-idempotence-for-this-command/35239)

<div class="topic-metadata">

**Author:** [@Nicola\_L](https://forum.ansible.com/u/Nicola_L)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 3:56pm UTC](https://forum.ansible.com/t/fix-idempotence-for-this-command/35239 "2021-05-27T15:56:49Z")

</div>

Hi, this task breaks the idempotence of my role: name: Set directories permissions for production installation command: find /opt/tomcat -type d -exec chmod -c 2750 {} ; register: find\_chmod\_result changed\_when: ‘f…

---

## [open source](https://forum.ansible.com/t/open-source/35236)

<div class="topic-metadata">

**Author:** [@Shivani\_Chaudhary](https://forum.ansible.com/u/Shivani_Chaudhary)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 10:33am UTC](https://forum.ansible.com/t/open-source/35236 "2021-05-27T10:33:59Z")

</div>

Hello everyone, I want to start my journey with open source and right now I am taking a devops course and I want to start contributing to the community while learning but there are so many thing happening in the communi…

---

## [Template tasks based on OS version...](https://forum.ansible.com/t/template-tasks-based-on-os-version/35232)

<div class="topic-metadata">

**Author:** [@Andy\_Speagle](https://forum.ansible.com/u/Andy_Speagle)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 1:19am UTC](https://forum.ansible.com/t/template-tasks-based-on-os-version/35232 "2021-05-27T01:19:05Z")

</div>

Hi Folks, I’m busy converting some puppet modules to ansible… and I’m trying to figure out how best to lay down some files based on the host os version… I’m trying to lay down one set of files if os\_version x… another s…

---

## [ansible\_managed vaule has changed and I can't work out why](https://forum.ansible.com/t/ansible-managed-vaule-has-changed-and-i-cant-work-out-why/35229)

<div class="topic-metadata">

**Author:** [@mike2](https://forum.ansible.com/u/mike2)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 4:07pm UTC](https://forum.ansible.com/t/ansible-managed-vaule-has-changed-and-i-cant-work-out-why/35229 "2021-05-26T16:07:24Z")

</div>

I’ve been using Ansible as a clone of the git repo, periodically checking out newer stable branches. I’m currently using the stable-2.8 branch but looking to move to a newer version. The splitting of Ansible in to parts…

---

## [installed packages](https://forum.ansible.com/t/installed-packages/35187)

<div class="topic-metadata">

**Author:** [@Marcel\_de\_Vries](https://forum.ansible.com/u/Marcel_de_Vries)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 1:28pm UTC](https://forum.ansible.com/t/installed-packages/35187 "2021-05-26T13:28:47Z")

</div>

I have a test environment" control ansible1 ansible2 \[ansible@control ~\]$ ansible ansible1 -m setup | grep ansible\_local “ansible\_local”: {}, Why is “ansible\_local” empty? Normally you have the installed packages t…

---

## [remote1 -\>fetch-\> control machine -\>copy-\> remote2](https://forum.ansible.com/t/remote1-fetch-control-machine-copy-remote2/35224)

<div class="topic-metadata">

**Author:** [@Bond\_James](https://forum.ansible.com/u/Bond_James)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 9:08pm UTC](https://forum.ansible.com/t/remote1-fetch-control-machine-copy-remote2/35224 "2021-05-25T21:08:12Z")

</div>

Hello! I have 2 remote hosts and 1 master node with my playbooks. I want that file with name “.env” was copy with module “Fetch” to Master node and then, with module “copy” will copy to Remote host 2 hosts: \[jitsi\] 1…

---

## [ansible tower failed to access user information. get returned status 401](https://forum.ansible.com/t/ansible-tower-failed-to-access-user-information-get-returned-status-401/35223)

<div class="topic-metadata">

**Author:** [@manoj\_kumar](https://forum.ansible.com/u/manoj_kumar)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 9:21am UTC](https://forum.ansible.com/t/ansible-tower-failed-to-access-user-information-get-returned-status-401/35223 "2021-05-25T09:21:37Z")

</div>

Hi Team, I am getting a error mentioned in $subject when I try accessing/logging in to the UI. In tower.log I see: in the tower.log, I see below message awx.api.generics status 401 received by user AnonymousUser attemp…

---

## [Security updates](https://forum.ansible.com/t/security-updates/35222)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 9:15am UTC](https://forum.ansible.com/t/security-updates/35222 "2021-05-25T09:15:59Z")

</div>

Hi Regarding ansible release information, I don’t see any dedicated security announcement mailing list. Also the functionality that GitHub offers through the project’s security advisory page seems to be unused: https:…

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

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