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

@ -4,6 +4,14 @@
tags: "ntp"
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
- name: "ntp - install - chrony debian"
ansible.builtin.apt:
@ -19,5 +27,4 @@
owner: "root"
group: "root"
mode: "0644"
when: 'ansible_os_family == "Debian"'
notify: "restart chrony"