18 lines
549 B
YAML
18 lines
549 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
|
|
|
|
- name: Remove fsck args from Grub
|
|
ansible.builtin.command:
|
|
cmd: grubby --remove-args="fsck.mode=force fsck.repair=yes" --update-kernel=ALL
|
|
changed_when: false
|
|
register: autofsck_grubby_rm_args
|
|
|
|
- name: Debug autofsck_grubby_rm_args
|
|
ansible.builtin.debug:
|
|
var: autofsck_grubby_rm_args
|