Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 464 Bytes
---
- hosts: database
become: true
tasks:
- name: insall mysql-server
apt:
name: "{{item}}"
state: present
update_cache: yes
with_items:
- mysql-server
tags:
- mysql-server
- name: ensure mysql-server is running (and enable it at boot)
service:
name: mysql-server
state: started
enabled: yes
tags:
- mysql-server
- service