Make sure mysql is started

This commit is contained in:
Dieter Verhelst 2019-03-10 22:49:12 +01:00
parent f55917c676
commit 0506e653b6

View File

@ -15,9 +15,15 @@
tasks: tasks:
- name: Install required packages - name: Install required packages
apt: apt:
name: "{{ item }}" name:
state: installed - apache2
with_items: - mysql-server
- apache2 - automysqlbackup
- mysql-server state: present
- automysqlbackup notify: start mysql
handlers:
- name: start mysql
service:
name: mysql
state: started
enabled: yes