From c6922a2e4889c9f747e1d8d199be54904d2bff26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 6 Feb 2019 11:03:34 +0100 Subject: [PATCH] Fix E405 Remote package tasks should have a retry --- CHANGELOG.md | 5 +++++ tasks/main.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5284616..cb2500b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.3.2 + +### Enhancements +* Fix E405 Remote package tasks should have a retry. + ## v1.3.1 ### Fix diff --git a/tasks/main.yml b/tasks/main.yml index 1297704..f7ef188 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,6 +17,8 @@ state: '{{ xymon_cli_pkg_state }}' with_items: - '{{ xymon_cli_pkg_list }}' + register: cli_result + until: cli_result is success when: xymon_cli_manage|bool # Manage client configuration [[[1 @@ -57,6 +59,8 @@ - '{{ xymon_plug_apt_package }}' when: (xymon_cli_manage|bool and xymon_plug_manage|bool) + register: apt_plug_result + until: apt_plug_result is success notify: restart xymon-client service - name: PLUGIN apt @@ -88,6 +92,8 @@ state: '{{ "present" if xymon_plug_mq_state else "absent" }}' with_items: - '{{ xymon_plug_mq_package }}' + register: mq_plug_result + until: mq_plug_result is success when: (xymon_cli_manage|bool and xymon_plug_manage|bool) notify: restart xymon-client service @@ -110,6 +116,8 @@ state: '{{ "present" if xymon_cli__plug_ipmi_state else "absent" }}' with_items: - '{{ xymon_cli__plug_ipmi_package }}' + register: ipmi_plug_result + until: ipmi_plug_result is success when: (xymon_cli_manage|bool and xymon_plug_manage|bool) notify: restart xymon-client service @@ -132,6 +140,8 @@ state: '{{ "present" if xymon_plug_libs_state else "absent" }}' with_items: - '{{ xymon_plug_libs_package }}' + register: libs_plug_result + until: libs_plug_result is success when: (xymon_cli_manage|bool and xymon_plug_manage|bool) notify: restart xymon-client service