diff --git a/playbook.yaml b/playbook.yaml index 700ce24..68f72ff 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -61,7 +61,7 @@ # apk - name: "apk" ansible.builtin.import_tasks: "tasks/apk/packages.yaml" - when: "ansible_os_family == 'Alpine'" + when: 'ansible_os_family == "Alpine"' tags: "apk" # apt diff --git a/tasks/cron.yaml b/tasks/cron.yaml index ba61911..2a3845e 100644 --- a/tasks/cron.yaml +++ b/tasks/cron.yaml @@ -21,5 +21,5 @@ owner: "root" group: "root" mode: "0600" - when: "ansible_os_family == 'Alpine'" + when: 'ansible_os_family == "Alpine"' tags: "cron" diff --git a/tasks/ntp.yaml b/tasks/ntp.yaml index 35f01b3..5136d87 100644 --- a/tasks/ntp.yaml +++ b/tasks/ntp.yaml @@ -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"