From b7cbde3beb8367a834ed0e8ceac2e57d1e7ee669 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 21 Nov 2020 14:24:30 +0300 Subject: [PATCH] Feat: Add role `mariadb` to install MariaDB Install MariaDB client, server and development libs for Debian. --- playbooks/roles/mariadb/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 playbooks/roles/mariadb/tasks/main.yml diff --git a/playbooks/roles/mariadb/tasks/main.yml b/playbooks/roles/mariadb/tasks/main.yml new file mode 100644 index 0000000..1729400 --- /dev/null +++ b/playbooks/roles/mariadb/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install MariaDB packages for Debian + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: ['mariadb-client', 'mariadb-server', 'libmariadb-dev'] + state: latest + update_cache: yes + when: ansible_facts.os_family == 'Debian' -- 2.39.5