Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install necessary packages for mysql on RHEL8 #343

Merged

Conversation

ChandlerSwift
Copy link
Contributor

Several commands require a mysql binary to be installed, for example

- name: "MySQL | Get current value for innodb_default_row_format"
  shell: |
    set -euo pipefail
    mysql -h {{ zabbix_server_dbhost }} -u{{ zabbix_server_dbuser }} \
    -p'{{ zabbix_server_dbpassword }}' \
    -e 'SHOW VARIABLES;' 2>&1 | grep innodb_default_row_format \
    | awk '{print $2}' | tr [:upper:] [:lower:]
  register: mysql_innodb_default_row_format
  args:
    executable: /bin/bash
  changed_when: False
  become: true

Also, the mysql_db module requires PyMySQL for python3. (Python3 is
the default version of python on RHEL8.)
https://docs.ansible.com/ansible/2.9/modules/mysql_db_module.html#requirements

SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Several commands require a `mysql` binary to be installed, for example
```
- name: "MySQL | Get current value for innodb_default_row_format"
  shell: |
    set -euo pipefail
    mysql -h {{ zabbix_server_dbhost }} -u{{ zabbix_server_dbuser }} \
    -p'{{ zabbix_server_dbpassword }}' \
    -e 'SHOW VARIABLES;' 2>&1 | grep innodb_default_row_format \
    | awk '{print $2}' | tr [:upper:] [:lower:]
  register: mysql_innodb_default_row_format
  args:
    executable: /bin/bash
  changed_when: False
  become: true
```

Also, the `mysql_db` module requires PyMySQL for python3. (Python3 is
the default version of python on RHEL8.)
https://docs.ansible.com/ansible/2.9/modules/mysql_db_module.html#requirements
@D3DeFi D3DeFi added the role The issue or pull request is related to Zabbix role label Mar 13, 2021
@dj-wasabi dj-wasabi merged commit 3278881 into ansible-collections:main Mar 13, 2021
@dj-wasabi
Copy link
Contributor

Thanks! 👍

@ChandlerSwift ChandlerSwift deleted the add-rhel-sql-packages branch July 10, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role The issue or pull request is related to Zabbix role
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants