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

Fixing-mysql-role #1534

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions roles/debian/mysql_server_oracle_ce/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
---
#@todo Configuration is for dev.

- name: Add repository key for MySQL repository.
ansible.builtin.apt_key:
keyserver: "{{ mysql_server_oracle_ce_key_server }}"
id: "{{ mysql_server_oracle_ce_key }}"
state: present
- name: Add repository key for MySQL repository using wget and apt-key
ansible.builtin.shell: "set -o pipefail && wget -q -O - https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | apt-key add -"

- name: Add repository for MySQL.
ansible.builtin.apt_repository:
repo: "deb http://repo.mysql.com/apt/debian/ {{ ansible_distribution_release }} mysql-5.7"
repo: "deb http://repo.mysql.com/apt/debian/ {{ ansible_distribution_release }} mysql-8.0"
state: present

- name: Add source repository for MySQL.
ansible.builtin.apt_repository:
repo: "deb-src http://repo.mysql.com/apt/debian/ {{ ansible_distribution_release }} mysql-5.7"
repo: "deb-src http://repo.mysql.com/apt/debian/ {{ ansible_distribution_release }} mysql-8.0"
state: present

- name: Pin MySQL packages.
Expand Down
Loading