Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt module not doing unattended installs #602

Closed
rdanbrook opened this issue Jul 16, 2012 · 6 comments
Closed

apt module not doing unattended installs #602

rdanbrook opened this issue Jul 16, 2012 · 6 comments

Comments

@rdanbrook
Copy link

The apt module currently brings up dialogs when installing some packages. It can be easily fixed by adding DEBIAN_FRONTEND=noninteractive as an environment variable.

library/apt:
APT = "DEBIAN_PRIORITY=critical %s" % APT_PATH

change to:
APT = "DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical %s" % APT_PATH

@mpdehaan
Copy link
Contributor

change applied, but did not test -- if you want to test the latest devel that would be great

@ChadScott
Copy link

I think we may have a regression on this issue.

I've been testing various new "roles" for Ubuntu 12.04 and I've found a case that doesn't work in Ansible but works properly manually. A simple...

- name: install slapd
apt: pkg=slapd state=installed

...will hang forever. Closer inspection shows whiptail waiting for a response to the question, "Please enter the password for the admin entry in your LDAP directory."

However, a manual...

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install slapd

...works just fine.

@ChadScott
Copy link

Actually, now that I dig through the code, it looks like Ansible is making no use of APT_ENVVARS for the install() action.

I'll send a pull request tomorrow sometime.

@srgvg
Copy link
Contributor

srgvg commented Apr 24, 2013

@ChadScott see #2763

APT_ENVVARSis indeed new to the upgrade funtion. The way the install function works, didn't change recently.

@srgvg
Copy link
Contributor

srgvg commented Apr 24, 2013

@ChadScott can you test the fix at #2771 ? thx

@srgvg
Copy link
Contributor

srgvg commented Apr 24, 2013

Correction, the env vars were called with the install function prior to my recent patch, this was indeed a regression. My bad.

@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants