Only running on specified nebula hosts

This commit is contained in:
Matt Burchett
2021-08-27 02:43:26 +00:00
parent 1d0b31fe2f
commit 25cb90286d

View File

@@ -1,15 +1,18 @@
---
- name: Uninstall Nebula (clean install)
include: uninstall.yml
when: nebula_clean_install
- name: Install Nebula on all hosts
include: nebula.yml
- name: Deploy Lighthouse
include: lighthouse.yml
when: inventory_hostname in groups['nebula_lighthouse']
- name: Deploy Nebula Node
include: node.yml
when: inventory_hostname not in groups['nebula_lighthouse']
- name: Nebula Install
block:
- name: Uninstall Nebula (clean install)
include: uninstall.yml
when: nebula_clean_install
- name: Install Nebula on all hosts
include: nebula.yml
- name: Deploy Lighthouse
include: lighthouse.yml
when: inventory_hostname in groups['nebula_lighthouse']
- name: Deploy Nebula Node
include: node.yml
when: inventory_hostname not in groups['nebula_lighthouse']
when: inventory_hostname in groups['nebula_lighthouse'] or nebula_internal_ip_addr is defined