autofsck/tasks/cleanup.yml

8 lines
235 B
YAML

---
- name: Cleanup /etc/default/grub to remove fsck
ansible.builtin.replace:
path: /etc/default/grub
regexp: '(GRUB_CMDLINE_LINUX=".*)\s+(fsck\.mode=force)\s+(fsck.repair=yes)(.*")'
replace: '\1\4'
notify: Update_Grub