On 15.02.2018 00:08, Michael Perzel wrote:
My real use case is a patching playbook. I have a collection of servers
I
want to patch one at a time (serial: 1) but there are a set of
decommision
steps I only want to run once for the entire group. Then patch the
servers
one by one. Then there is a set of commission tasks I want to run once
for
the entire group. If I put run once on the pre/post tasks. It still
gets
run once per play eg once per host.
If it helps, the full context is this is a cassandra cluster. I want to
stop the repair service, patch the whole cluster 1 node at a time, then
start the repair service.
How to make this work is documented under note section of run_once.
http://docs.ansible.com/ansible/latest/playbooks_delegation.html#run-once
--
Kai Stian Olstad
--
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5a8c7bc13fafd72fc1c7a986e77ae5bb%40olstad.com.
For more options, visit https://groups.google.com/d/optout.