Commit 5865ab59 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: prepare for Alpine support

parent 12d9be68
Loading
Loading
Loading
Loading
Loading
+16 −4
Original line number Diff line number Diff line
@@ -35,7 +35,9 @@
# swap
- name: "swap"
  ansible.builtin.import_tasks: "swap.yaml"
  when: 'type == "vm"'
  when:
    - 'type == "vm"'
    - "ansible_os_family =='Debian'"
  tags: "swap"

# apt
@@ -71,6 +73,7 @@
# telemetry
- name: "telemetry"
  ansible.builtin.import_tasks: "telemetry.yaml"
  when: "ansible_os_family == 'Debian'"
  tags: "telemetry"

# service
@@ -79,7 +82,9 @@
  loop: "{{ service }}"
  loop_control:
    loop_var: "__service"
  when: "service is defined"
  when:
    - "service is defined"
    - "ansible_os_family == 'Debian'"

# flush handler
- name: "flush handlers"
@@ -88,7 +93,9 @@
# chrony
- name: "ntp"
  ansible.builtin.import_tasks: "ntp.yaml"
  when: 'type == "vm" or type == "hw"'
  when:
    - 'type == "vm" or type == "hw"'
    - "ansible_os_family == 'Debian'"
  tags: "ntp"

# flush handler
@@ -135,7 +142,9 @@
  loop: "{{ systemctl }}"
  loop_control:
    loop_var: "__systemctl"
  when: 'type == "vm"'
  when:
    - 'type == "vm"'
    - "ansible_os_family == 'Debian'"
  tags: "systemctl"

# syslog
@@ -156,6 +165,7 @@
# journald
- name: "journald"
  ansible.builtin.import_tasks: "journald.yaml"
  when: "ansible_os_family == 'Debian'"
  tags: "journald"

# flush handler
@@ -170,6 +180,7 @@
# sshd
- name: "sshd"
  ansible.builtin.import_tasks: "sshd.yaml"
  when: "ansible_os_family == 'Debian'"
  tags: "sshd"

# flush handler
@@ -187,4 +198,5 @@
# firewall
- name: "firewall"
  ansible.builtin.import_tasks: "firewall.yaml"
  when: "ansible_os_family == 'Debian'"
  tags: "firewall"