Need help with error: msg: parameters are mutually exclusive: ['package', 'upgrade', 'deb']

2,195 views
Skip to first unread message

Ayush Sharma

unread,
Nov 4, 2014, 4:08:53 PM11/4/14
to ansible...@googlegroups.com
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?

Brian Coca

unread,
Nov 4, 2014, 9:08:34 PM11/4/14
to ansible...@googlegroups.com
what you want is:

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

upgrade is not for single packages but for upgrading all packages.

--
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/a6d5d607-630f-4efc-bf75-7ff15d72d638%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages