[ansible-project] What pre steps are run by nxos_command using connection: network_cli?

2019-08-28 Thread Ian Barrere
Hi, does anybody know what the steps are that "nxos_command" (with connection: network_cli) takes before running the specified command? I can't find documentation for that. For some reason, when issuing "show archive log config all" on two of my Nexus 31108TCVs, the index number decrements

Re: [ansible-project] Looping through registered lines

2018-02-15 Thread Ian Barrere
I see. Referencing the 0 explicitly on the end has resolved the problem. Thanks! Ian On Thursday, February 15, 2018 at 1:21:15 PM UTC-7, Kai Stian Olstad wrote: > > On Thursday, 15 February 2018 20.44.16 CET Ian Barrere wrote: > > If I use the operator "with_items"

[ansible-project] Looping through registered lines

2018-02-15 Thread Ian Barrere
I have a task for a Cisco device where I register zero or more lines to come back to later: - name: gather non-standard usernames ios_command: commands: - show running-config | include username register: usernames I would like the next task to run through each registered line