# Ansible Project

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

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

**Page:** 130

---

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

---

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

---

## [associating IAM role with AWS redshift cluster in ansible](https://forum.ansible.com/t/associating-iam-role-with-aws-redshift-cluster-in-ansible/32765)

<div class="topic-metadata">

**Author:** [@Raymond\_Yee](https://forum.ansible.com/u/Raymond_Yee)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 12:01am UTC](https://forum.ansible.com/t/associating-iam-role-with-aws-redshift-cluster-in-ansible/32765 "2020-04-23T00:01:08Z")

</div>

I would like to attach IAM roles to a redshift cluster in my ansible playbook but don’t see any parameter for IAM roles in the redshift module (https://docs.ansible.com/ansible/latest/modules/redshift\_module.html). Such …

---

## [\[WARNING\]: "register" is not templatable, but we found:](https://forum.ansible.com/t/warning-register-is-not-templatable-but-we-found/32759)

<div class="topic-metadata">

**Author:** [@Laurent\_HENSSEN](https://forum.ansible.com/u/Laurent_HENSSEN)\
**Replies:** 4\
**Last updated:** [April 22, 2020, 5:45pm UTC](https://forum.ansible.com/t/warning-register-is-not-templatable-but-we-found/32759 "2020-04-22T17:45:49Z")

</div>

Hello, I’m trying to register a var through a dynamical use of “register” (I mean : using a var, like : register: {{ var }}). Dev updated the code and removed this option (now static only). I’m not able to find more i…

---

## [Check status of VMware tools & reboot if VMware tools are not running](https://forum.ansible.com/t/check-status-of-vmware-tools-reboot-if-vmware-tools-are-not-running/32709)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 39\
**Last updated:** [April 22, 2020, 5:33pm UTC](https://forum.ansible.com/t/check-status-of-vmware-tools-reboot-if-vmware-tools-are-not-running/32709 "2020-04-22T17:33:37Z")

</div>

Hi I need to check status of VMware tools on vms & if VMware tools are not running, then reboot the vm. I have below playbook which works fine to find vm name & VMware tools status. Please help on how can i extract the …

---

## [Need help for some logic](https://forum.ansible.com/t/need-help-for-some-logic/32753)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 4\
**Last updated:** [April 22, 2020, 4:57pm UTC](https://forum.ansible.com/t/need-help-for-some-logic/32753 "2020-04-22T16:57:04Z")

</div>

Hi Ansible Gurus, I have below playbook in one git repository: mymasterplaybook.yml name: Do some test include\_role: name: mytestrole tasks\_from: test-server-names when: “‘testing-group-name’ in group\_names”\` Now…

---

## [Will \`with\_\*\` loops be removed once 2.10 is out?](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 2:04pm UTC](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757 "2020-04-22T14:04:18Z")

</div>

Is the a way to combine with\_ and a lookup from a collection? E.g. the flattened lookup from community.general.

---

## [Help with ios\_command Module](https://forum.ansible.com/t/help-with-ios-command-module/32756)

<div class="topic-metadata">

**Author:** [@Omar\_Hegazy](https://forum.ansible.com/u/Omar_Hegazy)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 1:39pm UTC](https://forum.ansible.com/t/help-with-ios-command-module/32756 "2020-04-22T13:39:26Z")

</div>

Hello, i have 2 switches. I wanted to run a command (show arp) and check a specific output if exist or not on both. Then, i wanted to run a command (show arp) and display the output. The problem is that since the output…

---

## [Need to Deploy OS using ansible playbook](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744)

<div class="topic-metadata">

**Author:** [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Replies:** 5\
**Last updated:** [April 22, 2020, 4:54am UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744 "2020-04-22T04:54:07Z")

</div>

Hi All, any one experimented how to deploy OS using playbook ? how to call WDS Server using ansible playbook? if anyone done , please share me steps. regards, Pavan

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

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