mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
pbx/tasks/install.yml: Install MySQL / MariaDB
This commit is contained in:
parent
356c2bd171
commit
93b381804e
1 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,21 @@
|
|||
# when: nodejs_version != "12.x"
|
||||
|
||||
|
||||
- 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: "PBX 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
Reference in a new issue