what you want is:

apt: name={{ item.pkg }} state=latest

upgrade is not for single packages but for upgrading all packages.
On Tue, Nov 4, 2014 at 4:08 PM, Ayush Sharma wrote:

I'm using the following task to install a few utilities:

`- name: install utilities
apt: name={{ item.pkg }} state=present upgrade=full
with_items:
- pkg: 'htop'
- pkg: 'mytop'
- pkg: 'iotop'
- pkg: 'pv'`

`When executing in check mode, I get the following error:
failed: [192.168.68.136] => (item={'pkg': 'pv'}) => {"failed": true,
"item": {"pkg": "pv"}}
msg: parameters are mutually exclusive: ['package', 'upgrade', 'deb']`

What am I doing wrong?

--
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-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a6d5d607-630f-4efc-bf75-7ff15d72d638%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/a6d5d607-630f-4efc-bf75-7ff15d72d638%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.


--
Brian Coca

--
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-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mLLNrYeWMjwArVU8ExKEAHz1-bOVNf%2BnV0YJx8Pf6p7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupansible-project @
postedNov 5, '14 at 1:27a
activeNov 5, '14 at 2:09a
posts2
users2

2 users in discussion

Ayush Sharma: 1 post Brian Coca: 1 post

People

Translate

site design / logo © 2022 Grokbase