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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAAz2EOm%3DqbE0CjfYC6TB9knf%2BfKv6B8hNWGvAyL3T0i3YFi97A%40mail.gmail.com.

Reply via email to