Compare commits

...

2 Commits

Author SHA1 Message Date
15f013e74e Fix bad delegate_to 2023-08-30 15:06:52 -04:00
c13f922c7d Update minimum PVC version 2023-08-30 13:39:51 -04:00

View File

@ -6,7 +6,7 @@
become_user: root become_user: root
gather_facts: yes gather_facts: yes
vars: vars:
minimum_pvc_version: 0.9.68 minimum_pvc_version: 0.9.69
tasks: tasks:
- name: check that cluster is on the minimum PVC version or newer - name: check that cluster is on the minimum PVC version or newer
shell: "dpkg --compare-versions $(pvc --quiet cluster status -f json | jq '.pvc_version' | tr -d '\"') ge {{ minimum_pvc_version }}" shell: "dpkg --compare-versions $(pvc --quiet cluster status -f json | jq '.pvc_version' | tr -d '\"') ge {{ minimum_pvc_version }}"
@ -529,8 +529,7 @@
- name: set first node as primary coordinator - name: set first node as primary coordinator
command: "pvc node primary --wait" command: "pvc node primary --wait"
run_once: yes run_once: yes
delegate_to: "{{ item }}" delegate_to: "{{ ansible_play_hosts[0] }}"
loop: "{{ ansible_play_hosts[0] }}"
- name: unset PVC maintenance mode - name: unset PVC maintenance mode
command: pvc cluster maintenance off command: pvc cluster maintenance off