Don't install percona repository (prevent APT conflicts)
parent
cb8a565df6
commit
2f560bda96
|
@ -15,7 +15,6 @@ Role Variables
|
|||
|
||||
- `mysql_origin`: origin of the package ("default" or "upstream")
|
||||
- `mysql_vendor`: "mysql", "mariadb", "mariadb\_galera" (only with MariaDB upstream 10.1) or "percona"
|
||||
- `mysql_use_percona_repository`: use percona APT repository (automatic setted to true if you use "percona" as `mysql_vendor`).
|
||||
|
||||
### Configuration
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
mysql_origin: 'default'
|
||||
mysql_vendor: 'mariadb'
|
||||
mysql_root_password: 'change_me_NOW'
|
||||
mysql_use_percona_repository: false
|
||||
|
||||
# -------------------------------------
|
||||
# Configuration
|
||||
|
|
|
@ -11,10 +11,6 @@
|
|||
(mysql_origin == 'upstream' and mysql_vendor == 'percona')
|
||||
)
|
||||
|
||||
- name: APT | Install Percona Xtrabackup
|
||||
include: percona/apt.yml
|
||||
when: mysql_use_percona_repository
|
||||
|
||||
- name: INCLUDE | Install MySQL from default repo
|
||||
include: 'mysql/default.yml'
|
||||
when: mysql_origin == 'default' and mysql_vendor == 'mysql'
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
---
|
||||
|
||||
# We prevent double include
|
||||
- name: INCLUDE | Add percona APT repository
|
||||
include: apt.yml
|
||||
when: not mysql_use_percona_repository
|
||||
|
||||
- name: SET_FACT | We use percona repository
|
||||
set_fact: mysql_use_percona_repository=true
|
||||
|
||||
- name: DEBCONF | Prepare MySQL silent installation (root password)
|
||||
debconf: name='percona-server-server-{{ percona_version }}' question='percona-server-server/root_password' vtype='password' value='{{ mysql_root_password }}'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
mysql_use_percona_repository: true
|
||||
mysql_bind_address: '{{ ansible_eth1.ipv4.address }}'
|
||||
mysql_extra_configuration:
|
||||
innodb_commit_concurrency: 0
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
vars:
|
||||
mysql_galera_primary_node: 'jessie-upstream-mariadbgalera-1'
|
||||
mysql_wsrep_node_address: "{{ ansible_eth1.ipv4.address }}"
|
||||
mysql_use_percona_repository: false
|
||||
mariadb_version: '10.1'
|
||||
roles:
|
||||
- ../../
|
||||
|
|
Loading…
Reference in New Issue