From fdedfb35bc97916b19b3683a4b3678230e30cd57 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 27 Aug 2023 10:58:14 -0400 Subject: [PATCH] Add final pvcnoded restart --- roles/pvc/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/roles/pvc/tasks/main.yml b/roles/pvc/tasks/main.yml index c99a648..340aadc 100644 --- a/roles/pvc/tasks/main.yml +++ b/roles/pvc/tasks/main.yml @@ -69,3 +69,20 @@ become: yes when: newhost is defined and newhost tags: always + +- name: wait 30 seconds for system to stabilize + pause: + seconds: 30 + become: no + connection: local + when: newhost is defined and newhost + tags: always + +- name: restart pvcnoded on first install + service: + name: pvcnoded + state: restarted + throttle: 1 + ignore_errors: yes + when: newhost is defined and newhost + tags: always