Add Ansible playbooks for Longhorn, MetalLB, and Traefik installation conditional on presence of INSTALL_LONGHORN=true
16 lines
466 B
YAML
16 lines
466 B
YAML
---
|
|
- name: Install metallb using infctl
|
|
hosts: localhost
|
|
become: true
|
|
become_user: vagrant
|
|
serial: 1 # Ensure tasks are executed one host at a time
|
|
vars_files:
|
|
- vars.yaml
|
|
|
|
tasks:
|
|
|
|
- name: run ======== infctl metallb pipeline
|
|
ansible.builtin.command: >
|
|
bash -c 'cd /home/vagrant && LOG_FILE=/tmp/metallb_log.txt LOG_FORMAT=basic infctl -f ./pipelines/vagrant-metallb.json'
|
|
register: metallb_result
|
|
ignore_errors: false
|