I have an ansible playbook running against a Debian 10 VM. At the top of my
playbook I have this environment variable:
environment:
DEBIAN-FRONTEND: noninteractive
When I try to install any package, or update all packages I get the
following error:
.....
Setting up grub-pc..
/dev/sda does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding
DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
dpkg --configure -a
dpkg: error processing package grub-pc
installed grub-pc package post-installation script
subprocess returne error exit status 1
dpkg: depending problems prevent configuration of grub2:
grub2 depends on grub-pc (= 2.06-3-deb10u4); however:
Package grub-pc is not configured yet.
Where is /dev/sda set as the disk to run grub-pc against? (Or is that the
default?) Do I have to find the real hard drive and pass it to grub-pc? I
obviously don't want a dialog to pop up as this will be running against
multiple machines, some of which I can't ssh into.
Can anyone help me figure out how to get around this?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e5cb1b3e-55be-4efd-bd12-f29cb016235an%40googlegroups.com.