CMK version: 2.2.0p39
OS version: Appliance 1.1.17
Error message: fatal: [myhost → localhost]: FAILED! => {“changed”: false, “msg”: “412 - If-Match header doesn’t match the object’s ETag Details: b’{"title": "Precondition failed", "status": 412, "detail": "ETag didn\‘t match. Expected 79316f35a8c8198bc9f69ef0d6d927847a267b13dc851fabd106deb3aecc1bee. Probable cause: Object changed by another user."}’”}
My Ansible code:
- name: "Create folder Local Monitoring in main"
checkmk.general.folder:
server_url: "{{ checkmk_master_url }}"
validate_certs: true
site: "{{ checkmk_master_site }}"
automation_user: "{{ checkmk_automation_user }}"
automation_secret: "{{ __checkmk_automation_key }}"
path: "/local_monitoring/"
name: "Local Monitoring"
attributes:
site: "{{ checkmk_master_site }}"
state: "present"
delegate_to: localhost
become: false
notify: "Activate Changes"
The folder exist already. In our test system I dont get this error but on productive system. Could it be that its related to changes in subsequent folders?
How can I prevent this?
Any help is much appreciated
Thanks
Michael