Details
Description
When downgrading a package to a lower version the apt_package provider will error out with:
E: There are problems and -y was used without --force-yes
Running the command with "--force-yes" fixes the issue.
It would be great if the Yum provider's allow_downgrade attribute could be ported over to apt provider. However it looks like "--force-yes" has many other implications aside from allowing downgrade.
Another way to do it would be to add a "force_yes" attribute to the apt_package provider, which would then add the flag to the command line.
Example implementation of force_yes attribute here:
https://github.com/elsonrodriguez/chef/commit/184ee96fd24dfbf3d0e0820e576bb89ceb59f62a