Add and remove floating IP during cluster bootstrap

This commit is contained in:
Joshua Boniface 2019-12-25 12:12:53 -05:00
parent ee948cb91c
commit 1dda60d301
1 changed files with 7 additions and 0 deletions

View File

@ -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