ansible-role-apache/tasks/setup-Debian.yml

13 lines
350 B
YAML
Raw Normal View History

---
- name: Check if MySQL is already installed.
stat: path=/etc/init.d/mysql
register: mysql_installed
- name: Update apt cache if MySQL is not yet installed.
apt: update_cache=yes
when: mysql_installed.stat.exists == false
- name: Ensure MySQL packages are installed.
2014-11-08 22:10:49 +01:00
apt: "name={{ item }} state=installed"
with_items: mysql_packages