blob: cf13692aee9344bf593161ad554c258c8bdd07ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
- import_playbook: ../init/evaluate_groups.yml
- name: Ensure there are new_nodes
hosts: localhost
connection: local
gather_facts: no
tasks:
- fail:
msg: >
Detected no new_nodes in inventory. Please add hosts to the
new_nodes host group to add nodes.
when:
- g_new_node_hosts | default([]) | length == 0
# Need a better way to do the above check for node without
# running evaluate_groups and init/main.yml
- import_playbook: ../init/main.yml
- import_playbook: private/config.yml
|