What pre steps are run by nxos_command using connection: network_cli?

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 by one each time on one switch, but does not on the other. This messes up config backups since a huge diff is recorded every time in order to reorder the logged commands in the output. I can’t reproduce this by running the commands manually on the device itself, so it seems to be something to do with ansible. I’m not sure it’s a bug yet, but I’d like to gather more information before either opening a bug report or opening a ticket with Cisco.