Re: [ansible-project] Ansible Connection

2017-03-08 Thread albert . suwandhi
Thanks for your explanation. On Tuesday, March 7, 2017 at 11:22:59 PM UTC+7, Brian Coca wrote: > > So most networking appliances don't have python installed, which > ansible requires to manage systems. To work around this most 'network > appliance modules' use either an API or a special manage

Re: [ansible-project] Timestamp without gathering facts

2017-03-08 Thread Brian Coca
You can use a lookup to query the 'controller's date' lookup('pipe', 'date ') -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansi

Re: [ansible-project] Become (priv escalation) on localhost fails for file content lookup

2017-03-08 Thread Brian Coca
lookups are not affected by become, they always execute in the context of the user running ansible. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [ansible-project] Crons on a collection of servers

2017-03-08 Thread Dick Davies
Why don't you just set disabled: as a var, and then set that either true or false on each server/group as needed? On 8 March 2017 at 16:27, Ed Greenberg wrote: > We have a collection of load balanced web servers, and we have cron jobs > spread across the server base. > > I would like to manage th

[ansible-project] Crons on a collection of servers

2017-03-08 Thread Ed Greenberg
We have a collection of load balanced web servers, and we have cron jobs spread across the server base. I would like to manage these cron jobs in Ansible. The current state is to have all the cron jobs on all the servers, disabled, and then to selectively enable the ones that need to run on

[ansible-project] Re: dynamic inventory and --list printing the groupname

2017-03-08 Thread Mihai Cristian Satmarean
Hi, Can you share the script in a way, we are looking for ways to do the same. Thanks! duminică, 9 februarie 2014, 20:33:39 UTC+1, habeeb rahman a scris: > > Hi Ansiblers, > > I just finished a python program to query our mysql inventory. > when I do python getinv.py --list, i can see the json ou

[ansible-project] global default for pip extra_args?

2017-03-08 Thread Michael Ströder
HI! Is it possible to set a global default value for argument extra_args in pip module? Something like pip_extra_args? Ciao, Michael. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving email

[ansible-project] Re: How to get the first group defined in inventory for current inventory_hostname involved in multiple groups

2017-03-08 Thread Fabrice Perko
Hello Jean-Christophe I use Ansible for 1 year now, and in my experience: - the multiple inheritance is absolutely to be avoided. - you can make simple inheritance on several levels (a host is part of a group that is part of a group, etc.) - when multiple inheritance is really needed, I create se

[ansible-project] List in lists

2017-03-08 Thread Mikael Sandström
Hi, Gist available at: https://gist.github.com/oravirt/c13406766e820e99be9d1e5c30562075 I've got a structure like this: blergh: - parent: first_layer first_layer_list: - { name: first_layer_list_1st_name } - { name: first_layer_list_2nd_name

Re: [ansible-project] Failed to validate the SSL certificate for archive.apache.org:443

2017-03-08 Thread Mischa ter Smitten
Python 2.7.10 is the first version to have decent SNI support On Tuesday, March 7, 2017 at 5:12:30 PM UTC+1, Dick Davies wrote: > > Sure, see the second task here: > > > https://github.com/rasputnik/ansible-jira/blob/master/roles/jira/tasks/main.yml > > > > On 7 March 2017 at 09:21, Pedro Fe