Make sure mysql is started
This commit is contained in:
parent
f55917c676
commit
0506e653b6
@ -15,9 +15,15 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: installed
|
|
||||||
with_items:
|
|
||||||
- apache2
|
- apache2
|
||||||
- mysql-server
|
- mysql-server
|
||||||
- automysqlbackup
|
- automysqlbackup
|
||||||
|
state: present
|
||||||
|
notify: start mysql
|
||||||
|
handlers:
|
||||||
|
- name: start mysql
|
||||||
|
service:
|
||||||
|
name: mysql
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user