1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Clean/Prep mysql/tasks/main.yml

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

View file

@ -18,11 +18,11 @@
tags: tags:
- download - download
- name: Install php{{ php_version }}-xml (ubuntu or debian-9) - name: Install php{{ php_version }}-xml (ubuntu or debian 9+)
package: package:
name: "php{{ php_version }}-xml" name: "php{{ php_version }}-xml"
state: present state: present
when: is_ubuntu or is_debian_9 when: is_ubuntu or (is_debian and not is_debian_8)
- name: Install php-xml-parser (debian-8) - name: Install php-xml-parser (debian-8)
package: package:
@ -59,16 +59,13 @@
tags: tags:
- download - download
### lineinfile to add 'TimeoutStartSec=180' to /lib/systemd/system/mariadb.service here?
# Name of MySQL service varies by OS so softcoded in 1-prep # Name of MySQL service varies by OS so softcoded in 1-prep
- name: 'Start MySQL systemd service: {{ mysql_service }}' - name: Enable & Start MySQL systemd service ({{ mysql_service }}) if mysql_enabled
systemd: systemd:
name: "{{ mysql_service }}" name: "{{ mysql_service }}"
state: started state: started
when: mysql_enabled | bool
- name: Enable MySQL systemd service (upon subsequent boots) if mysql_enabled
systemd:
name: "{{ mysql_service }}"
enabled: yes enabled: yes
when: mysql_enabled | bool when: mysql_enabled | bool