---
- name: Add labels to hard drives # noqa 301
  become: true
  command: "e2label {{ item.path }} {{ item.label }}"
  loop: "{{ disk_configs }}"

- name: Ensure /etc/fstab has proper entries
  become: true
  lineinfile:
    dest: /etc/fstab
    regexp: "LABEL={{ item.label }}"
    line: "{{ item.fstab }}"
  loop: "{{ disk_configs }}"
