lab-ansible/infra.yml

13 lines
290 B
YAML

# vim: ft=yaml.ansible
# code: language=ansible
---
- name: Run playbook
hosts: infrastructure
become: true
gather_facts: true
tasks:
- name: Include role 'ctl-common'
ansible.builtin.include_role:
name: ctl-common
when: hostname in groups['controlservers']