On Tuesday, April 19, 2016 at 7:44:24 AM UTC-4, Rafał Radecki wrote: > > I would like to run the same playbook with appropriate conditions so that > part of it would be run when iaas is aws and another part when iaas is > openstack. >
Note that Ansible works best when you explicitly define what the entire host is supposed to look like, without using conditionals. This follows Ansible's seemingly "declarative" philosophy. Once you start getting into using conditionals, you'll also start deviating towards "imperative" logic that doesn't really fit well within Ansible. It's a bit of a shame, because that imperative type of logic would really help Ansible become more composable. -- 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/86416f8c-c6df-4f3b-9aff-c477fde86236%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
