16:00:04 #startmeeting Ansible Network Working Group 16:00:04 Meeting started Wed Apr 22 16:00:04 2020 UTC. 16:00:04 This meeting is logged and archived in a public location. 16:00:04 The chair is Qalthos. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:00:04 Useful Commands: #action #agreed #halp #info #idea #link #topic. 16:00:04 The meeting name has been set to 'ansible_network_working_group' 16:00:46 #link https://github.com/ansible/community/labels/network is where the agenda for this meeting can always be found 16:00:52 #topic Core Updates 16:01:11 #chair dmellado justjais pabelanger 16:01:11 Current chairs: Qalthos dmellado justjais pabelanger 16:03:58 #info OSPF resource module work continues 16:05:00 They're pretty complicated, so they're taking a bit of time 16:06:50 #info PRs are active in the associated collections 16:08:45 #link https://github.com/ansible-collections to see all the collections in development 16:09:13 Was wondering if it's possible to execute commands on a non-standard CLI (Kinda like network OSs but custom) ? 16:10:23 I don't think there's anything else of note new to report this week, so moving on 16:10:31 #topic Open Floor 16:11:31 AmIARobot: It depends on what exactly you're trying to do, but yes. 16:12:22 You'll need to make a cliconf plugin for whatever you're trying to connect to, and then you can probably use cli_command to talk to it 16:13:54 Oh, I was trying to get it to work with just the expect module. So, when I SSH into this machine, I get a different prompt - say "badrobot:" - where I just want to type a command and get an output. 16:15:10 Looks like I need to make a cliconf plugin - would check this out. Thanks. 16:15:11 If you're just using expect I don't see why it wouldn't work, but I don't havemuch experience with it 16:16:28 So during gather_facts - it fails to execute some mkdir commands ( /tmp/ansible-something ) - since I don't have any access to the actual linux shell. 16:16:53 Right, so just disable fact gathering 16:17:28 `gather_facts: no` in your playbook or set explicit fact gathering in your config depending on how you want to do it 16:17:47 I did try it. It gives me another error - this one a bit too vague. 16:19:54 Actually, I just double checked it, it's giving me the same error. 16:20:10 You might also have better luck asking in #ansible if this isn't about a networking module 16:21:22 Sure, will do that. 16:21:42 Going to look into cliconf plugins as well. From the first look, it seems like what I need. 16:22:40 Was asking here since what I was trying to do is similar to what - ansible_network_os - say VyOS / IOS does. 16:22:46 But thanks for the help. 16:23:13 AmIARobot: It's not really what they were designed for, but you should be able to use it to get a more structured approach to a CLI than you can get with expect 16:24:03 Well technically it's an experimental in-house networking OS 16:26:54 AmIARobot: Oh, you should also need a terminal plugin for your device, which I occasionally forget about as they're pretty static 16:28:00 I'm not sure about that - do you mean something like a cli_command module? 16:30:34 AmIARobot: Like https://github.com/ansible-collections/cisco.ios/blob/master/plugins/terminal/ios.py. It describes what the prompt looks like and how to escalate privileges or disable paging if you ned those things 16:31:38 The cliconf plugin is about sending structured data to a device, the terminal plugin is about how to set up a sane prompt on the device in the first place 16:34:36 Okay, got it! Would see if I can make something of this sort. In parallel, would try the expect approach as well. 16:39:31 Feel free to ask more questions in here if you get stuck. It's definitely way more to set up than just throwing expect at it, but it also gives you a reusable structure that can simplify things later. 16:40:20 And if you want to start making your own modules it makes that a lot simpler (: 16:44:31 Unless there's anything else from anyone, I'm going to close the meeting 16:47:07 #endmeeting