feat: add alpine support for alpine
This commit is contained in:
parent
8187fdb3f8
commit
613bced17f
3 changed files with 10 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue