grub_d_directory: file.directory: - name: /etc/default/grub.d - user: root - group: root - mode: 755 - makedirs: True grub_update: cmd.wait: - name: update-grub