Package Installation Without Dependencies

I’m familiar with the zypper module and some other installers but none of them seem to give one complete control over package dependency requirements. The disable_recommends argument is really just /usr/bin/zypper’s –no-recommends option which isn’t good enough because package requirements are still honored and automatically satisfied but installing dependent packages. Is there any installation module similar to zypper that allows the package installation to use something like rpm’s –nodeps option? Thanks.

If the answer is ‘No. zypper and other package management modules do not give the caller complete control over package installation’ then I’d ask why. Would the community be opposed to extending something like the zypper module to include a disable_dependencies argument?

The ‘zypper’ module has ‘extra_args’ and ‘extra_args_precommand’ params (since 2.4 and 2.6, respectively), which allow you to pass whatever arbitrary arguments that you want to zypper when installing a package.

https://docs.ansible.com/ansible/latest/modules/zypper_module.html#parameters

Right but those are zypper command arguments. The zypper command itself (not the zypper module) has no way of ignoring package dependencies. At least no way that I know of. The zypper module could have used /usr/bin/zypper to download the specified RPMs and then used the rpm command to install them without dependencies. I have as much working in some local modifications to the zypper module.