22 lines
654 B
YAML
22 lines
654 B
YAML
---
|
|
- name: Nebula Install
|
|
block:
|
|
- name: Uninstall Nebula (clean install)
|
|
include_tasks: uninstall.yml
|
|
when: nebula_clean_install|bool
|
|
|
|
- name: Preflight checks
|
|
include_tasks: preflight.yml
|
|
|
|
- name: Install Nebula on all hosts
|
|
include_tasks: nebula.yml
|
|
|
|
- name: Deploy Lighthouse
|
|
include_tasks: lighthouse.yml
|
|
when: inventory_hostname in groups['nebula_lighthouse']
|
|
|
|
- name: Deploy Nebula Node
|
|
include_tasks: node.yml
|
|
when: inventory_hostname not in groups['nebula_lighthouse']
|
|
when: inventory_hostname in groups['nebula_lighthouse'] or nebula_internal_ip_addr is defined
|