apt module adding/removing packages always results in "changed" state

42 views
Skip to first unread message

i iordanov

unread,
Feb 23, 2014, 11:45:25 AM2/23/14
to ansible...@googlegroups.com
I'm running Ansible 1.4.4.

I have this in one of my roles to force the presence of certain packages:

- name: Remove packages
  apt: pkg={{ item }} state=absent
  with_items:
    - dmidecode

The result is that I always get a "changed" state even if nothing was removed.

TASK: [common | Remove packages] **********************************************
changed: [d01] => (item=dmidecode)

The same thing appears to happen with adding a list of packages.

Is this normal or a bug?

Thanks!
iordan

Michael DeHaan

unread,
Feb 24, 2014, 2:32:34 PM2/24/14
to ansible...@googlegroups.com
If you're seeing this on the development branch code, please file a bug.

--Michael




--
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/28909c7f-0a59-4053-8254-1ac7a113bf63%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages