diff --git a/roles/apiserver_haproxy_upgrade/tasks/main.yml b/roles/apiserver_haproxy_upgrade/tasks/main.yml index e2ee8db..3fdfce2 100644 --- a/roles/apiserver_haproxy_upgrade/tasks/main.yml +++ b/roles/apiserver_haproxy_upgrade/tasks/main.yml @@ -18,6 +18,7 @@ service: name: haproxy state: reloaded + when: not(_haproxy_repo_just_added is changed and ansible_check_mode) rescue: - name: "Restart compose stack if error occured"