20:00:00 #startmeeting Ansible Windows Working Group 20:00:00 Meeting started Tue Aug 23 20:00:00 2022 UTC. 20:00:00 This meeting is logged and archived in a public location. 20:00:00 The chair is nitzmahone. Information about MeetBot at https://fedoraproject.org/wiki/Zodbot#Meeting_Functions. 20:00:00 Useful Commands: #action #agreed #halp #info #idea #link #topic. 20:00:00 The meeting name has been set to 'ansible_windows_working_group' 20:00:03 bam 20:00:06 #chair jborean93 20:00:06 Current chairs: jborean93 nitzmahone 20:00:06 hi 20:00:10 hey hey 20:00:12 #info agenda https://github.com/ansible/community/issues/644 20:00:15 hey 20:00:17 nothing new... 20:00:20 still got it 20:00:21 #topic open floor 20:00:50 maybe https://github.com/ansible-collections/community.windows/pull/425#pullrequestreview-1071047710 20:01:13 I think you tagged me last week when I was out of town, 20:01:28 yea I briefly brought it up but didn't go too into it 20:02:11 I'd agree that in the absence of another arg to explicitly change the source for the module deps, it should use whatever the requested source was 20:02:22 to me this aligns the behaviour with how `win_chocolatey` works when `source` is defined 20:03:09 or at least in scenarios where the source is a URI and it tries to find `{source]/install.ps1` 20:03:31 if the source doesn't have PowerShellGet/PackageManagement then they can always just add it in there 20:03:55 I don't disagree, but it is a breaking change in behavior, I think the change will cause issues for some small subset of playbooks, whose first installed module is from a private repo, and when the bootstrap is needed. Today, it would be successful because PSGet will search all repositories, with the change, it will fail unless the pre-reqs were in the private 20:04:14 there are a lot of workarounds for sure, like installing pre-reqs first 20:05:01 We have similar kinds of issues with many modules that try to bootstrap themselves- the auto-bootstrapping is great until you have to change something about it :D 20:05:07 in the end, I'm not too broken up about the change and I'm not actually intending to argue strongly to keep it the way it is, just want to be sure it'd made with intention; it should be done in a major version release 20:05:25 nitzmahone: actually yeah, my real feeling is that this module shouldn't be doing that automatic bootstrapping at all, but... 20:05:50 Yeah, the whole security/convenience tradeoff 20:05:54 I wouldn't go so far to say a major version release. I can see how it might break things but I would argue the previous behaviour of ignoring `source` was a bug 20:06:16 the fact it only upgrades if one of the newer arguments is specified makes it less of an impact 20:06:23 (potentially a CVE-worthy one if someone were to go to the trouble ;) ) 20:07:04 it wouldn't have ignored the source, it actually would have used all sources, and if PSGallery was left as a possible source, and the pre-reqs existed in the private, the whole operation would have failed 20:07:25 but talking to the PSGallery could not be something you want, maybe you only approved a subset of versions 20:07:39 if you don't want it, then PSGallery should be removed :) 20:07:55 hard to remove when `win_psrepository` won't work without the newer version installed 20:08:10 yay for chicken/egg setup issues 20:08:11 or at least needs to be done with a `win_shell/win_powershell` task that implements it's own idempotency 20:08:36 heh, yeah, these implementations are not perfect to be sure 20:09:11 anyway, I don't need to argue it further, I think all the possibilities are clear 20:09:17 But I think with that change it's a lot more secure by default for those who like their tinfoil hats 20:09:26 so I'm fine with either decision in that case 20:09:32 cool 20:09:52 (and still does the magic for folks who didn't specify otherwise) 20:10:58 this wouldn't be much of a problem if they actually upgraded the shipped version on new Windows to something that isn't a buggy mess 20:11:03 if issues come up, one workaround I might suggest is an extra task with `win_psmodule` explicitly installing `powershellget` and `packagemanagement`, and then follow it up with the task installing the private 20:11:18 that's somewhat what I did in the tests 20:11:52 just a single task to deal with the bootstrapping https://github.com/ansible-collections/community.windows/blob/17792ae27c174eabb39d9892a1c9769b41d241f0/tests/integration/targets/setup_win_psget/tasks/main.yml#L112-L117 20:12:22 if they want it from the PSGallery they can do that but omit `repository` 20:12:50 the fact you had to, is kind of what I was getting at, some folks who don't have this now will probably need it. So having the workarounds ready in case issues come up is a good idea 👍 20:13:23 I didn't have to, this just ensures the setup task actually works without having to replicate the same code in all that calls it 20:13:48 you're right, my mistake 20:14:02 all good 20:14:20 I was going to sign up for an Ask the Experts session at Fest (one of my favorite things to do at every fest since 2015, and gives me a good reason to go to Fest since I'm still not giving a talk), but they don't even have any core or Windows-specific sessions scheduled- the topic areas are all overly generic, and I'm not going to be much use helping people debug their Tower network device workflows or whatever... :( 20:15:10 :'( 20:15:21 So at least as of now I'm not planning to even go 20:15:23 same, i didnt see any topic i could register for 20:15:35 that seems to be how the last physical fest was 20:15:47 was generic Ask the Expert or more AAP/product based stuff 20:15:58 ah, that's a shame.. well I'll be there 20:16:18 hope you enjoy it 20:16:29 I might poke the folks that are organizing it just to be like "uh, yknow, people still actually have to write playbooks..." 20:16:44 heh, that's a good idea 20:17:32 * nitzmahone is in the middle of rewriting a chunk of ansible-builder to let you use vanilla base images 20:18:02 I kind alike how AWS separates there talks and sessions into 100, 200, 300, 400 level 20:18:04 nitzmahone: funny, many people approach tower/controller as a gui so they dont need to write playbooks 20:18:14 I'll be off for the next 3 meetings as well 20:18:17 I would definitely sign up for 300/400 level Ansible stuff 20:18:27 (and the weeks so the collections won't get any action during then) 20:18:36 bcoca; ... and they're usually painfully surprised when they find out they won't get far that way :D 20:18:52 levles: what is ansible, fix my playbook, how to loadblaance app, hey, i know how blocks work! 20:19:04 nitzmahone: i revel in that suprise 20:19:04 :p 20:19:16 briantist: yeah, we used to mark the topics as beginner/intermediate/advanced, but I haven't seen how they're doing it this year 20:20:13 A lot of the folks behind the original AnsibleFests have gotten promoted to other event/marketing stuff at RH, so I don't know who's running it anymire 20:20:33 * nitzmahone misses Carrie 20:21:03 * bcoca also misses Carrie 20:21:23 Anyway, it's still possible I *might* end up going, but dunno ATM 20:21:59 ^ only reason i go to fests/office is cause nitzmahone brings board games 20:22:03 I can only say I owe you all drinks, so..... there's that 🥂🍻 20:22:15 (also the first physical fest since 2015 that I haven't given a talk at, but maybe I'll come up with something to show before then :D ) 20:22:47 I was hoping to do a talk on the debugger stuff I've been working on but travel is hard for me being so far 20:22:48 Yeah, totally gonna hunt you down if I do end up going- 20:23:15 jborean93: we need that tardis now! 20:23:23 jborean93: I bet if you demo what you have to a couple folks they'll cough up a plane ticket 20:23:39 jborean93: yeah I hear that... maybe they will do one in Australia one year.. I would definitely try to go to that :) 20:23:59 i'll also take new zealand 20:24:08 Was the last time I saw you at the Durham office in 2019? 20:24:23 It's probably been at least 4 years since I've seen bcoca in person 20:24:38 I saw you last at fest in 2019, I've only been to the Durham office in 2017 20:24:56 ah right- it's all a blur :D 20:25:58 I think we did an Ansible Automates or two in Sydney/Melbourne awhile back 20:26:02 nitzmahone: probably more , 2019 was my sister's wedding so i missed office meeting 20:26:11 probably 2017? 20:26:18 yeah, that sounds about right 20:26:28 yea I did one of those I think in 18 but haven't done any others 20:26:32 i mean 2015 20:26:39 2017 was the wedding ... 20:26:43 I've yet to meet bcoca in person 20:26:48 he's a bot ;) 20:26:53 jborean93: you are not missing much 20:27:13 heh 20:27:29 i think the only one that can vouch im sstill a human is sloane, we met for session before pandemic 20:27:32 based on the IRC responses, bcoca is an AI trained on the Ansible source code 20:27:58 ... such a thing may or may not exist, actually 20:28:04 👀 20:29:17 ... "That's all I have to say about that..." 20:30:29 there's one other small Windows-related thing I have, I'm currently reviewing this collection for inclusion into the Ansible package, I think it will be the first outside `c.w` and `a.w` to contain PowerShell modules: https://github.com/lowlydba/lowlydba.sqlserver 20:31:00 so that's kind of exciting 20:31:06 noice 20:31:11 CI for that must be a bear :D 20:31:22 it was! I helped set it up 20:31:29 `ACCEPT_EULA=1` ;) 20:31:29 I did briefly see that, does it still use the custom connection plugin for cross platform support? 20:32:03 yes! that's one of the most interesting things about it, is that every module is tested both on Windows and also running on the controller using that hacked connection plugin :) 20:32:37 heh, love the Ⓐ in the CI jobs :D 20:32:41 and I know that at least at my company, it's used exclusively that way (pwsh on the controller) 20:33:06 the Ⓐ came from the original collection template's GHA heh 20:33:22 it's nice, because long names really don't display well 20:34:28 * nitzmahone remembers Bill's PRs adding emoji to core task names :D 20:34:49 ^ i still think we should have rejected that ... 20:34:56 there were a lot of 💩 tests in there 20:35:10 (literally) 20:35:11 we did draw the line on 'emoji modules' 20:35:22 will have to keep an eye on it, briefly looking at it yesterday showed a lot of promise and good polish 20:35:22 it's only a matter of time 20:36:00 someone in work chat was amazed at how groovy allowed a sentence as a method name 20:36:01 nitzmahone: if we ever do, i'll replace lineinfile name with :turd: 20:36:15 then I started demonstrating valid method names in powershell 😈 20:36:27 and `synchronize` with 😱 20:36:34 at least an alias ;) 20:37:18 there's basically no restrictions... I made names with emoji, with null characters, newlines, zalgo text, etc. All valid and working 20:37:41 tab-complete also handled them all 20:38:20 * bcoca writees a module named - (unicode dash)so - - is now a valid task! 20:38:30 love it 20:39:55 yea powershell is pretty flexible with all that stuff, you can do some really weird things 20:40:22 yeah, in variable names too 20:42:21 anything else we want to talk about, if not I'll close the meeting 20:42:30 nothing else from me 20:42:56 cool, enjoy the rest of your day 20:42:58 #endmeeting