1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Validate 2 input vars for wordpress/tasks/main.yml

This commit is contained in:
A Holt 2020-01-21 04:05:51 -05:00 committed by GitHub
parent 7ec60657b3
commit 639e335442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,13 @@
# SEE "emergency" REINSTALL INSTRUCTIONS IN roles/wordpress/tasks/install.yml
- assert:
that: wordpress_install is defined and wordpress_install is sameas true
success_msg: wordpress_install is defined and wordpress_install is sameas true
- assert:
that: wordpress_enabled is defined and wordpress_enabled | type_debug == 'bool'
success_msg: wordpress_enabled is defined and wordpress_enabled | type_debug == 'bool'
- name: Provision MySQL DB for WordPress, if 'wordpress_installed' is not defined in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: setup.yml
when: wordpress_installed is undefined # and not installing