Skip to content

Commit

Permalink
removed left over tasks from < 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrodie18 committed Oct 22, 2023
1 parent da21dd4 commit 6ad0557
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions roles/zabbix_server/tasks/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,53 +126,6 @@
tags:
- database

- name: "MySQL | Fetch sql create file"
fetch:
src: "{{ ls_output_create.stdout }}"
dest: /tmp/{{ role_name }}/
flat: true
become: true
when:
- delegated_dbhost != inventory_hostname
- zabbix_server_database_sqlload | bool
- mysql_schema_empty
tags:
- database

- name: "MySQL | Copy sql create file"
ansible.builtin.copy:
src: /tmp/{{ role_name }}/
dest: "{{ ls_output_create.stdout | dirname }}"
mode: "0640"
delegate_to: "{{ delegated_dbhost }}"
become: true
when:
- delegated_dbhost != inventory_hostname
- zabbix_server_database_sqlload | bool
- mysql_schema_empty
tags:
- database

- name: "MySQL | Create database and import file"
community.mysql.mysql_db:
login_host: "{{ zabbix_server_mysql_login_host | default(omit) }}"
login_user: "{{ zabbix_server_dbuser if (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7') else zabbix_server_mysql_login_user }}"
login_password: "{{ zabbix_server_dbpassword if (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7') else zabbix_server_mysql_login_password }}"
login_port: "{{ zabbix_server_mysql_login_port | default(omit) }}"
login_unix_socket: "{{ zabbix_server_mysql_login_unix_socket | default(omit) }}"
name: "{{ zabbix_server_dbname }}"
encoding: "{{ zabbix_server_dbencoding }}"
collation: "{{ zabbix_server_dbcollation }}"
state: import
target: "{{ ls_output_create.stdout }}"
use_shell: false
when:
- zabbix_server_database_sqlload | bool
- mysql_schema_empty
delegate_to: "{{ delegated_dbhost }}"
tags:
- database

- name: "MySQL | Revert innodb_default_row_format to previous value"
community.mysql.mysql_variables:
variable: innodb_default_row_format
Expand Down

0 comments on commit 6ad0557

Please sign in to comment.