Add Ansible playbooks for Longhorn, MetalLB, and Traefik installation conditional on presence of INSTALL_LONGHORN=true
20 lines
No EOL
491 B
YAML
20 lines
No EOL
491 B
YAML
---
|
|
- name: Install traefik 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 traefik pipeline
|
|
ansible.builtin.command: infctl -f pipelines/vagrant-ingress.json
|
|
args:
|
|
chdir: /home/vagrant
|
|
environment:
|
|
LOG_FILE: /tmp/traefik_log.txt
|
|
LOG_FORMAT: none
|
|
register: traefik_result
|
|
ignore_errors: false |