Install tasks in seperated directory
parent
ed44ca1eb9
commit
96b3360904
|
@ -24,19 +24,19 @@
|
|||
apt_repository: repo='deb-src {{ percona_repository }} {{ ansible_distribution_release }} main' state=present
|
||||
|
||||
- name: INCLUDE | Install MySQL from default repo
|
||||
include: 'install_default_mysql.yml'
|
||||
include: 'default_mysql.yml'
|
||||
when: mysql_origin == 'default' and mysql_vendor == 'mysql'
|
||||
|
||||
- name: INCLUDE | Install MariaDB from Debian repo
|
||||
include: 'install_default_mariadb.yml'
|
||||
include: 'default_mariadb.yml'
|
||||
when: mysql_origin == 'default' and mysql_vendor == 'mariadb' and ansible_distribution_major_version > 7
|
||||
|
||||
- name: INCLUDE | Install MariaDB from MariaDB repo
|
||||
include: 'install_upstream_mariadb.yml'
|
||||
include: 'upstream_mariadb.yml'
|
||||
when: mysql_origin == 'upstream' and mysql_vendor == 'mariadb'
|
||||
|
||||
- name: INCLUDE | Install Percona Server from Percona repo
|
||||
include: 'install_upstream_percona.yml'
|
||||
include: 'upstream_percona.yml'
|
||||
when: mysql_origin == 'upstream' and mysql_vendor == 'percona'
|
||||
|
||||
- name: APT | Install few MySQL related tools
|
|
@ -10,5 +10,5 @@
|
|||
apt_repository: repo='deb-src {{ mariadb_repository }} {{ ansible_distribution_release }} main' state=present
|
||||
|
||||
- name: INCLUDE | Normal Install
|
||||
include: install_default_mariadb.yml
|
||||
include: default_mariadb.yml
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
changed_when: false
|
||||
|
||||
- name: INCLUDE | Install
|
||||
include: install.yml
|
||||
include: install/main.yml
|
||||
|
||||
- name: SERVICE | Ensure daemon is started
|
||||
service: name=mysql state=started
|
||||
|
@ -17,6 +17,7 @@
|
|||
- name: TEMPLATE | Deploy configuration
|
||||
template: src=etc/mysql/my.cnf.j2 dest=/etc/mysql/my.cnf
|
||||
register: config
|
||||
notify: restart mysql
|
||||
|
||||
- name: SERVICE | Restart now (prevent bugs)
|
||||
service: name=mysql state=restarted
|
||||
|
|
Loading…
Reference in New Issue