mariadb/tasks/setup-Archlinux.yml

22 lines
635 B
YAML
Raw Normal View History

2019-04-14 18:27:36 +00:00
---
- name: Ensure MySQL Python libraries are installed.
2019-04-16 16:32:06 +00:00
pacman:
name:
- mysql-python
- python-mysqlclient
state: present
2019-04-14 18:27:36 +00:00
- name: Ensure MySQL packages are installed.
2019-04-15 11:38:47 +00:00
pacman: "name={{ mysql_packages }} state=present"
2019-04-14 18:27:36 +00:00
register: arch_mysql_install_packages
- name: clean /var/lib/mysql if new instaled
file: path=/var/lib/mysql state=absent
2019-04-15 18:14:10 +00:00
when: arch_mysql_install_packages.changed
2019-04-14 18:27:36 +00:00
- 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']