To play devils advocate, isn't the idea with Ansible at least that it's idempotent. The YAML should describe the final state and should be concerned with branching or lower level features like that.
(It's the same with SQL, you describe what you want back rather than how its achieved. A declarative approach works fairly well there.)
(It's the same with SQL, you describe what you want back rather than how its achieved. A declarative approach works fairly well there.)