apt install with version wildcards

1,361 views
Skip to first unread message

David Zentgraf

unread,
Jan 10, 2014, 5:55:57 AM1/10/14
to ansible...@googlegroups.com
Hi,

I'm trying to use version wildcards while installing apt packages, like so:

  apt: pkg=php5=5.4.*

Since those packages are being updated in the repository, I cannot hardcode a precise version number. However, on some systems the default php5 package may not correspond to version 5.4, so I need to add a version restriction of some sort. Ansible does not seem to support this syntax, failing with "msg: pkgname wildcard and version can not be mixed".

Is there any elegant solution to this?

Cheers,
David

Timur Batyrshin

unread,
Apr 7, 2014, 12:51:52 PM4/7/14
to ansible...@googlegroups.com
Hi,

It looks like you can't use both = and * in the package name: https://github.com/ansible/ansible/blob/devel/library/packaging/apt#L233-L235

Cheers,
Timur

пятница, 10 января 2014 г., 14:55:57 UTC+4 пользователь David Zentgraf написал:
Reply all
Reply to author
Forward
0 new messages