Ouch! Then you'd have to put the tasks into their own tasks file, and
use |include_tasks| ...
Or give |backuppc_client_mysql_dump| a reasonable ||default(...)| so
that the looped task(s) would do no harm.
blocks are not a way to skip tasks, a 'when' on a block is just fortasks inside
the block to inherit.
So one solution would be to put both tasks in a block, and put the `when:
backuppc_client_mysql_dump is defined` condition on the block itself.
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4edb8d8a-ce78-f02b-8737-284f7a991e16%40gmail.com.