feat: fix alpine part

This commit is contained in:
Simon Cornet 2025-10-24 20:26:44 +02:00
commit c437d3f5b2
2 changed files with 13 additions and 10 deletions

View file

@ -6,7 +6,6 @@
name: "{{ item }}"
state: "present"
update_cache: true
cache_clean: true
when: 'ansible_os_family == "Alpine"'
with_items:
- "bash"
@ -19,3 +18,10 @@
- "tzdata"
- "vim"
- "wget"
# clean cache
- name: "clean cache"
ansible.builtin.command:
cmd: "apk clean cache"
failed_when: false
changed_when: false

View file

@ -42,20 +42,17 @@
- "ansible_os_family =='Debian'"
tags: "swap"
# apt
- name: "apt"
ansible.builtin.import_tasks: "apt/sources.yaml"
when: "ansible_os_family == 'Debian'"
tags: "apt"
# flush handler
- name: "flush handlers"
ansible.builtin.meta: "flush_handlers"
# apk
- name: "apk"
ansible.builtin.import_tasks: "apk/packages.yaml"
when: "ansible_os_family == 'Alpine'"
tags: "apk"
# apt
- name: "apt"
ansible.builtin.import_tasks: "apt/sources.yaml"
when: "ansible_os_family == 'Debian'"
tags: "apt"
# flush handler