30 lines
826 B
YAML
30 lines
826 B
YAML
|
---
|
||
|
- hosts: all
|
||
|
gather_facts: no
|
||
|
tasks:
|
||
|
- name: Include vault vars
|
||
|
include_vars:
|
||
|
file: "{{ playbook_dir ~ '/vault/secrets' }}"
|
||
|
- name: Include vars
|
||
|
include_vars:
|
||
|
file: inventory/vars/main.yaml
|
||
|
- name: Wait for hosts
|
||
|
ansible.builtin.wait_for_connection:
|
||
|
timeout: 60
|
||
|
- name: Gathering facts
|
||
|
setup:
|
||
|
- name: Start basic node configuration
|
||
|
include_role:
|
||
|
name: node-configuration
|
||
|
when: enable_setup | bool
|
||
|
- name: Configure headscale
|
||
|
include_role:
|
||
|
name: headscale
|
||
|
when: enable_headscale|bool
|
||
|
- name: Configure wireguard
|
||
|
ansible.builtin.import_playbook: wireguard/wireguard.yml
|
||
|
when: enable_wireguard|bool
|
||
|
- name: Configure k3s
|
||
|
ansible.builtin.import_playbook: k3s-ansible/site.yml
|
||
|
when: enable_k3s | bool
|