Re: [ansible-project] error configuring grub-pc

2024-04-08 Thread Kathy L
I'm back. Now the problem I have has migrated to Debian 11. I am trying to update packages which gives me the error below. So then I try to install grub-pc by its own which does not work. Any further ideas? Here is the code I am using and still I get the error "dpkg: dependency problems prev

Re: [ansible-project] error configuring grub-pc

2023-12-20 Thread Brian Coca
The module requires the utils, but the debconf CLI itself does not and should already be installed. -- Brian Coca (he/him/yo) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails fro

Re: [ansible-project] error configuring grub-pc

2023-12-20 Thread Kathy L
[image: Kathy L's profile photo] I took your suggestion to use debconf. The only issue is that in order to use debconf, I have to install debconf-utils. And when I try to install that, it tries to install grub-pc and the dialog appears. I'm not sure where to go from here - I can't update gr

Re: [ansible-project] error configuring grub-pc

2023-12-20 Thread Kathy L
In a continuation of my grub-pc issue I was going to install debconf-utils, then in debconf-set-selections set the frontend to Noninteractive then update grub-pc. However, when I install debconf-utils, it tries to install grub-pc which brings up a dialog, which I don't want. I'm not sure where

Re: [ansible-project] error configuring grub-pc

2023-12-19 Thread Brian Coca
that should be good, the other is probably the resolved path from a symlink (/dev/ does this a lot) -- -- Brian Coca (he/him/yo) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving ema

Re: [ansible-project] error configuring grub-pc

2023-12-19 Thread Kathy L
That make sense. I am trying to upgrade grub-pc which then prompts for the hard drive where / is mounted. When I type in debconf-show grub-pc I get a number of variables, including "install_devices". I expect this to be something like /dev/sda or dev/nvme0n1p1, but instead it reads something

Re: [ansible-project] error configuring grub-pc

2023-12-18 Thread Brian Coca
Sorry, I meant debconf, not dpkg_selections (not sure why I keep confusing those), here is an example of me doing the same for installing java package. https://github.com/bcoca/ansible-oracle_java7-role/blob/master/tasks/main.yml#L17 -- -- Brian Coca (he/him/yo) -- You received this me

Re: [ansible-project] error configuring grub-pc

2023-12-18 Thread Brian Coca
Not 'holding' but you pre populate the questions to avoid the prompting. Sadly `DEBIAN-FRONTEND: noninteractive` is not enough to avoid prompts when the package requires and answer, so the only way around this issue is 'answering before they ask', dpkg_selections allows you to do this. -- ---

Re: [ansible-project] error configuring grub-pc

2023-12-18 Thread Kathy L
Brian, Not quite sure I understand. Will holding grub-pc cause other problems in the long-term? On Tuesday, November 28, 2023 at 2:12:35 PM UTC-5 Brian Coca wrote: > See dpkg_selections module to PRE populate answers/settings for > packages when there are no defaults or (like your case) the def

Re: [ansible-project] error configuring grub-pc

2023-11-28 Thread Brian Coca
See dpkg_selections module to PRE populate answers/settings for packages when there are no defaults or (like your case) the defaults do not work. https://docs.ansible.com/ansible/latest/collections/ansible/builtin/dpkg_selections_module.html -- -- Brian Coca -- You received this message

Re: [ansible-project] error configuring grub-pc

2023-11-28 Thread Dick Visser
Sent from Gmail Mobile On Tue, 28 Nov 2023 at 17:43, Kathy L wrote: > 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 That variable has a '-

[ansible-project] error configuring grub-pc

2023-11-28 Thread Kathy L
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: