Does apt module upgrade works with package pinned?

141 views
Skip to first unread message

J Soetanto

unread,
Aug 20, 2014, 7:12:27 PM8/20/14
to ansible...@googlegroups.com
Hi,

I would like to know if ansible apt module upgrade works with package pinned. 

So far my test shows even though a package had been marked as hold (https://help.ubuntu.com/community/PinningHowto), apt upgrade will keep upgrading the package. If i execute apt-get upgrade manually, normally it won't upgrade the packages i set as hold.

Tested with upgrade=yes and upgrade=safe, seems like it have the same behaviour.


Michael DeHaan

unread,
Aug 21, 2014, 10:11:02 AM8/21/14
to ansible...@googlegroups.com
When you say upgrade and ignoring pin settings, are you referring to

apt: name=foo state=latest

or

apt: upgrade=yes

?






--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e39fce39-fae8-4be1-b05e-c1feea9f8ffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

J Soetanto

unread,
Aug 21, 2014, 5:36:45 PM8/21/14
to ansible...@googlegroups.com


On Friday, August 22, 2014 12:11:02 AM UTC+10, Michael DeHaan wrote:
When you say upgrade and ignoring pin settings, are you referring to

apt: name=foo state=latest

or

apt: upgrade=yes

?




I'm referring to the later

apt: upgrade=yes

or

apt: upgrade=safe
Reply all
Reply to author
Forward
0 new messages