agaric-coop/box/provisioning/roles/geerlingguy.mysql/tasks/setup-Archlinux.yml

13 lines
440 B
YAML
Raw Permalink Normal View History

---
- 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
# Init the database if mysql is newly installed
- command: mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
when: arch_mysql_install_packages.changed