Trying to understand this ugh
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user