-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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 uses apt-get --autoremove even if autoremove=no #30516
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Comments
Yeah this looks problematic.
|
dj4ngo
added a commit
to dj4ngo/ansible
that referenced
this issue
Sep 26, 2017
bcoca
pushed a commit
that referenced
this issue
Oct 2, 2017
BondAnthony
pushed a commit
to BondAnthony/ansible
that referenced
this issue
Oct 5, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
apt
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian Jessie
SUMMARY
If aptitude is missing apt module falls back to using apt-get but uses an option --autoremove that some versions of apt-get do not understood
STEPS TO REPRODUCE
Set up a minimal Debian Jessie system, it won't have aptitude installed.
Try to apply updates using apt module on it.
ansible -i target-host-name, target-host-name -m apt -sa 'upgrade=yes update_cache=yes autoclean=no autoremove=no' -vv
EXPECTED RESULTS
Apt module does not use --autoremove when autoremove=no
Apt module has default value no for autoremove
Apt module does not try to use --autoremove when apt-get does not support it
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: