# Latest

**URL:** https://forum.ansible.com/latest.md?page=381

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

**Page:** 382

---

## [Ansible Tower: Passing extra variables from one workflow template to other](https://forum.ansible.com/t/ansible-tower-passing-extra-variables-from-one-workflow-template-to-other/32791)

<div class="topic-metadata">

**Author:** [@Kaliyug\_Antagonist](https://forum.ansible.com/u/Kaliyug_Antagonist)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 1:55pm UTC](https://forum.ansible.com/t/ansible-tower-passing-extra-variables-from-one-workflow-template-to-other/32791 "2020-04-27T13:55:04Z")

</div>

Ansible 2.9.2 Tower 3.6.1 There are two Bitbucket repositories viz. bitbucketconfigurator and sonarconfigurator which contain playbooks to configure Bitbucket and Sonarqube projects, respectively. Here, showing just th…

---

## [Run a command with different args everytime in Ansible playbook](https://forum.ansible.com/t/run-a-command-with-different-args-everytime-in-ansible-playbook/32790)

<div class="topic-metadata">

**Author:** [@Xenia\_Ioannidou](https://forum.ansible.com/u/Xenia_Ioannidou)\
**Replies:** 0\
**Last updated:** [April 27, 2020, 12:57pm UTC](https://forum.ansible.com/t/run-a-command-with-different-args-everytime-in-ansible-playbook/32790 "2020-04-27T12:57:59Z")

</div>

I am trying to run a command in Ansible so as to find the neighbors in my network: - name: Get neighbors junos\_rpc: rpc: "get-lldp-interface-neighbors" output: 'xml' args: interface\_device: A regis…

---

## [Need to pass variable and hostname to a playbook from CSV file.](https://forum.ansible.com/t/need-to-pass-variable-and-hostname-to-a-playbook-from-csv-file/32495)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 15\
**Last updated:** [April 27, 2020, 12:35pm UTC](https://forum.ansible.com/t/need-to-pass-variable-and-hostname-to-a-playbook-from-csv-file/32495 "2020-04-27T12:35:50Z")

</div>

I have a CSV file that contains the IP’s and it’s variables. I need to use the details to log in to the host and use the respective variable’s value of the specfic IP’s. Please help me out with this. cat AnsibleTest.c…

---

## [condition based on register match](https://forum.ansible.com/t/condition-based-on-register-match/32787)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 5\
**Last updated:** [April 27, 2020, 9:21am UTC](https://forum.ansible.com/t/condition-based-on-register-match/32787 "2020-04-27T09:21:29Z")

</div>

I have a task that mounts devices in a Linux machine. I wish to run the task only if the device is not mounted, therefore I’m running a mount command and save the output in a register. On the mount task, I’m trying to …

---

## [ansible Playbook execution failed with error:  "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'package'](https://forum.ansible.com/t/ansible-playbook-execution-failed-with-error-the-task-includes-an-option-with-an-undefined-variable-the-error-was-dict-object-has-no-attribute-package/32783)

<div class="topic-metadata">

**Author:** [@Mitesh\_Bhandari](https://forum.ansible.com/u/Mitesh_Bhandari)\
**Replies:** 4\
**Last updated:** [April 27, 2020, 9:09am UTC](https://forum.ansible.com/t/ansible-playbook-execution-failed-with-error-the-task-includes-an-option-with-an-undefined-variable-the-error-was-dict-object-has-no-attribute-package/32783 "2020-04-27T09:09:36Z")

</div>

Hello, I am new learner, trying to get hands on inclusions, where I am using include\_vars & include, however playbook execution is falling with an undefined variable error. \[user@node0101 veriable\_include\]$ ansible-pla…

---

## [Upgrading 2960x](https://forum.ansible.com/t/upgrading-2960x/32776)

<div class="topic-metadata">

**Author:** [@Kevin\_Northcutt](https://forum.ansible.com/u/Kevin_Northcutt)\
**Replies:** 5\
**Last updated:** [April 26, 2020, 2:33pm UTC](https://forum.ansible.com/t/upgrading-2960x/32776 "2020-04-26T14:33:14Z")

</div>

I’m sure I’m missing something very simple but have been working on this for a few days. I’m really new to Ansible and would really appreciate any help. I have AWX Ansible My Playbook

---

## [Digest for ansible-project@googlegroups.com - 8 updates in 5 topics](https://forum.ansible.com/t/digest-for-ansible-project-googlegroups-com-8-updates-in-5-topics/32785)

<div class="topic-metadata">

**Author:** [@Jarett\_Chaiken](https://forum.ansible.com/u/Jarett_Chaiken)\
**Replies:** 0\
**Last updated:** [April 26, 2020, 3:09am UTC](https://forum.ansible.com/t/digest-for-ansible-project-googlegroups-com-8-updates-in-5-topics/32785 "2020-04-26T03:09:24Z")

</div>

Q,11

---

## [Updating inventory from a source](https://forum.ansible.com/t/updating-inventory-from-a-source/32720)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 6\
**Last updated:** [April 26, 2020, 12:39am UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720 "2020-04-26T00:39:32Z")

</div>

Hi AWX/Tower Community - Having an issue with sourcing my inventory from a repository in Ansible Tower 3.5.3. My inventories are stored in yaml files up in a repo. I have a project called “Repo - Inventories” that call…

---

## [Comparing Two Json files](https://forum.ansible.com/t/comparing-two-json-files/32782)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 8:32pm UTC](https://forum.ansible.com/t/comparing-two-json-files/32782 "2020-04-25T20:32:02Z")

</div>

Hi Team Anybody has custom module for comparing two json files. Please help Thanks

---

## [ansiblw win\_ping failed](https://forum.ansible.com/t/ansiblw-win-ping-failed/32780)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [April 25, 2020, 5:46pm UTC](https://forum.ansible.com/t/ansiblw-win-ping-failed/32780 "2020-04-25T17:46:21Z")

</div>

tony@ubuntu:~/windows$ ansible windows -i hosts -m win\_ping 10.50.1.231 | UNREACHABLE! =\> { “changed”: false, “msg”: “ssl: the specified credentials were rejected by the server”, “unreachable”: true my yml file ans…

---

## [Playbook that takes IP address of host machines and store these IPs](https://forum.ansible.com/t/playbook-that-takes-ip-address-of-host-machines-and-store-these-ips/32773)

<div class="topic-metadata">

**Author:** [@PMP](https://forum.ansible.com/u/PMP)\
**Replies:** 5\
**Last updated:** [April 25, 2020, 11:47am UTC](https://forum.ansible.com/t/playbook-that-takes-ip-address-of-host-machines-and-store-these-ips/32773 "2020-04-25T11:47:52Z")

</div>

Hi, Can anyone help me to get the playbook that collects the IP addresses of different host machines and store the output to a file. Thanks,

---

## [\[Errno 2\] No such file or directory #2](https://forum.ansible.com/t/errno-2-no-such-file-or-directory-2/32779)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 1\
**Last updated:** [April 25, 2020, 10:07am UTC](https://forum.ansible.com/t/errno-2-no-such-file-or-directory-2/32779 "2020-04-25T10:07:45Z")

</div>

Hello, I am trying to perform the following playbook: — # Deploy a BIG-IP in AWS name: Deploy BIG-IP hosts: localhost gather\_facts: false vars\_files: secrets.yaml tasks: Get My IP Address name: Get public IP ad…

---

## [How to exclude the task from role](https://forum.ansible.com/t/how-to-exclude-the-task-from-role/32777)

<div class="topic-metadata">

**Author:** [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 11:50pm UTC](https://forum.ansible.com/t/how-to-exclude-the-task-from-role/32777 "2020-04-24T23:50:09Z")

</div>

Hi Team, I have the role which has 10 tasks. I would like to exclude 1 task out of 10 as the task already executed in previous play… Is there anyway to do

---

## [Check for existing ACI contract between 2 IPs using Ansbile](https://forum.ansible.com/t/check-for-existing-aci-contract-between-2-ips-using-ansbile/32760)

<div class="topic-metadata">

**Author:** [@Dave\_Zarei](https://forum.ansible.com/u/Dave_Zarei)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 9:01pm UTC](https://forum.ansible.com/t/check-for-existing-aci-contract-between-2-ips-using-ansbile/32760 "2020-04-24T21:01:16Z")

</div>

Hi, I’m trying to figure out a way to check for any existing contract between 2 IPs in ACI using Ansible before creating a contract, any aci\_rest get method? Thanks,

---

## [how to over come passwords prompts](https://forum.ansible.com/t/how-to-over-come-passwords-prompts/32778)

<div class="topic-metadata">

**Author:** [@jayanth\_reddy](https://forum.ansible.com/u/jayanth_reddy)\
**Replies:** 0\
**Last updated:** [April 24, 2020, 7:32pm UTC](https://forum.ansible.com/t/how-to-over-come-passwords-prompts/32778 "2020-04-24T19:32:44Z")

</div>

Hello Guys, Hope you are fine. While I’m running apt-get install mythtv-database package I’m getting one pop-up screen (as attached)where I need to enter my database password. How can I overcome that using Ansible(yaml…

---

## [How to extract one attribute from a list of dictionaries](https://forum.ansible.com/t/how-to-extract-one-attribute-from-a-list-of-dictionaries/32748)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 10\
**Last updated:** [April 24, 2020, 2:54pm UTC](https://forum.ansible.com/t/how-to-extract-one-attribute-from-a-list-of-dictionaries/32748 "2020-04-24T14:54:19Z")

</div>

Let’s suppose the following list of dictionaries: \` domain\_definition: name: server11 cluster: cluster1 port: ‘8080’ name: server12 cluster: cluster2 port: ‘8090’ name: server21 cluster: cluster3 port: ‘9080’ na…

---

## [Extract content in the register variable stdout value](https://forum.ansible.com/t/extract-content-in-the-register-variable-stdout-value/32762)

<div class="topic-metadata">

**Author:** [@Josephsimon\_Arokiara](https://forum.ansible.com/u/Josephsimon_Arokiara)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 2:33pm UTC](https://forum.ansible.com/t/extract-content-in-the-register-variable-stdout-value/32762 "2020-04-24T14:33:15Z")

</div>

name: Extracting Hostname local\_action: command /usr/bin/perl extracturl.pl {{ url }} port register: port I can get the value in stdout “80” “stderr”: “”, “stderr\_lines”: , “stdout”: “80”, “stdout\_lines”: \[“80”\]

---

## [Question about Ansible Directory Layout](https://forum.ansible.com/t/question-about-ansible-directory-layout/32775)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 0\
**Last updated:** [April 24, 2020, 2:26pm UTC](https://forum.ansible.com/t/question-about-ansible-directory-layout/32775 "2020-04-24T14:26:19Z")

</div>

I am in the process of setting up a centralized ansible server for my organization. i have been using ansible myself for my home projects for a few years now, so I am not really new to the product. I am thinking about us…

---

## [Multiple values in single "extra-vars" during runtime](https://forum.ansible.com/t/multiple-values-in-single-extra-vars-during-runtime/32774)

<div class="topic-metadata">

**Author:** [@heena\_jain](https://forum.ansible.com/u/heena_jain)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 12:28pm UTC](https://forum.ansible.com/t/multiple-values-in-single-extra-vars-during-runtime/32774 "2020-04-24T12:28:35Z")

</div>

Hi, Is it possible to assign multiple values to single “extra-vars” during runtime? Example: ansible-playbook .yml –extra-vars “customer=abc, xyz” I tried to google alot but havent found it. Can someone please help me…

---

## [F5 Policy with Multiple Rules](https://forum.ansible.com/t/f5-policy-with-multiple-rules/32577)

<div class="topic-metadata">

**Author:** [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 1:55am UTC](https://forum.ansible.com/t/f5-policy-with-multiple-rules/32577 "2020-04-24T01:55:13Z")

</div>

I’m having trouble getting my variables correct to add multiple rules to a single policy. I need a loop because I will be adding multiple VIP with different policy names and multiple rules per policy. The module I’m usin…

---

## [What's really the purpose of pre\_tasks and post\_tasks?](https://forum.ansible.com/t/whats-really-the-purpose-of-pre-tasks-and-post-tasks/32772)

<div class="topic-metadata">

**Author:** [@Ricardo\_Amaral](https://forum.ansible.com/u/Ricardo_Amaral)\
**Replies:** 4\
**Last updated:** [April 23, 2020, 9:22pm UTC](https://forum.ansible.com/t/whats-really-the-purpose-of-pre-tasks-and-post-tasks/32772 "2020-04-23T21:22:25Z")

</div>

What exactly is the purpose of pre\_tasks/post\_tasks when one can just put "pre" tasks before the main tasks and "post" tasks after the main tasks in the "tasks" directive? I've read the documentation many times and I ca…

---

## [Playbook hang when running reboot on 16 servers](https://forum.ansible.com/t/playbook-hang-when-running-reboot-on-16-servers/32768)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 3:54pm UTC](https://forum.ansible.com/t/playbook-hang-when-running-reboot-on-16-servers/32768 "2020-04-23T15:54:57Z")

</div>

Hi, I have an ansible task that includes the reboot model. In my environment I have 16 servers, When I run the playbook it looks that all 16 servers were rebooted, but the playbook hang after the last reported server. …

---

## [Meta dependancies and template](https://forum.ansible.com/t/meta-dependancies-and-template/32770)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 2:47pm UTC](https://forum.ansible.com/t/meta-dependancies-and-template/32770 "2020-04-23T14:47:01Z")

</div>

Hi everyone, little question here : Did a template in a role can be used/seen by another role in the meta of the first one?

---

## [Has anyone connected Riverbed (network device) thru Ansible?](https://forum.ansible.com/t/has-anyone-connected-riverbed-network-device-thru-ansible/32769)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 12:59pm UTC](https://forum.ansible.com/t/has-anyone-connected-riverbed-network-device-thru-ansible/32769 "2020-04-23T12:59:13Z")

</div>

Hi Team, Has anyone connected Riverbed (network device) thru Ansible? like using command module or cli\_command. Thanks

---

## [How to run 2 playbooks in parallel using a master playbook and monitor for any error](https://forum.ansible.com/t/how-to-run-2-playbooks-in-parallel-using-a-master-playbook-and-monitor-for-any-error/32758)

<div class="topic-metadata">

**Author:** [@Happy\_Souls](https://forum.ansible.com/u/Happy_Souls)\
**Replies:** 1\
**Last updated:** [April 23, 2020, 11:20am UTC](https://forum.ansible.com/t/how-to-run-2-playbooks-in-parallel-using-a-master-playbook-and-monitor-for-any-error/32758 "2020-04-23T11:20:38Z")

</div>

Hi, I would appreciate if someone could share a simple example of running 2 playbooks running in parallel, called in a master playbook . smallest of examples of basic tasks would be great. Regards, Abhishek

---

## [Ansible reboot](https://forum.ansible.com/t/ansible-reboot/32767)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 4\
**Last updated:** [April 23, 2020, 9:31am UTC](https://forum.ansible.com/t/ansible-reboot/32767 "2020-04-23T09:31:17Z")

</div>

How does ansible reboot work? Is it going group by group? Does it reboot the servers in the first group waits for them to go up and only then starting with the second group?

---

## [Ansible mail callback](https://forum.ansible.com/t/ansible-mail-callback/32766)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 7:08am UTC](https://forum.ansible.com/t/ansible-mail-callback/32766 "2020-04-23T07:08:37Z")

</div>

Hi Team, How to configure mail callback to generate the report as email for failed jobs? Thanks

---

## [telnet issue](https://forum.ansible.com/t/telnet-issue/32668)

<div class="topic-metadata">

**Author:** [@Zaldy\_B](https://forum.ansible.com/u/Zaldy_B)\
**Replies:** 16\
**Last updated:** [April 23, 2020, 5:05am UTC](https://forum.ansible.com/t/telnet-issue/32668 "2020-04-23T05:05:55Z")

</div>

Hi Experts, I am just new with this one. I am trying to connect using telnet (ssh has no issue) to my IOS devices, but I am getting error when I run my playbook:

---

## [\[WARNING\]: Module invocation had junk after the JSON data:](https://forum.ansible.com/t/warning-module-invocation-had-junk-after-the-json-data/32764)

<div class="topic-metadata">

**Author:** [@R21](https://forum.ansible.com/u/R21)\
**Replies:** 1\
**Last updated:** [April 23, 2020, 3:15am UTC](https://forum.ansible.com/t/warning-module-invocation-had-junk-after-the-json-data/32764 "2020-04-23T03:15:56Z")

</div>

Has anyone ever seen this issue with ansible when attempting to install a yum package

---

## [setting explicit remote shell](https://forum.ansible.com/t/setting-explicit-remote-shell/32754)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 1\
**Last updated:** [April 23, 2020, 1:22am UTC](https://forum.ansible.com/t/setting-explicit-remote-shell/32754 "2020-04-23T01:22:13Z")

</div>

hi all, strange little problem here, so i have this quite quirky role which removes all rpm’s from an aix system and rolls out a whole new rpm distribution. this also involves removal of the default python and installi…

[Previous page](https://forum.ansible.com/latest.md?page=380)

[Next page](https://forum.ansible.com/latest.md?page=382)
