19:11:20 #startmeeting Ansible Public Core Meeting 19:11:20 Meeting started Tue Apr 17 19:11:20 2018 UTC. The chair is gundalow. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:11:20 Useful Commands: #action #agreed #halp #info #idea #link #topic. 19:11:20 The meeting name has been set to 'ansible_public_core_meeting' 19:11:41 hello 19:11:50 #chair jtanner mat013 19:11:50 Current chairs: gundalow jtanner mat013 19:12:02 * ryansb waves 19:12:15 Hello 19:12:18 Hello :) 19:12:30 o/ 19:12:40 #chair ryansb nitzmahone 19:12:40 Current chairs: gundalow jtanner mat013 nitzmahone ryansb 19:13:03 #info Agenda as always is https://github.com/ansible/community/labels/core 19:13:14 Hola 19:13:27 #topic Feature request: support for relative copying from inventories folder #37426 19:13:34 #link https://github.com/ansible/ansible/issues/37426 19:13:46 #link https://github.com/ansible/community/issues/301#issuecomment-381414605 19:13:57 mat013: Thanks for adding this 19:14:07 Will give everybody a minute to read 19:14:42 not sure i follow this 19:15:05 ok so if you look at the ansible documentation 19:15:16 what do the "+" and "+--" represent? 19:15:27 dir struct 19:15:28 jtanner: refresh 19:15:32 https://docs.ansible.com/ansible/2.5/user_guide/playbooks_best_practices.html 19:15:35 I've fixed the formatting 19:15:40 ah, okay much clearer 19:16:08 All, if you have https://github.com/ansible/ansible/issues/37426 open, please refresh the page, the directory structure should be a lot clearer now 19:16:30 i dont think we need to add facilities, inventory_dir, group_names and invetnory_hostname all work to do this in play 19:17:07 playboodk_dir/role_paths also 19:17:15 even relative in role, wouild work 19:17:48 dunno, this feels like more precedence magic 19:18:16 action plugins have too much pathing magic already 19:18:27 if user wants this, they should build it in play, which is simple enough 19:18:57 well i managed to make a workaround (IMHO) 19:19:15 which was? 19:19:31 I'm not keen on adding more magic relative directories either. 19:19:41 #chair abadger1999 bcoca 19:19:41 Current chairs: abadger1999 bcoca gundalow jtanner mat013 nitzmahone ryansb 19:19:54 to have a group_var adding all file 19:20:10 I'd have to check if the proposed precedence follows our other precedence rules too. 19:20:39 by using group var to specify path, you get 'normal precedence' 19:21:18 with something like {{ inventory_dir + '/roles/' + role_name + '/files' }} 19:21:43 however I would need to prefix everywhere where I would like to refer to files in the inventory dir with that variable 19:22:22 Yeah, I think precedence would be the opposite if we were to implement that: http://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable 19:22:34 roles would override inventory. 19:22:57 abadger1999: they do .. except for defaults/main.yml 19:23:30 vars:/inline vars/vars/main.yml and even set+fact/include_vars in role .. should all override inventory 19:23:31 vars 19:24:00 inventory has low precedence when it comes go vars 19:24:19 not to be confused with keyword/config/connection var precedence, whcih is diff game 19:24:28 ok 19:28:17 Well I do not have so many other arguments than given te alternative layout it is kind of suggested that you can divide you inventory into different environments... and I would think (I can offcourse be wrong on this) that sometimes there would be files that are attached to a particular environment... and it would be convenient to have them located in there 19:28:40 I guess the alternative is you can place them in the file folder under the role 19:28:56 {{inventory_dir}}/files/ 19:31:11 There can be pros and cons I guess for either {{inventory_dir}}/files or {{inventory_dir}}/roles/{{role_name}}/files 19:31:23 I guess the former is in case you may share files across multiple roles 19:31:40 while the latter maybe in case you have environment specific files for a particular roles 19:31:47 In our case we use both 19:31:58 frankly, the idea of inventory roles sounds horrible 19:32:21 way too much complication for what can be resolved with using {{ inventory_dir }} in file paths 19:32:51 if you want files for roles .. i would just put in the roles /files/ 19:33:09 if you want to split by invneotry ./files/{{inventory_dir}}/ 19:35:44 do we need vote? 19:35:52 -1 19:36:08 -1 19:36:11 -1 19:36:24 i'm just not a fan of anything magic 19:36:40 I guess it a nay *lol* 19:36:52 sorry, but that seems to be the consensus 19:37:16 no worries... thanks for the attention 19:37:16 mat013: i would ask you to comment with your workaround in the ticket though in case others come along 19:37:17 i get why you want it, but i think that existing facilities can give you same/better w/o adding this to pathing magic .. which is already bad enough 19:37:48 @jtanner sure 19:38:29 #topic https://github.com/ansible/ansible/pull/38196 19:39:02 reviews would be great :) 19:39:36 matburt: ^ 19:39:42 added to my queue, but cannot promise getting to it any time soon 19:39:50 anyone with special interest in the psql modules? 19:40:10 only the tower folks that i know of 19:41:32 i'll tyr to get to it 19:41:39 thanks 19:41:40 #topic https://github.com/ansible/ansible/issues/38200 19:41:40 i tried to include that in postgresql_ext module but i wasn't successful (https://github.com/ansible/ansible/pull/26737#issuecomment-331853349) and didn't receive any feedback 19:41:44 retr0h? 19:42:02 ^ he scheduled it but does not come ... 19:43:10 at this point im favoring closing the ticket and asking him to either use propsals with detail and clarifying what he wants and/or come to one of these meetings 19:43:24 Pilou: Should we fallback to ansible.module_utils.database.pg_quote_identifier if none of the psycopg/postgres functions are available? 19:44:41 bcoca: we should probably do an internal meeting about molecule 19:44:49 and the topic in general 19:45:28 jtanner: im fine with that, but it seems some of us are unclear on what the 'ask' is 19:45:45 we have some of our own asks and molecule is a possible solution 19:46:31 schedule it 19:46:46 k 19:46:54 #topic open floor 19:47:26 abadger1999: not sure that _PG_IDENTIFIER_TO_DOT_LEVEL makes sense 19:49:09 if no new busines i'll close in 1 min 19:49:55 Pilou: It looks like it makes sense... but the bug report you reference looks like the logic is wrong. 19:50:34 #endmeeting