Hi,
Is it currently possible to pass apt options to the apt module? The dpkg_options are only for dpkg, I’d like to pass apt specific options like so:
apt-get -o Dir::Etc::SourceList=/tmp/sources.list -o Dir::Etc::SourceParts=/nonexistent -o Dir::State::Lists=/tmp/lists/ update
This doesn’t work because the apt module only supports dpkg options:
- name: Parallel download packages | Download all required packages in parallel | Update cache
ansible.builtin.apt:
update_cache: true
dpkg_options: "Dir::Etc::SourceList=/tmp/sources.list,Dir::Etc::SourceParts=/nonexistent,Dir::State::Lists=/tmp/lists/"
when:
- ansible_facts['distribution_major_version'] != "22"
Kind regards, Jeroen Rijken