Skip to content

Instantly share code, notes, and snippets.

@pgporada
Created February 3, 2017 14:59
Show Gist options
  • Save pgporada/7a8ea235c215d5da508eca796b8a01f7 to your computer and use it in GitHub Desktop.
Save pgporada/7a8ea235c215d5da508eca796b8a01f7 to your computer and use it in GitHub Desktop.
---
mysql_build_cluster: false
mysql_verify_cluster: false
# It's always
mysql_
mysql_
mysql_
# It's never about MEsql
...
---
- include: install_RedHat.yml
when: ansible_os_family == "RedHat"
- include: build_cluster.yml
when: mysql_build_cluster is defined and mysql_build_cluster
- include: verify_cluster.yml
when: (mysql_verify_cluster is fined and mysql_verify_cluster)
and
(mysql_build_cluster is defined and mysql_build_cluster)
...
---
- hosts: localhost
connection: local
gather_facts: true
roles:
- {role: mysql_thingy}
- {role: mysql_thingy, mysql_build_cluster: true, mysql_verify_cluster: true}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment