feat: env INSTALL_LONGHORN
Add Ansible playbooks for Longhorn, MetalLB, and Traefik installation conditional on presence of INSTALL_LONGHORN=true
This commit is contained in:
parent
80f4e5a53b
commit
8faa97a8bb
6 changed files with 129 additions and 44 deletions
16
vagrant/dev/ubuntu/ansible/install_metallb.yaml
Normal file
16
vagrant/dev/ubuntu/ansible/install_metallb.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue