From 71d956dab755468d630fe0fda3e9a5599f7b37ea Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:30 -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