ansibleguy.infra_apache/tasks/main.yml

15 lines
408 B
YAML

---
- name: Apache | Checking config
ansible.builtin.fail:
msg: "The required configuration was not provided!
Needed: 'apache', 'apache.sites'"
when: >
apache is undefined or
apache.sites is undefined or
apache.sites | length == 0
- name: Apache | Processing debian config
ansible.builtin.import_tasks: debian/main.yml
when: "ansible_distribution|lower in ['debian', 'ubuntu']"