From 1a57c6bc66fa00f63d94ee6e3db0d9ff250ede19 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 18:37:44 +0000 Subject: [PATCH] Add 'pacemaker.yml' --- pacemaker.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pacemaker.yml diff --git a/pacemaker.yml b/pacemaker.yml new file mode 100644 index 0000000..b5b50f8 --- /dev/null +++ b/pacemaker.yml @@ -0,0 +1,30 @@ +- name: Pacemaker tools + tasks: + - name: Install pacemaker + package: + name: pacemaker + state: absent + - name: Install corosync + package: + name: corosync + state: absent + - name: Install pcs + package: + name: pcs + state: absent + - name: Install fence-agents + package: + name: fence-agents + state: absent + - name: append hosts to etc_hosts + blockinfile: + state: present + dest: /etc/hosts + block: | + '10.10.0.21 k8s-pi-01' + '10.10.0.22 k8s-pi-02' + - name: Start pcsd + service: + name: pcsd + enabled: false + state: false \ No newline at end of file