20 lines
700 B
YAML
20 lines
700 B
YAML
---
|
|
- name: Ensure mariadb state parameter is valid
|
|
ansible.builtin.fail:
|
|
msg: >-2
|
|
Unknown state '{{ mariadb_state }}'!
|
|
Supported states are {{ mariadb_states | join(', ') }}
|
|
when: mariadb_state not in mariadb_states
|
|
|
|
- name: Ensure deployment method is valid
|
|
ansible.builtin.fail:
|
|
msg: >-2
|
|
Unknown deployment method '{{ mariadb_deployment_method }}'!
|
|
Supported deployment methods are {{ mariadb_deployment_methods | join(', ') }}
|
|
when: mariadb_deployment_method not in mariadb_deployment_methods
|
|
|
|
- name: Ensure mariadb is deployed using {{ mariadb_deployment_method }}
|
|
ansible.builtin.include_tasks:
|
|
file: "deploy-{{ mariadb_deployment_method }}.yml"
|
|
|