From: Oleg Broytman Date: Sat, 21 Nov 2020 11:24:30 +0000 (+0300) Subject: Feat: Add role `mariadb` to install MariaDB X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b7cbde3beb8367a834ed0e8ceac2e57d1e7ee669;p=ansible.git Feat: Add role `mariadb` to install MariaDB Install MariaDB client, server and development libs for Debian. --- 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'