Commit c437d3f5 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: fix alpine part

parent 5dfc4a5f
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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
+6 −9
Original line number Diff line number Diff line
@@ -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