mariadb/tasks/setup-Archlinux.yml

14 lines
483 B
YAML
Raw Normal View History

2019-04-14 18:27:36 +00:00
---
- name: Ensure MySQL Python libraries are installed.
pacman: "name=mysql-python state=present"
- name: Ensure MySQL packages are installed.
pacman: "name={{ item }} state=present"
with_items: "{{ mysql_packages }}"
register: arch_mysql_install_packages
- name: Run mysql_install_db if MySQL packages were changed.
command: mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
when: arch_mysql_install_packages.changed
tags: ['skip_ansible_lint']