[ansible-project] How report the unreachable and failure condition.

2020-06-29 Thread Flavio Gobber
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. Best reards. Flavio Gobber -- You received this message because you are

[ansible-project] Re: List/Dictionary - Combine elements based on item value

2020-06-29 Thread Adam McGill
Figured out how to merge the lists based on values in each list. - name: merge lists set_fact: merged_list: "{{ merged_list|default([]) + [{ 'name': item[0].name, 'size_available': item[0].size_available, 'size_avaliable_80':

[ansible-project] Re: List/Dictionary - Combine elements based on item value

2020-06-29 Thread Adam McGill
Adding further to above, i know i can get the value i want by doing this. - debug: msg: "{% for address in net_interface if address.node_name == 'IQ-REG_NA_CLUSTER_01-01' %}{{ address.address }}{% endfor %}" Anyway to add that logic when creating the aggregate_info list. for example,

[ansible-project] List/Dictionary - Combine elements based on item value

2020-06-29 Thread Adam McGill
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 of what want it listed below. *list called: aggregate_info* { "name":

[ansible-project] Combine dictionaries based on a dictionary key value.

2020-06-29 Thread Adam McGill
Hello, Basically want to add the items of net_interface into aggregate_info or create new dictionary based on key value of node_name. Looking for assistance on how i can achieve this please and thank you. *Dictionary called: aggregate_info* { "name": "agg_Data1_Cluster01", "node_name":

[ansible-project] Reboot servers strategy.

2020-06-29 Thread Rafael Tomelin
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-server in clusters? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084

[ansible-project] Re: Ansible tower webhook notification

2020-06-29 Thread Bill Crupi
On Thursday, June 25, 2020 at 1:58:18 PM UTC-4, Jam Volkov wrote: > > Hi All, > > I'm testing a webhook notification from Ansible tower, it works good > Received data example: > > {"id": 14, "name": "job_test", "url": " > https://ansibletower/#/jobs/playbook/14;, "created_by": "admin", >

[ansible-project] How to print only the failed telnet connections from my localhost

2020-06-29 Thread Shifa Shaikh
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 (sec)

[ansible-project] Unable to unarchive the openshift client

2020-06-29 Thread Vinay Kumar Rudiya
If I'm trying to unarchive only the file out of the role I can do it, but when I'm trying to do in role with the proxy its causing error fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to find handler for

[ansible-project] Ansible async and SIGHUP with shell module

2020-06-29 Thread Sarah Weissman
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 a startup script for a background process that runs forever:

[ansible-project] Ansible unable to create $HOME/.ansible/tmp directory due to shell syntax error in RHEL 6.7

2020-06-29 Thread Rishabh Kumar
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 -d47 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o

[ansible-project] Re: Ansible expect module with Oracle SBC

2020-06-29 Thread Gerhard Van Der Wath
Hi Kai. Trust you are well, we are testing adding new configs via Ansible on the SBC, just struggling, to handle the various prompt changes, as you navigate the different configuration levels, and I have tweaked the playbook, but not coming right. Here is the below output. The full