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 [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/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.
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 [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/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 [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/CAJ5XC8mLLNrYeWMjwArVU8ExKEAHz1-bOVNf%2BnV0YJx8Pf6p7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.