Script the installation of .deb packages that have configuration prompts

from blog Alex W.'s Blog, | ↗ original
Some packages open up a terminal UI to ask you several questions after you install them with dpkg -i. If you’re trying to install the package using Ansible apt’s deb feature then the installation will hang forever while it waits for these prompts to be answered. You can pre-answer all of the questions by using Ansible’s debconf feature. To figure...