feat: add alpine support for alpine

This commit is contained in:
Simon Cornet 2025-11-10 15:03:19 +01:00
commit 613bced17f
3 changed files with 10 additions and 3 deletions

View file

@ -61,7 +61,7 @@
# apk # apk
- name: "apk" - name: "apk"
ansible.builtin.import_tasks: "tasks/apk/packages.yaml" ansible.builtin.import_tasks: "tasks/apk/packages.yaml"
when: "ansible_os_family == 'Alpine'" when: 'ansible_os_family == "Alpine"'
tags: "apk" tags: "apk"
# apt # apt

View file

@ -21,5 +21,5 @@
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0600" mode: "0600"
when: "ansible_os_family == 'Alpine'" when: 'ansible_os_family == "Alpine"'
tags: "cron" tags: "cron"

View file

@ -4,6 +4,14 @@
tags: "ntp" tags: "ntp"
block: block:
# install alpine
- name: "ntp - install - chrony alpine"
community.general.apk:
name: "chrony"
state: "present"
update_cache: true
when: 'ansible_os_family == "Alpine"'
# install chrony # install chrony
- name: "ntp - install - chrony debian" - name: "ntp - install - chrony debian"
ansible.builtin.apt: ansible.builtin.apt:
@ -19,5 +27,4 @@
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0644" mode: "0644"
when: 'ansible_os_family == "Debian"'
notify: "restart chrony" notify: "restart chrony"