35 lines
846 B
YAML
35 lines
846 B
YAML
# vim: ft=yaml.ansible
|
|
# code: language=ansible
|
|
---
|
|
- name: Provision all VMs
|
|
hosts: virtual
|
|
gather_facts: true
|
|
become: true
|
|
tasks:
|
|
- name: Include role 'vm-common'
|
|
ansible.builtin.include_role:
|
|
name: vm-common
|
|
|
|
- name: Include role 'docker'
|
|
ansible.builtin.include_role:
|
|
name: docker
|
|
when: vm_type == 'app' or
|
|
vm_type == 'uptime'
|
|
vm_type == 'runner'
|
|
|
|
# - name: Include role 'zfs'
|
|
# ansible.builtin.include_role:
|
|
# name: zfs
|
|
# when: vm_type == 'app'
|
|
|
|
- name: Include role 'services'
|
|
ansible.builtin.include_role:
|
|
name: services
|
|
when: vm_type == 'app' or
|
|
vm_type == 'uptime'
|
|
|
|
# - name: Include role 'jumphost'
|
|
# ansible.builtin.include_role:
|
|
# name: jumpthost
|
|
# when: vm_type == 'control'
|