1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Install MySQL/MariaDB on-demand--for MediaWiki, WordPress, Matomo &/or Admin Console

This commit is contained in:
root 2023-11-05 12:14:46 -05:00
parent 8def5c98cf
commit 402ce97d1d
11 changed files with 133 additions and 48 deletions

View file

@ -12,6 +12,21 @@
# can arise without warning when WordPress is online, since WordPress ~4.8
- name: "Set 'mysql_install: True' and 'mysql_enabled: True'"
set_fact:
mysql_install: True
mysql_enabled: True
- name: MYSQL - run 'mysql' role (attempt to install & enable MySQL / MariaDB)
include_role:
name: mysql
- name: FAIL (STOP THE INSTALL) IF 'mysql_installed is undefined'
fail:
msg: "WordPress install cannot proceed, as MySQL / MariaDB is not installed."
when: mysql_installed is undefined
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1