Hello,

I have a playbook that updates the kernel version on ceph cluster members.
Its important that we only do a single service at a time to prevent the OSD 
from trying to cope with a host when it reboots.

I want to verify that serial has been set to 1 and make sure that the 
playbook doesnt run otherwise.
The following code doesnt work, is there a way to do this?


++++

   - fail: msg="This playbook needs to be run with serial:1 so that only a 
single host is upgraded at a time"
     when: serial != "1"

++++

Thanks for your feedback/consideration/ideas/corrections-in-thinking/etc

best,

Lucky

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/463dbb9b-ece5-4e00-9ac5-eccfadd79a43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to