# Archives

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

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

**Page:** 207

---

## [frr\_facts and/or frr\_bgp give assertionError?](https://forum.ansible.com/t/frr-facts-and-or-frr-bgp-give-assertionerror/30653)

<div class="topic-metadata">

**Author:** [@Piet\_Honkoop](https://forum.ansible.com/u/Piet_Honkoop)\
**Replies:** 13\
**Last updated:** [April 28, 2020, 4:07pm UTC](https://forum.ansible.com/t/frr-facts-and-or-frr-bgp-give-assertionerror/30653 "2020-04-28T16:07:21Z")

</div>

Trying to explore the possibilities of frr\_bgp module. If I try a task like: tasks: name: Get setup frr frr\_facts: gather\_subset: all That results in: File "/tmp/ansible\_frr\_facts\_payload\_UFKM\_S/ansible\_frr\_facts…

---

## [How to add roles to awx with SCM(bitbucket)](https://forum.ansible.com/t/how-to-add-roles-to-awx-with-scm-bitbucket/32789)

<div class="topic-metadata">

**Author:** [@Selvam\_Elangovan](https://forum.ansible.com/u/Selvam_Elangovan)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 11:18am UTC](https://forum.ansible.com/t/how-to-add-roles-to-awx-with-scm-bitbucket/32789 "2020-04-28T11:18:38Z")

</div>

Hi! I am looking for adding ansible roles to awx using scm(bitbucket). I could not find the clear information in ansible tower doc. They requested to use requirements.yml. I am not sure how to use it with Awx running in…

---

## [Input validation on user-supplied variable (example, setting environment to production/development/staging)](https://forum.ansible.com/t/input-validation-on-user-supplied-variable-example-setting-environment-to-production-development-staging/32794)

<div class="topic-metadata">

**Author:** [@Michael\_Moody](https://forum.ansible.com/u/Michael_Moody)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 9:45am UTC](https://forum.ansible.com/t/input-validation-on-user-supplied-variable-example-setting-environment-to-production-development-staging/32794 "2020-04-28T09:45:47Z")

</div>

Good afternoon, I opened an issue on GitHub, and was directed here, which is the obvious place. (I initially thought that the behavior was indeed a bug, but there was some clarity added). What would be the preferred me…

---

## [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/32792)

<div class="topic-metadata">

**Author:** [@Kaliyug\_Antagonist](https://forum.ansible.com/u/Kaliyug_Antagonist)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 7:34am UTC](https://forum.ansible.com/t/ansible-tower-passing-extra-variables-from-one-workflow-template-to-other/32792 "2020-04-28T07:34:38Z")

</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…

---

## [Erorr while using magic variables](https://forum.ansible.com/t/erorr-while-using-magic-variables/32784)

<div class="topic-metadata">

**Author:** [@P\_r1](https://forum.ansible.com/u/P_r1)\
**Replies:** 8\
**Last updated:** [April 27, 2020, 11:39pm UTC](https://forum.ansible.com/t/erorr-while-using-magic-variables/32784 "2020-04-27T23:39:11Z")

</div>

Please refer to the attached file for issues I am running into… Here is my playbook: — # Ansible facts example hosts: centos tasks: name: create a file to write the fact values lineinfile: path: /home/ansible/ho…

---

## [Finding out the variables for built in Credentials.](https://forum.ansible.com/t/finding-out-the-variables-for-built-in-credentials/32781)

<div class="topic-metadata">

**Author:** [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Replies:** 6\
**Last updated:** [April 27, 2020, 7:30pm UTC](https://forum.ansible.com/t/finding-out-the-variables-for-built-in-credentials/32781 "2020-04-27T19:30:55Z")

</div>

I have a particular use case where I would like to use the existing Credentials type for other things than the built in tasks. Example tower\_job\_template – create, update, or destroy Ansible Tower job template It uses …

---

## [I am attempting to run ansible-playbook on centos ansible server. However, I get the below failed result. SSH connection and Adhoc commands work fine. Can somebody please assist ?](https://forum.ansible.com/t/i-am-attempting-to-run-ansible-playbook-on-centos-ansible-server-however-i-get-the-below-failed-result-ssh-connection-and-adhoc-commands-work-fine-can-somebody-please-assist/32786)

<div class="topic-metadata">

**Author:** [@Dhaval\_Mandalia](https://forum.ansible.com/u/Dhaval_Mandalia)\
**Replies:** 3\
**Last updated:** [April 27, 2020, 5:47pm UTC](https://forum.ansible.com/t/i-am-attempting-to-run-ansible-playbook-on-centos-ansible-server-however-i-get-the-below-failed-result-ssh-connection-and-adhoc-commands-work-fine-can-somebody-please-assist/32786 "2020-04-27T17:47:31Z")

</div>

\[root@smartbox ansible\]# ansible alltestnodes -m raw -a “sh vrf | i mgmt” \[DEPRECATION WARNING\]: The TRANSFORM\_INVALID\_GROUP\_CHARS settings is set to allow bad characters in group names by default, this will change, but…

---

## [Trouble Updating VMware Custom Attributes with Ansible](https://forum.ansible.com/t/trouble-updating-vmware-custom-attributes-with-ansible/32793)

<div class="topic-metadata">

**Author:** [@OOS](https://forum.ansible.com/u/OOS)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 2:45pm UTC](https://forum.ansible.com/t/trouble-updating-vmware-custom-attributes-with-ansible/32793 "2020-04-27T14:45:27Z")

</div>

Hi, I’m trying to update custom attributes for existing VMware VMs using Ansible. I spent quite a bit of time testing, but I can’t seem to get it working.

---

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

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

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