[ansible-project] Mobile alerts for oncall paging system

2019-04-23 Thread Vinu Vajravel
Dear Folks , In my organisation we are supporting on call for all major issues .We used Air watch and it was fine after that we moved to Microsoft Outlook where in we have some discrepancy in alerting (i mean for notification).Is there any other application which has good facility for alerting

Re: [ansible-project] ansible skipping ssh setup for grid user

2019-04-23 Thread Dick Visser
Probably best to ask the maintainers of that specific repository, who should be most familiar with it On Tue, 23 Apr 2019 at 19:14, Ahmad S wrote: > I am following the tutorial from > *https://github.com/oravirt/ansible-oracle* > > I have simplified

Re: [ansible-project] Failing to open socket due to port in unicode type

2019-04-23 Thread Brian Coca
apply the following patch: diff --git a/lib/ansible/plugins/action/telnet.py b/lib/ansible/plugins/action/telnet.py index 785681e0a2..a9aea69b5c 100644 --- a/lib/ansible/plugins/action/telnet.py +++ b/lib/ansible/plugins/action/telnet.py @@ -56,7 +56,7 @@ class ActionModule(ActionBase):

Re: [ansible-project] Ansible & Windows Management

2019-04-23 Thread CHARCHOUF SABRI
Thank you very much for your help & advise. may I ask you if you can help me with just some example or tutoriel, as I'm new and any assistance is highly appreciated. if possible we can try to discuss further on slack or hangout.. Again thank you

[ansible-project] Re: Start time for Nagios downtime

2019-04-23 Thread dramaley
Seems this feature just didn't exist yet. I've added it and submitted a pull request: https://github.com/ansible/ansible/pull/55652 On Wednesday, April 10, 2019 at 9:27:48 AM UTC-5, dramaley wrote: > > Hello! > > I'm looking at documentation for the Nagios module. How does one specify > when

Re: [ansible-project] Failing to open socket due to port in unicode type

2019-04-23 Thread Doron B
Hi Brian, Any WA for the meantime? At the moment, I'm unable to use telnet module. Doron On Tuesday, April 23, 2019 at 5:24:30 AM UTC+3, Brian Coca wrote: > > All template results default to unicode strings, this is something > Jinja2 does by default., but this is probably something we should

[ansible-project] ansible skipping ssh setup for grid user

2019-04-23 Thread Ahmad S
I am following the tutorial from *https://github.com/oravirt/ansible-oracle* I have simplified the playbook to only configure ssh . It does it fine for "oracle" user but its skipping the setup for "grid" user , can someone help me figure out why ?

Re: [ansible-project] Ansible & Windows Management

2019-04-23 Thread Dick Visser
You should not use ansible to connect to each and every host and try to turn it off. That’s a load of overhead and there is no way to turn them back on again later. Instead, use ansible to connect to the openstack cluster and switch off hosts from there, for instance with

Re: [ansible-project] AWS elastic load balancer rules

2019-04-23 Thread Dick Visser
My default approach for (so far) unsupported features is to resort to command tasks, running the AWS cli. For idempotency I usually have two tasks, one to check the current configuration, and one to make any changes (if needed, based on the results of the first task). Dick On Tue, 23 Apr 2019 at

Re: [ansible-project] Evaluate group_vars directories and files recursively

2019-04-23 Thread 'Uffi Schnuffi' via Ansible Project
On Tuesday, April 23, 2019 at 3:28:18 PM UTC+2, Brian Coca wrote: > > First, you are defining abc-group1 BOTH as a host and as a group, that > can cause issues with selection not doing what you expect. > The naming of hosts is done in a way so that one can sort them automatically into the

Re: [ansible-project] Why does this if block + expression result in an undefined variable error?

2019-04-23 Thread Karl Auer
Not sure if the following explanation will help. Most languages will not continue evaluation of all the components in a boolean expression once enough have been evaluated to determine the answer. It's obvious that in "if A and B then C", C will only get evaluated if both A and B are true. But

[ansible-project] Re: Retrieving Cisco config with ios_facts module results in extra data in saved file

2019-04-23 Thread asilver
As a work around to this. After the config file is saved to Ansible server, I used the lineinfile module to remove those 2 configuration lines. With that being said, I still think this should be fixed unless someone has good reason why those 2 lines should be left in the saved config file...

[ansible-project] AWS elastic load balancer rules

2019-04-23 Thread Adam
Hi - As far as I can tell, it's not possible to configure AWS application load balancer rules for attributes like HTTP headers via Ansible. Is that correct? If not, does anyone know any examples of how to do this? If it doesn't exist yet, does anyone know if someone is already working on

Re: [ansible-project] Why does this if block + expression result in an undefined variable error?

2019-04-23 Thread Alex Willmer
On Thursday, 18 April 2019 17:34:28 UTC+1, Brian Coca wrote: > > lazy evaluation prevents the error until the variable is actualy > consumed, group1 is empty so [0] is pointing to 'the first host of a > list w/o hosts', so the error is correct, I agree, and don't contest this part. If foo is

Re: [ansible-project] Re: A10 Networks modules - Request for Testing and feedback

2019-04-23 Thread David Carrasco
Very cool. Thank you very much. Sent from my iPhone > On Apr 22, 2019, at 9:37 PM, Pshem Kowalczyk wrote: > > Hi, > > For most of the stuff it's just using the uri module, with something like > this: > > name: "execute command: {{ exec.meta.description }}" > uri: > method: "{{

Re: [ansible-project] Number of loops from command line

2019-04-23 Thread Brian Coca
you are overwriting the variables on each loop, and then you are NOT looping the shell action. Remove the set fact and use the lookups and loop directly on the shell action. On Thu, Mar 21, 2019 at 6:00 AM Jakub Kafka wrote: > > Thanks, thats work, bud i have another problem. Here is my code.

Re: [ansible-project] Evaluate group_vars directories and files recursively

2019-04-23 Thread Brian Coca
First, you are defining abc-group1 BOTH as a host and as a group, that can cause issues with selection not doing what you expect. To confirm your results, yes, ALL files under group_vars/ will be assigned to the group, there is no 'sub selection' made, this is done via a vars_plugin and we don't

[ansible-project] Re: Ansible & Windows Management

2019-04-23 Thread CHARCHOUF SABRI
Thank you for your reply I will check and revert back On Tuesday, April 23, 2019 at 3:55:29 AM UTC+2, Tony Chia wrote: > > To connect to windows from ansible you can use wintm instead of the > default winrm connection type -- You received this message because you are subscribed to the Google

Re: [ansible-project] Generate a sequence in a playbook using the inventory host group length

2019-04-23 Thread Saranya Nagaraj
Thankyou much Kai On Apr 23, 2019 2:06 PM, "Kai Stian Olstad" wrote: > On 23.04.2019 10:20, Saranya Nagaraj wrote: > >> Hi Brian, >> Thankyou for the response. >> This generates a list of numbers. >> >> But I want a string like this "0,1,2,3" >> >> I kind of tried python join n didn't work. >>

[ansible-project] Evaluate group_vars directories and files recursively

2019-04-23 Thread 'Uffi Schnuffi' via Ansible Project
Hey, I remember that I once initially did this and naturally assumed it would work. I now again am at the point where I find this could be immensely useful. Let's take the following inventory: ``` [all] abc-group1-1.envA abc-group1-1.envB [envA] abc-group1-1.envA [envB] abc-group1-1.envB

Re: [ansible-project] hard disk serial mask by in register

2019-04-23 Thread cch
yes , exactly what you said. inxi auto masked sensitive data in non-interacting shell . I add some parameters to inxi then problem solve , thanks ! Kai Stian Olstad於 2019年4月23日星期二 UTC+8下午2時29分52秒寫道: > > On 23.04.2019 06:17, c...@cowbay.org wrote: > > I wrote a playbook to collect CPU/RAM/HDD

Re: [ansible-project] Generate a sequence in a playbook using the inventory host group length

2019-04-23 Thread Kai Stian Olstad
On 23.04.2019 10:20, Saranya Nagaraj wrote: Hi Brian, Thankyou for the response. This generates a list of numbers. But I want a string like this "0,1,2,3" I kind of tried python join n didn't work. use the join filter {{range(0, groups['Test']|length + 1)|list | join(',') }} -- Kai Stian

Re: [ansible-project] Generate a sequence in a playbook using the inventory host group length

2019-04-23 Thread Saranya Nagaraj
Hi Brian, Thankyou for the response. This generates a list of numbers. But I want a string like this "0,1,2,3" I kind of tried python join n didn't work. Can you please assist. On Apr 23, 2019 7:48 AM, "Brian Coca" wrote: > mysequence: "{{range(0, groups['Test']|length + 1)|list }}" > > -- >

[ansible-project] win_copy error doesnt state what is the issue

2019-04-23 Thread Eric Tan
Hi all, I have followed the instructions on Ansible docs on how to do a windows copy from local linux to remote windows. https://docs.ansible.com/ansible/latest/modules/win_copy_module.html However i encounter error with no head nor tail what the issue is. I can confirm the script is able to

Re: [ansible-project] hard disk serial mask by in register

2019-04-23 Thread Kai Stian Olstad
On 23.04.2019 06:17, c...@cowbay.org wrote: I wrote a playbook to collect CPU/RAM/HDD info in ansible using command "inxi" but , dunno why , the serial column were masked by "" ST2000DM001-1ER164 size: 1.82 TiB speed: 3.0 Gb/s ", " serial: temp: 37 C " ] This

Re: [ansible-project] include_playbook / include tasks from Bitbucket?

2019-04-23 Thread P. Varsha
hello, Once check your file location. On Wed, Mar 20, 2019 at 7:55 PM TOB wrote: > Hi everyone, > > short summary: I have a playbook from where I wanna start other playbooks > hosted on Bitbucket. In short words: Got a server and want to clone > repository on Bitbucket where are all the other