WIP: feat(sharkey): add ansible role for deployment
This commit is contained in:
14
roles/sharkey/tasks/check.yml
Normal file
14
roles/sharkey/tasks/check.yml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Ensure 'sharkey_state' is valid
|
||||
ansible.builtin.fail:
|
||||
msg: >-2
|
||||
Unsupported sharkey_state '{{ sharkey_state }}'.
|
||||
Supported values are {{ sharkey_states | join(', ') }}
|
||||
when: sharkey_state not in sharkey_states
|
||||
|
||||
- name: Ensure 'sharkey_deployment_method' is valid
|
||||
ansible.builtin.fail:
|
||||
msg: >-2
|
||||
Unsupported sharkey_deployment_method '{{ sharkey_deployment_method }}.
|
||||
Supported values are {{ sharkey_deployment_methods | join(', ') }}
|
||||
when: sharkey_deployment_method not in sharkey_deployment_methods
|
Reference in New Issue
Block a user