Add barebones MySQL role
Which we are going to immediately flesh out
This commit is contained in:
parent
9781ad8426
commit
3fa61ca850
1
roles/mysql/files/ansiblekey
Symbolic link
1
roles/mysql/files/ansiblekey
Symbolic link
@ -0,0 +1 @@
|
||||
../../ansiblehost/files/ansiblekey
|
2
roles/mysql/meta/main.yml
Normal file
2
roles/mysql/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
allow_duplicates: no
|
18
roles/mysql/tasks/main.yml
Normal file
18
roles/mysql/tasks/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user