From 02e8237c42dee8681744d8e11d1c25069cb44d18 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 10 Jun 2018 12:40:53 -0400 Subject: [PATCH] Add MySQL server role --- ubuntu/roles/mysql/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ubuntu/roles/mysql/tasks/main.yml diff --git a/ubuntu/roles/mysql/tasks/main.yml b/ubuntu/roles/mysql/tasks/main.yml new file mode 100644 index 0000000..40b3438 --- /dev/null +++ b/ubuntu/roles/mysql/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: Install MySQL server + apt: pkg=mysql-server state=latest +- name: Start MySQL daemon and ensure it starts on boot + service: name=mysql state=started enabled=yes