--- ## Checks/deploys a Linux system to be managed with Ansible. - hosts: all gather_facts: yes tasks: - name: "Set become method to doas (Alpine)" set_fact: ansible_become_method: doas when: "ansible_distribution == 'Alpine'" - name: "Set become to true" set_fact: ansible_become: true - name: "Include OS specific tasks" ansible.builtin.include_tasks: "compliance_{{ ansible_distribution }}.yaml"