TP-IaC-Kubernetes/roles/purelb/tasks/main.yaml

16 lines
425 B
YAML

- name: copy PureLB config
become: yes
template:
src: purelb-config.yaml.j2
dest: /etc/purelb-config.yaml
- name: install PureLB
command: kubectl apply -f https://gitlab.com/api/v4/projects/purelb%2Fpurelb/packages/generic/manifest/0.0.1/purelb-complete.yaml
retries: 2
delay: 10
register: result
until: result.rc == 0
- name: install PureLB config
command: kubectl apply -f /etc/purelb-config.yaml