Question

ansible-playbook run always return as "Changed" with port configuration


I am learning to Ansible to manage the Cumulus Linux (v3.7.1) on AS7712-32X. I found that when run a playbook for port configuration it always show the task as "changed", even though nothing changed in the playbook file.

For example here is a simple task:
code:
 - name: add swp31s2 as access connection to VLAN 16
nclu:
commands:
- add interface swp31s2 link speed 10000
- add interface swp31s2 mtu 9000
- add interface swp31s2 bridge access 16

- name: commit the changes
nclu:
commit: true



When run this playbook repeatedly I always see:
code:
TASK [add swp31s2 as access connection to VLAN 16] ****************************************************************************
changed: [10.36.1.6]




For other nclu commands, like add a ntp server.,etc then it run as normal. i.e no changed on 2nd run if nothing really changed.

So my question here is: Is this a normal behavior of the nclu module? If yes then what is it meaning?

1 reply

Userlevel 3
Hi @jgao this is a known issue at this time with NCLU and Ansible. Someone is working on it and we hope to get a resolution before long.

Reply