lab-ansible/infra.yml
2024-02-04 16:10:17 +01:00

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']