From cf426408f2babd6dcc6e4dcf16d26b486d594367 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 16:18:20 -0400 Subject: [PATCH] Restore original setting --- roles/pvc/tasks/main.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/roles/pvc/tasks/main.yml b/roles/pvc/tasks/main.yml index b6c9755..bc21509 100644 --- a/roles/pvc/tasks/main.yml +++ b/roles/pvc/tasks/main.yml @@ -61,16 +61,9 @@ tags: pvc-cputuning when: debian_version|int >= 11 and cpu_tuning is defined -- block: - - name: restart server on first install - reboot: - post_reboot_delay: 60 - reboot_timeout: 1800 - - - name: set first node as primary coordinator on first install - command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}" - run_once: yes - delegate_to: "{{ ansible_play_hosts[0] }}" - +- name: restart server on first install + reboot: + post_reboot_delay: 60 + reboot_timeout: 1800 when: newhost is defined and newhost tags: always