acupedia-ops/ansible/playbooks/preflight.yml

15 lines
442 B
YAML

---
- name: Validate AcuPedia remote hosts
hosts: docker_hosts
gather_facts: true
tasks:
- name: Verify supported operating system
ansible.builtin.assert:
that:
- ansible_os_family == "Debian"
fail_msg: "Initial AcuPedia remote setup supports Debian/Ubuntu hosts only."
- name: Verify privilege escalation
ansible.builtin.command: /usr/bin/true
become: true
changed_when: false