From 1dda60d301ef73eb2b44feb7b9ceb1d2bbf2a205 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 25 Dec 2019 12:12:53 -0500 Subject: [PATCH] Add and remove floating IP during cluster bootstrap --- roles/pvc/tasks/pvc/bootstrap.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/pvc/tasks/pvc/bootstrap.yml b/roles/pvc/tasks/pvc/bootstrap.yml index 53de1ff..ab8c580 100644 --- a/roles/pvc/tasks/pvc/bootstrap.yml +++ b/roles/pvc/tasks/pvc/bootstrap.yml @@ -1,4 +1,8 @@ --- +- name: add floating IP address to upstream interface + command: ip address add {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} + ignore_errors: yes + - name: start the API client service: name: pvc-api.service @@ -29,3 +33,6 @@ name: pvc-api.service state: stopped +- name: remove floating IP address to upstream interface + command: ip address delete {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} + ignore_errors: yes