21 lines
613 B
YAML
21 lines
613 B
YAML
---
|
|
# - name: Configure /etc/default/grub for fsck
|
|
# ansible.builtin.lineinfile:
|
|
# state: present
|
|
# dest: /etc/default/grub
|
|
# backrefs: true
|
|
# regexp: '^(GRUB_CMDLINE_LINUX=(?!.* fsck)\"[^\"]+)(\".*)'
|
|
# line: '\1 fsck.mode=force fsck.repair=yes\2'
|
|
# backup: true
|
|
# notify: Update_Grub
|
|
|
|
- name: Configure Grub args for fsck
|
|
ansible.builtin.command:
|
|
cmd: grubby --args="fsck.mode=force fsck.repair=yes" --update-kernel=ALL
|
|
changed_when: false
|
|
register: autofsck_grubby_add_args
|
|
|
|
- name: Debug autofsck_grubby_add_args
|
|
ansible.builtin.debug:
|
|
var: autofsck_grubby_add_args
|