parent
d098cd9c39
commit
f52d3d44ba
@ -0,0 +1,14 @@ |
||||
--- |
||||
- 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. |
||||
apt: > |
||||
name={{ item }} |
||||
state=installed |
||||
with_items: mysql_packages |
@ -0,0 +1,7 @@ |
||||
--- |
||||
- name: Ensure MySQL packages are installed. |
||||
yum: > |
||||
name={{ item }} |
||||
state=installed |
||||
enablerepo={{ mysql_enablerepo }} |
||||
with_items: mysql_packages |
Reference in new issue