Apply haproxy_service_configs to hosts idempotently

add_host module always returns changed state which looks like
non-idempotent behaviour, while it's expected to be changed at all times.
changed_when: false added for idempotent behaviour.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/915320
Change-Id: Ia2862e9883f1c972efdb40576e55dfe828c3a424
(cherry picked from commit 46a69a26a1)
This commit is contained in:
Dmitriy Rabotyagov 2024-04-10 11:45:45 +02:00 committed by Dmitriy Rabotyagov
parent 29491a17fa
commit 46b7d61c36
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@
name: "{{ item }}"
haproxy_service_configs: "{{ hostvars[inventory_hostname][service_variable] }}"
with_items: "{{ groups['haproxy_all'] }}"
changed_when: False
- hosts: haproxy_all
serial: "{{ haproxy_serial | default('50%') }}"