[ansible-devel] Learning Ansible - No exposure to Linux

2019-10-03 Thread Ramesh RK
Hi All I am working on MS technologies from last 15 yrs, do have knowledge in scripting like PowerShell, VBS. Never worked on Linux in my career, and now planning to learn Ansible. Understand that it does required 'basic' LINUX knowledge to understand and use. So seek suggestion and advice

[ansible-devel] New Ansible release 2.9.0rc2

2019-10-03 Thread Toshio Kuratomi
Hi all- we're happy to announce that the general release of Ansible 2.9.0rc2 is now available! How do you get it? -- $ pip install ansible==2.9.0rc2 --user The tar.gz of the release can be found here: * 2.9.0rc2 https://releases.ansible.com/ansible/ansible-2.9.0rc2.tar.gz

[ansible-devel] Re: Access group_vars from custom module

2019-10-03 Thread Magnus Lubeck
I think you have missed part of the ansible concept, and is mixing up where you loop through the variables. It sounds like you want to call a program that is looping through something you mention in a group_var file, whereas the plugin should just take a single parameter, and do its thing

Re: [ansible-devel] Access group_vars from custom module

2019-10-03 Thread Alan Rominger
Try the environment variable ANSIBLE_VERBOSE_TO_STDERR, and redirect in bash (> or 2>) as necessary. I think there's also a flag to pipe the JSON into a file. Alan github: AlanCoding On Thu, Oct 3, 2019 at 9:12 AM Alexandru Obretin < alexandru.obreti...@gmail.com> wrote: > Thanks for the

Re: [ansible-devel] Access group_vars from custom module

2019-10-03 Thread Alexandru Obretin
Thanks for the answer Alan. A broader context of my scenario is the following: 1. In order to send HTTP requests to my equipment I have to be logged in, to be authorized. 2. The username and the password are passed as variables inside the inventory file. 3. Inside the login function in my

Re: [ansible-devel] Access group_vars from custom module

2019-10-03 Thread Alan Rominger
The call pattern I'd suggest for ansible-inventory would be like ansible-inventory -i my_inventory.yml --list --export With the export option, group_vars should show under the group. I don't understand the rest of your problem about expecting vars from module_utils, but I hope this gets you

[ansible-devel] Access group_vars from custom module

2019-10-03 Thread Alexandru Obretin
Hello, I am developing some custom Ansible modules used for configuring network TAPs and they basically rely on a HTTP connection. Therefore, I have designed a httapi plugin module and I want to get the group_vars information associated to the current host directly from my custom module_utils

[ansible-devel] Re: facts gathering question

2019-10-03 Thread Xander Cage
nobody? On Wednesday, October 2, 2019 at 9:39:30 AM UTC+2, Xander Cage wrote: > > > hi all, > > quick question, i'm trying to add some aix specific facts using the > BaseFactCollector. for some reason the facts to not show up in the setup > output. whats kind of wizardy has to be done do make