# Ansible Project

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

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

**Page:** 117

---

## [Mapping Multiple attributes from Ansible query](https://forum.ansible.com/t/mapping-multiple-attributes-from-ansible-query/33307)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 12:26pm UTC](https://forum.ansible.com/t/mapping-multiple-attributes-from-ansible-query/33307 "2020-07-02T12:26:33Z")

</div>

Hi all, I need to try to map multiple attributes from an ACI vrf query output. \`

---

## [How to extract  information from string](https://forum.ansible.com/t/how-to-extract-information-from-string/33301)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 4\
**Last updated:** [July 2, 2020, 11:56am UTC](https://forum.ansible.com/t/how-to-extract-information-from-string/33301 "2020-07-02T11:56:06Z")

</div>

Try this (given the string is in variable "my\_data") - set\_fact: my\_agent: "{{ my\_agent|default({})| combine({my\_key: my\_val}) }}" loop: "{{ my\_data.splitlines()| …

---

## [Reboot servers strategy.](https://forum.ansible.com/t/reboot-servers-strategy/33276)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 4\
**Last updated:** [July 2, 2020, 11:19am UTC](https://forum.ansible.com/t/reboot-servers-strategy/33276 "2020-07-02T11:19:40Z")

</div>

Hi Guys, I have periodic updates on all RedHat servers at the same time, I need to create a strategy to restart my clusters because I can’t stop my application and services. How to create the reboot strategy server-per…

---

## [Add Additional Ip Addresses to an interface.](https://forum.ansible.com/t/add-additional-ip-addresses-to-an-interface/33283)

<div class="topic-metadata">

**Author:** [@Paul\_Robinson](https://forum.ansible.com/u/Paul_Robinson)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 11:10am UTC](https://forum.ansible.com/t/add-additional-ip-addresses-to-an-interface/33283 "2020-07-02T11:10:48Z")

</div>

Firstly just to say I’m new to ansible and learning as I go along. I have configure a playbook that clones 3 virtual machines using the following inventory file which has a few custom variables added for my needs ansib…

---

## [$PATH](https://forum.ansible.com/t/path/33296)

<div class="topic-metadata">

**Author:** [@Tom\_De\_Blende](https://forum.ansible.com/u/Tom_De_Blende)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 5:55am UTC](https://forum.ansible.com/t/path/33296 "2020-07-02T05:55:16Z")

</div>

Ok, this one I find very confusing :slight\_smile: aws executable is in /usr/local/bin. That is being added to $PATH via /etc/bashrc So the first command fails, which would lead me to believe /usr/local/bin is not in …

---

## [ansible varibals do not passing to roles that in include\_role](https://forum.ansible.com/t/ansible-varibals-do-not-passing-to-roles-that-in-include-role/33297)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 6:45pm UTC](https://forum.ansible.com/t/ansible-varibals-do-not-passing-to-roles-that-in-include-role/33297 "2020-07-01T18:45:16Z")

</div>

i have this ansible structure its part of large codebase : it seems that when running the main playbook the defaults/main.yml app\_type:game don’t pass on to the current\_version.yml and give error why it doesn’t use th…

---

## [Notification Failure due to to certificate verify error.](https://forum.ansible.com/t/notification-failure-due-to-to-certificate-verify-error/33294)

<div class="topic-metadata">

**Author:** [@Flavio\_Gobber](https://forum.ansible.com/u/Flavio_Gobber)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 2:52pm UTC](https://forum.ansible.com/t/notification-failure-due-to-to-certificate-verify-error/33294 "2020-07-01T14:52:25Z")

</div>

Hello, I need to send a notification with Webhook method, I have a webhook receiver wich use a SSL connection with a name with certificate signed by internal CA authority. When I try to send the notification I get the …

---

## [Task to modify an ansible host's ip-addr while connected](https://forum.ansible.com/t/task-to-modify-an-ansible-hosts-ip-addr-while-connected/33291)

<div class="topic-metadata">

**Author:** [@Momodou\_Fatty](https://forum.ansible.com/u/Momodou_Fatty)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 8:48am UTC](https://forum.ansible.com/t/task-to-modify-an-ansible-hosts-ip-addr-while-connected/33291 "2020-07-01T08:48:14Z")

</div>

I have a router/host: mgmt\_ip\_addr = 1.1.1.1 I use ansible to connect to this router/host My task is to apply a new configuration to this router. This new config will modify the mgmt\_ip\_addr of the host to 2.2.2.2 You …

---

## [Combine dictionaries based on a dictionary key value.](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33281)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 6:14am UTC](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33281 "2020-07-01T06:14:20Z")

</div>

Hi, a new lookup plugin was proposed for community.general which would help with this: https://github.com/ansible-collections/community.general/pull/263 We're currently trying to evaluate whether this plugin would be…

---

## [Unable to unarchive the openshift client](https://forum.ansible.com/t/unable-to-unarchive-the-openshift-client/33289)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 6:05pm UTC](https://forum.ansible.com/t/unable-to-unarchive-the-openshift-client/33289 "2020-06-30T18:05:39Z")

</div>

What do your playbook and inventory look like? Which version of ansible are you using? How do you invoke things?

---

## [Ansible unable to create $HOME/.ansible/tmp directory due to shell syntax error in RHEL 6.7](https://forum.ansible.com/t/ansible-unable-to-create-home-ansible-tmp-directory-due-to-shell-syntax-error-in-rhel-6-7/33271)

<div class="topic-metadata">

**Author:** [@Rishabh\_Kumar](https://forum.ansible.com/u/Rishabh_Kumar)\
**Replies:** 1\
**Last updated:** [June 30, 2020, 6:03pm UTC](https://forum.ansible.com/t/ansible-unable-to-create-home-ansible-tmp-directory-due-to-shell-syntax-error-in-rhel-6-7/33271 "2020-06-30T18:03:36Z")

</div>

Hi, When I am trying to run ansible job from my host computer to remote server it fails with the following error logs - \` \<127.0.0.12\> ESTABLISH SSH CONNECTION FOR USER: ansibleuser \<127.0.0.12\> SSH: EXEC sshpass -d4…

---

## [string not recognised in groups\_vars/all](https://forum.ansible.com/t/string-not-recognised-in-groups-vars-all/33282)

<div class="topic-metadata">

**Author:** [@Johana\_Galarza\_Monta](https://forum.ansible.com/u/Johana_Galarza_Monta)\
**Replies:** 3\
**Last updated:** [June 30, 2020, 12:47pm UTC](https://forum.ansible.com/t/string-not-recognised-in-groups-vars-all/33282 "2020-06-30T12:47:44Z")

</div>

I have a the below in my groups vars, and in a role I am trying to add a conditional on module-a such as when: " ‘module-a’ in module" but keeps throwing me this error {“msg”: "The conditional check ’ ‘module-a’ in modu…

---

## [How to break "until" loop when some conditions meet?](https://forum.ansible.com/t/how-to-break-until-loop-when-some-conditions-meet/33284)

<div class="topic-metadata">

**Author:** [@xiang\_chen](https://forum.ansible.com/u/xiang_chen)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 11:19am UTC](https://forum.ansible.com/t/how-to-break-until-loop-when-some-conditions-meet/33284 "2020-06-30T11:19:09Z")

</div>

SUMMARY I need to call one api to get async result, the api result is like { "resultCode": 0, "resultInfo": "cutover is running", "taskStatus": "21" } when taskStatus is 21 means the tasks is running, I should wait and…

---

## [Combine dictionaries based on a dictionary key value.](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33280)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 7:17am UTC](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33280 "2020-06-30T07:17:27Z")

</div>

Create dictionaries from the lists - set\_fact: agg: "{{ agg|default({})|combine({item.node\_name: item}) }}" loop: "{{ aggregate\_info }}" - set\_fact: net: "{{ net|default({})|combine({it…

---

## [Combine dictionaries based on a dictionary key value.](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33279)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 6:47am UTC](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33279 "2020-06-30T06:47:00Z")

</div>

The values of "node\_name" does not correspond. It would be good to test it. For example - fail: msg: Values of node\_name(s) do not fit when: aggregate\_info|map(attribute='node\_name')|list| …

---

## [How report the unreachable and failure condition.](https://forum.ansible.com/t/how-report-the-unreachable-and-failure-condition/33278)

<div class="topic-metadata">

**Author:** [@Flavio\_Gobber](https://forum.ansible.com/u/Flavio_Gobber)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 5:37am UTC](https://forum.ansible.com/t/how-report-the-unreachable-and-failure-condition/33278 "2020-06-30T05:37:05Z")

</div>

Hello, I need to get with a external command the result of execution on a scheduled template, the report must include the hosts where was executed an if the host was unreachable. How can I do it ?. Thank you for help. …

---

## [List/Dictionary - Combine elements based on item value](https://forum.ansible.com/t/list-dictionary-combine-elements-based-on-item-value/33277)

<div class="topic-metadata">

**Author:** [@Adam\_McGill](https://forum.ansible.com/u/Adam_McGill)\
**Replies:** 2\
**Last updated:** [June 30, 2020, 3:24am UTC](https://forum.ansible.com/t/list-dictionary-combine-elements-based-on-item-value/33277 "2020-06-30T03:24:28Z")

</div>

Hello, Basically want to add the items of net\_interface into aggregate\_info or create new list/dictionary based on key value of node\_name. Looking for assistance on how i can achieve this please and thank you. Outcome …

---

## [Ansible tower webhook notification](https://forum.ansible.com/t/ansible-tower-webhook-notification/33275)

<div class="topic-metadata">

**Author:** [@Bill\_Crupi](https://forum.ansible.com/u/Bill_Crupi)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 6:32pm UTC](https://forum.ansible.com/t/ansible-tower-webhook-notification/33275 "2020-06-29T18:32:43Z")

</div>

---

## [How to print only the failed telnet connections from my localhost](https://forum.ansible.com/t/how-to-print-only-the-failed-telnet-connections-from-my-localhost/33274)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 6:13pm UTC](https://forum.ansible.com/t/how-to-print-only-the-failed-telnet-connections-from-my-localhost/33274 "2020-06-29T18:13:54Z")

</div>

Below is my playbook that helps check telnet connections from my localhost to all remote hosts. \` wait\_for: host: “{{ item }}” port: 22 state: started # Port should be open delay: 0 # No wait before first check (s…

---

## [Debug and Print only failed telnet hosts](https://forum.ansible.com/t/debug-and-print-only-failed-telnet-hosts/33273)

<div class="topic-metadata">

**Author:** [@Know\_Your\_Tech](https://forum.ansible.com/u/Know_Your_Tech)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 6:08pm UTC](https://forum.ansible.com/t/debug-and-print-only-failed-telnet-hosts/33273 "2020-06-29T18:08:23Z")

</div>

Below is my playbook that does telnet from my localhost to destination hosts. \` wait\_for: host: “{{ item }}” port: 22 state: started # Port should be open delay: 0 # No wait before first check (sec) timeout: 2 # …

---

## [Ansible async and SIGHUP with shell module](https://forum.ansible.com/t/ansible-async-and-sighup-with-shell-module/33272)

<div class="topic-metadata">

**Author:** [@Sarah\_Weissman](https://forum.ansible.com/u/Sarah_Weissman)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 2:33pm UTC](https://forum.ansible.com/t/ansible-async-and-sighup-with-shell-module/33272 "2020-06-29T14:33:18Z")

</div>

Hi all, I’m trying to understand what happens when a shell command exits in ansible in sync vs. async modes. It seems that in the former case there is a SIGHUP sent and in the latter there isn’t. To test this I created …

---

## [Ansible expect module with Oracle SBC](https://forum.ansible.com/t/ansible-expect-module-with-oracle-sbc/32141)

<div class="topic-metadata">

**Author:** [@Gerhard\_Van\_Der\_Wath](https://forum.ansible.com/u/Gerhard_Van_Der_Wath)\
**Replies:** 8\
**Last updated:** [June 29, 2020, 6:51am UTC](https://forum.ansible.com/t/ansible-expect-module-with-oracle-sbc/32141 "2020-06-29T06:51:39Z")

</div>

Hi. I am having an issue with Ansible’s expect module. I am trying to run simple commands on a Oracle SBC, but getting some errors. Playbook: name: Check CPU hosts: all connection: local gather\_facts: yes tasks: …

---

## [Error in configuration](https://forum.ansible.com/t/error-in-configuration/33269)

<div class="topic-metadata">

**Author:** [@Ashwini\_Jha](https://forum.ansible.com/u/Ashwini_Jha)\
**Replies:** 4\
**Last updated:** [June 29, 2020, 3:03am UTC](https://forum.ansible.com/t/error-in-configuration/33269 "2020-06-29T03:03:06Z")

</div>

Dear All, I am receiving this error when I tried to execute server.yml file. Anyone please suggest appropriate changes that i need to do in inventory file, host file or server.yml. I tried to execute this playbook agai…

---

## [Beginner, can't complete this step](https://forum.ansible.com/t/beginner-cant-complete-this-step/29438)

<div class="topic-metadata">

**Author:** [@mboncalo](https://forum.ansible.com/u/mboncalo)\
**Replies:** 3\
**Last updated:** [June 27, 2020, 11:10pm UTC](https://forum.ansible.com/t/beginner-cant-complete-this-step/29438 "2020-06-27T23:10:30Z")

</div>

Hi Sorry , this must be to easy for you but I can't figure it out. I was following some ansible video tutorials and I can't go further because of some errors ansible all -m user -a name=linda ansible3 | FAILED! =\> …

---

## [how to skip prompt input of a skipped task ?](https://forum.ansible.com/t/how-to-skip-prompt-input-of-a-skipped-task/33268)

<div class="topic-metadata">

**Author:** [@Raphael\_Dany](https://forum.ansible.com/u/Raphael_Dany)\
**Replies:** 0\
**Last updated:** [June 26, 2020, 8:56pm UTC](https://forum.ansible.com/t/how-to-skip-prompt-input-of-a-skipped-task/33268 "2020-06-26T20:56:23Z")

</div>

I am new to Ansible .I was wondering how to skip prompt input of a skipped task ? Below i pressed no. Still it prompted for input for the skipped task \[root@san pure\]# ansible-playbook main.yaml \[WARNING\]: No inventor…

---

## [Parallel task execution in playbook](https://forum.ansible.com/t/parallel-task-execution-in-playbook/33267)

<div class="topic-metadata">

**Author:** [@Ashish\_Sagar](https://forum.ansible.com/u/Ashish_Sagar)\
**Replies:** 0\
**Last updated:** [June 26, 2020, 8:35pm UTC](https://forum.ansible.com/t/parallel-task-execution-in-playbook/33267 "2020-06-26T20:35:49Z")

</div>

Hi, Is it possible to run multiple tasks in playbook at same time ? For example :-

---

## [Looping a task until it succeeds](https://forum.ansible.com/t/looping-a-task-until-it-succeeds/33263)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 13\
**Last updated:** [June 26, 2020, 6:16pm UTC](https://forum.ansible.com/t/looping-a-task-until-it-succeeds/33263 "2020-06-26T18:16:36Z")

</div>

My use case: we use Infoblox for our DNS. What I’m trying to do is automatically create a host record with the next available hostname that isn’t already in DNS. My plan was to loop through a formatted hostname, incremen…

---

## [RE: \[ansible-project\] Can’t use dash with numbers as hostname](https://forum.ansible.com/t/re-ansible-project-can-t-use-dash-with-numbers-as-hostname/33265)

<div class="topic-metadata">

**Author:** [@Stu](https://forum.ansible.com/u/Stu)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 3:03pm UTC](https://forum.ansible.com/t/re-ansible-project-can-t-use-dash-with-numbers-as-hostname/33265 "2020-06-26T15:03:12Z")

</div>

I’m not getting the same thing happen. The ansible\_host var is expecting a fqdn or ip so should just show like below. what version of ansible are you using? cat test test1 ansible\_host=10-1 test2 ansible\_host=“10-1” …

---

## [Use lookup/dynamic variable names in jinja2 template](https://forum.ansible.com/t/use-lookup-dynamic-variable-names-in-jinja2-template/33246)

<div class="topic-metadata">

**Author:** [@Willem\_Bos](https://forum.ansible.com/u/Willem_Bos)\
**Replies:** 6\
**Last updated:** [June 26, 2020, 8:39am UTC](https://forum.ansible.com/t/use-lookup-dynamic-variable-names-in-jinja2-template/33246 "2020-06-26T08:39:58Z")

</div>

Hi, The playbook below should generate a file with the content: a,b ssh\_host\_key ssh\_rsa\_host\_key However, the way I construct the variable names results in either syntax/templating errors or ‘variable name does not…

---

## [\[AWX tower\] Error when use synchronize which inventory from satellite6](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258)

<div class="topic-metadata">

**Author:** [@Sureenart\_Kietsaroch](https://forum.ansible.com/u/Sureenart_Kietsaroch)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 8:02am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258 "2020-06-26T08:02:02Z")

</div>

Hi All, Could you advice when use synchronize which inventory from satellite6 ? I found error shown as below picture. name: sync script to server for ‘{{ folder\_db }}’ synchronize: src: ‘{{ script\_dir }}’ dest: ‘{…

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

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