Ansible doesn’t see that it is configured:
tasks:
- name: configure timezone
become: yes
ios_config:
lines: - clock timezone CET 1 0
- clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00
each time , i run it status is “changed”, command that is triggering the change is: “clock summer-time”
I don’t see any difference, why is ansible not skipping ?
Might it have something to do with the special characters in the string: “:” and “-” ???
running Ansible 2.5.2 in Tower
{
“_ansible_parsed”: true,
“commands”: [
“clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00”
],
“_ansible_no_log”: false,
“changed”: true,
“updates”: [
“clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00”
],
“invocation”: {
“module_args”: {
“multiline_delimiter”: “@”,
“authorize”: null,
“force”: false,
“diff_against”: null,
“replace”: “line”,
“running_config”: null,
“save_when”: “never”,
“port”: null,
“before”: null,
“auth_pass”: null,
“parents”: null,
“provider”: null,
“save”: false,
“match”: “line”,
“username”: null,
“defaults”: false,
“after”: null,
“host”: null,
“password”: null,
“diff_ignore_lines”: null,
“src”: null,
“ssh_keyfile”: null,
“lines”: [
“clock timezone CET 1 0”,
“clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00”
],
“intended_config”: null,
“timeout”: null,
“backup”: false
}
},
“banners”: {}
}