On 09. des. 2016 17:41, [email protected] wrote:
I am attempting to perform the follow in order to only upgrade ubuntu
security updates...

    apt: upgrade=yes update_cache=yes
dpkg_options='Dir::Etc::SourceList=/etc/apt/security.sources.list'

The dpkg_options is for the "-o Dpkg::Options::=--<something>" where <something> is what you add to the dpkg_options.


I am trying to replicate this functioning command...

apt update && apt-get upgrade -o
Dir::Etc::SourceList=/etc/apt/security.sources.list

Any advice on the best way to handle this or some better examples on
dpkg_options?

apt module doesn't support Dir::Etc::SourceList so the shell module is an alternative.

- shell: apt update && apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list

--
Kai Stian Olstad

--
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/882065d3-e488-9d66-bd7e-531f6962c18b%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to