Trying to understand this ugh

This commit is contained in:
2025-11-30 17:41:44 -06:00
parent 4fa0182002
commit 5722a24627
2 changed files with 118 additions and 123 deletions

View File

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