make percona toolkit install optionnal
This commit is contained in:
3
README
3
README
@@ -8,4 +8,5 @@ mariadb_user - default mysql
|
||||
mariadb_root_password - lookup from group_names[0]}}/{{ inventory_hostname }}_mysql
|
||||
mariadb_root_home - default /root
|
||||
mariadb_root_username - default root
|
||||
mariadb_backup_dir - directory where backups will be stored
|
||||
mariadb_backup_dir - directory where backups will be stored
|
||||
mariadb_use_percona true - wether we install percona toolkit (wip)
|
||||
@@ -20,3 +20,4 @@ mariadb_server_settings:
|
||||
- { option: "log-bin", value: "{{ mariadb_data_dir }}/log-bin" }
|
||||
- { option: "expire_logs_days", value: "7" }
|
||||
- { option: "max_binlog_size", value: "1G" }
|
||||
mariadb_use_percona: false
|
||||
|
||||
@@ -133,6 +133,6 @@
|
||||
|
||||
- name: install percona toolkit
|
||||
yum:
|
||||
name: https://www.percona.com/downloads/percona-toolkit/3.1.0/binary/redhat/7/x86_64/percona-toolkit-3.1.0-2.el7.x86_64.rpm
|
||||
name: https://downloads.percona.com/downloads/percona-toolkit/3.3.1/binary/redhat/{{ ansible_distribution }}/x86_64/percona-toolkit-3.3.1-1.el{{ ansible_distribution_major_version }}.x86_64.rpm
|
||||
state: present
|
||||
when: ansible_distribution == 'CentOS'
|
||||
when: ansible_distribution == 'CentOS' and mariadb_use_percona
|
||||
|
||||
Reference in New Issue
Block a user