ios_template and nxos_template work by reading in the input file,
parsing it and comparing it against a parsed copy of the running config
of the network device. In order for the template module to work
effectively, the input file must match the same block syntax as the
target device. Since ios and nxos use different configuration file
syntax, you must supply two different input files (one for each OS).
In your example, you would need an input file for ios using single space
block indents and a second input file for nxos using two space block
indents.
Also, can you confirm what version of Ansible you are running. There as
an issue with global ordering statements that was fixed before the final
2.1 was released.
On 6/8/16 4:11 AM, David Vávra wrote:
> Hi, I would like to clarify how network template modules are handling given
> src configuration because so far I've found out several cases where its
> breaking the order of configuration commands.
> This is my used playbook
> <
https://gist.github.com/anonymous/1fbdf966aea5bf6ff9f85d3a59b0eab0>.