33 lines
610 B
YAML
33 lines
610 B
YAML
---
|
|
- name: Group hosts by platform
|
|
hosts: all
|
|
tags:
|
|
- always
|
|
pre_tasks:
|
|
- include_tasks: tasks/meta/runtime-group-determination.yaml
|
|
|
|
|
|
- name: Bootstrap remote ansible environment
|
|
hosts: linux
|
|
gather_facts: false
|
|
tags:
|
|
- always
|
|
tasks:
|
|
- include_tasks: tasks/meta/bootstrap-remote-env.yaml
|
|
|
|
|
|
# "server", here, is a word used to mean "not a workstation"
|
|
- name: Configure servers
|
|
hosts: linux:!workstation
|
|
gather_facts: false
|
|
roles:
|
|
- role: server
|
|
|
|
|
|
- name: Configure cluster
|
|
hosts: linux:&cluster
|
|
gather_facts: false
|
|
roles:
|
|
- role: datastore
|
|
- role: swarm
|