mariadb_replication: improve CI tests (#63848)

pull/63858/head
Andrey Klychkov 5 years ago committed by René Moser
parent 4d72b69035
commit b1e8a6c1cb

@ -20,5 +20,14 @@ standby_port: 3307
standby_datadir: /var/lib/mysql_standby standby_datadir: /var/lib/mysql_standby
standby_logdir: /var/log/mysql_standby standby_logdir: /var/log/mysql_standby
default_datadir: /var/lib/mysql
default_logdir: /var/log/mariadb default_logdir: /var/log/mariadb
mysql_safe_err_log: /var/log/mariadb/mysql_safe-err.log mysql_safe_err_log: /var/log/mariadb/mysql_safe-err.log
fs_objects_to_clean_up:
- "{{ master_datadir }}"
- "{{ standby_datadir }}"
- "{{ standby_logdir }}"
- "{{ default_logdir }}"
- "{{ mysql_safe_err_log }}"
- "{{ default_datadir }}"

@ -6,19 +6,13 @@
- name: Remove MariaDB related packages - name: Remove MariaDB related packages
yum: yum:
name: "{{ item }}" name: "{{ packages_to_cleanup }}"
state: absent state: absent
loop: "{{ packages_to_cleanup }}"
listen: cleanup mariadb listen: cleanup mariadb
- name: Remove related FS objects - name: Remove related FS objects
file: file:
state: absent state: absent
path: "{{ item }}" path: "{{ item }}"
loop: loop: "{{ fs_objects_to_clean_up }}"
- "{{ master_datadir }}"
- "{{ standby_datadir }}"
- "{{ standby_logdir }}"
- "{{ default_logdir }}"
- "{{ mysql_safe_err_log }}"
listen: cleanup mariadb listen: cleanup mariadb

@ -12,9 +12,8 @@
- name: Install MariaDB packages on RedHat family OS - name: Install MariaDB packages on RedHat family OS
yum: yum:
name: "{{ item }}" name: "{{ mariadb_packages }}"
enablerepo: epel enablerepo: epel
loop: "{{ mariadb_packages }}"
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
notify: cleanup mariadb notify: cleanup mariadb

Loading…
Cancel
Save