Add barebones MySQL role

Which we are going to immediately flesh out
This commit is contained in:
Salt 2020-02-05 23:29:39 -06:00
parent 9781ad8426
commit 3fa61ca850
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1 @@
../../ansiblehost/files/ansiblekey

View File

@ -0,0 +1,2 @@
---
allow_duplicates: no

View File

@ -0,0 +1,18 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Set up MySQL
block:
- name: Install MySQL
apt:
name: "{{ packages }}"
vars:
packages:
- mariadb-server
- python-mysqldb
- name: Start MySQL
service:
name: mysql
state: started
enabled: true
become: true