I'm trying to get into Ansible and was studying some examples. One of the examples lists a task that contains both 'with_items' and 'register'.
As far as I understood the docs, with_item acts like a loop. Does register work on the last item only? Does it register an array of results?
- name: Reload the haproxyservice: name=haproxy state=reloadeddelegate_to: $itemwith_items: ${groups.lbservers}only_if: ${last_run.changed}
That one would be incorrect then, I guess, because $last_run.changed would not exist?
--
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.
For more options, visit https://groups.google.com/groups/opt_out.