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 I've created https://github.com/ansible/ansible/issues/6885 for that.
Cheers, Timur пятница, 10 января 2014 г., 14:55:57 UTC+4 пользователь David Zentgraf написал: > > 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 > -- 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/43e7a69f-d72b-4d97-905c-bdef139855f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
