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

Further clean/prep of mysql/tasks/main.yml

This commit is contained in:
A Holt 2019-07-03 10:25:19 -04:00 committed by GitHub
parent f9c64e6cd4
commit e8b18c5ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,12 +59,16 @@
tags:
- download
### lineinfile to add 'TimeoutStartSec=180' to /lib/systemd/system/mariadb.service here?
### lineinfile to add 'TimeoutStartSec=180' to /lib/systemd/system/mariadb.service here
# - if file exists!
# - avoid adding it repeatedly!
# - daemon_reload below...
# Name of MySQL service varies by OS so softcoded in 1-prep
# Name of MySQL service varies by OS, so hardcoded in /opt/iiab/iiab/vars/<OS>.yml (formerly in roles/0-init/tasks/main.yml)
- name: Enable & Start MySQL systemd service ({{ mysql_service }}) if mysql_enabled
systemd:
name: "{{ mysql_service }}"
daemon_reload: yes
state: started
enabled: yes
when: mysql_enabled | bool