From 08607638ad393214c770ce2ee1e9ae9f047532c8 Mon Sep 17 00:00:00 2001 From: s0dy Date: Thu, 1 Nov 2018 20:31:03 +0100 Subject: [PATCH] Mariadb playbook --- ops/ansible/mariadb.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ops/ansible/mariadb.yml diff --git a/ops/ansible/mariadb.yml b/ops/ansible/mariadb.yml new file mode 100644 index 0000000..85a121c --- /dev/null +++ b/ops/ansible/mariadb.yml @@ -0,0 +1,32 @@ +--- +- hosts: hifive + become: yes + become_user: root + + tasks: + - name: Install mariadb client + yum: + name: mariadb + state: latest + + - name: Install mariadb server + yum: + name: mariadb-server + state: latest + + - name: Systemd enable mariadb + systemd: + name: mariadb + enabled: yes + masked: no + + #- name: Create phpMyAdmin.conf + #template: + #src: phpMyAdmin.j2 + #dest: /etc/httpd/conf.d/phpMyAdmin.conf + #force: yes + + - name: Systemd start mariadb + systemd: + name: mariadb + state: started