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:
parent
8def5c98cf
commit
402ce97d1d
11 changed files with 133 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue