This is my playbok. I'm trying to add a new logging server to my switches.
---
- name: "Add new logging server"
hosts: all
gather_facts: no
tasks:
- name: Add logging server
cisco.ios.ios_logging_global:
config:
hosts:
- hostname: 10.255.0.2
logging_on: enable
trap: informational
The play book is working (it does add the server) but its not idempotent. Does anyone else have that problem? I have checked the LF and encoding. The version for Galaxy collection "cisco.ios" is 2.5.
My ansible version is:
$ansible --version
ansible 2.10.9
config file = /home/fredr/ansible/ansible.cfg
configured module search path = ['/home/fredr/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/fredr/.local/lib/python3.8/site-packages/ansible
executable location = /home/fredr/.local/bin/ansible
python version = 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
How can I make it idempotent?