From cafa49778e92ab1c39f923d34a244869ef941809 Mon Sep 17 00:00:00 2001 From: Breno Baima Date: Wed, 15 Jul 2026 16:55:43 -0300 Subject: [PATCH] add step to enable pmm2-client repo before install clients --- roles/tools_and_monitoring/tasks/pmm-client.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/tools_and_monitoring/tasks/pmm-client.yaml b/roles/tools_and_monitoring/tasks/pmm-client.yaml index a7f5c67..e47c897 100644 --- a/roles/tools_and_monitoring/tasks/pmm-client.yaml +++ b/roles/tools_and_monitoring/tasks/pmm-client.yaml @@ -14,6 +14,11 @@ shell: cmd: >- percona-release enable pmm3-client +- name: enable pmm2-client repo + when: (ansible_distribution == 'CentOS' or ansible_distribution == 'Rocky' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'OracleLinux') and pmm_client_version.startswith('2') + shell: + cmd: >- + percona-release enable pmm2-client - name: install PMM client rpm packages when: (ansible_distribution == 'CentOS' or ansible_distribution == 'Rocky' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'OracleLinux') yum: