Kathy L
unread,Oct 23, 2023, 6:14:33 AM10/23/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
We are trying to update packages on several AWS servers via ansible. In the beginning of our playbook we have the environment to noninteractive like this:
environment:
DEBIAN_FRONTEND: noninteractive
When I run an update (or try to install anything, I get the error stating "/dev/sda does not exist". That is because for example, when provisioning AWS nodes, the disk type is not /dev/sda but something else.
My question is how do i run update grub-pc with a specific disk? I'm assuming I would get the disk "name" from ansible_facts (devices), grab the first disk, then run something similar to "apt install grub-pc /dev/nvme01"
Is there a way to do this? I tried the line above and it failed and I'm out of ideas.