Hello,
I have a simple playbook that just defines an APT task to purge
packages provided as with_items list.
tasks:
- name: remove packages
apt: pkg={{item}} state=absent purge=yes update_cache=no
with_items:
- puppet
- puppet-common
[…]
Running this across a set of hosts, I got the following,
inconsistent output (abridged):
ok: [diamond.madduck.net] => (item=puppet)
ok: [arnold.madduck.net] => (item=puppet)
ok: [arnold.madduck.net] => (item=puppet-common)
ok: [diamond.madduck.net] => (item=puppet-common)
[…]
changed: [jugband.madduck.net] => (item=puppet,puppet-common,facter,libopenssl-ruby,libshadow-ruby1.8,libxmlrpc-ruby,libruby,libruby1.8,libaugeas-ruby1.8,libdpkg-ruby1.8,libhttp-access2-ruby1.8,libuconv-ruby1.8,libxml-parser-ruby1.8,ri1.8,facter,ruby-json,ruby1.8,ruby-shadow)
ok: [vizier.madduck.net] => (item=puppet,puppet-common,facter,libopenssl-ruby,libshadow-ruby1.8,libxmlrpc-ruby,libruby,libruby1.8,libaugeas-ruby1.8,libdpkg-ruby1.8,libhttp-access2-ruby1.8,libuconv-ruby1.8,libxml-parser-ruby1.8,ri1.8,facter,ruby-json,ruby1.8,ruby-shadow)
That is to say: some hosts iterated through the package list
one-by-one, while others received a list.
What determines this difference? How can I always pass lists?
Thanks,