Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@

- name: software raid - create mdadm config file
template: src=mdadm.conf.j2 dest=/etc/mdadm/mdadm.conf
when: software_raid_devices is defined
when: software_raid_devices is defined and ansible_os_family == "Debian"

- name: software raid - create mdadm config file
template: src=mdadm.conf.j2 dest=/etc/mdadm.conf
when: software_raid_devices is defined and ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'Amazon'

- name: software raid - update initramfs
shell: "update-initramfs -u"
Expand Down