From 3178759035031015ec1d5b76d9e8f3b1009619ad Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Wed, 13 Jul 2022 07:24:45 +0530 Subject: [PATCH] Skip Enable cleanup service in check mode service/systemd check_mode fails[1] when service not found on host, we should skip the task instead. [1] https://github.com/ansible/ansible/pull/68136 Change-Id: I88f82e0eac5fa35b7a6de9ef20e936ef35a47891 --- deployment/neutron/neutron-ovs-agent-container-puppet.yaml | 1 + deployment/ovn/ovn-controller-container-puppet.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/deployment/neutron/neutron-ovs-agent-container-puppet.yaml b/deployment/neutron/neutron-ovs-agent-container-puppet.yaml index 4a1462f834..d659a8c3c2 100644 --- a/deployment/neutron/neutron-ovs-agent-container-puppet.yaml +++ b/deployment/neutron/neutron-ovs-agent-container-puppet.yaml @@ -381,6 +381,7 @@ outputs: service: name: neutron-cleanup enabled: true + when: not (ansible_check_mode|bool) - name: enable virt_sandbox_use_netlink for healthcheck seboolean: name: virt_sandbox_use_netlink diff --git a/deployment/ovn/ovn-controller-container-puppet.yaml b/deployment/ovn/ovn-controller-container-puppet.yaml index adfbe67cc7..1e24e21803 100644 --- a/deployment/ovn/ovn-controller-container-puppet.yaml +++ b/deployment/ovn/ovn-controller-container-puppet.yaml @@ -451,6 +451,7 @@ outputs: service: name: neutron-cleanup enabled: true + when: not (ansible_check_mode|bool) external_deploy_tasks: - when: - step|int == 0