Skip to content

Commit

Permalink
PMM-13384 enable percona telemetry repo (#3208)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e02b30)
  • Loading branch information
BupycHuk committed Sep 23, 2024
1 parent 79a2310 commit 26128db
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions update/ansible/playbook/tasks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

vars:
pmm_packages:
- percona-dashboards
- percona-grafana
- percona-release
- percona-victoriametrics
- percona-qan-api2
- percona-alertmanager
Expand Down Expand Up @@ -94,25 +97,12 @@
state: absent
register: experimental_repo_existed

- name: Update percona-dashboards package
yum:
name:
- percona-dashboards
- percona-grafana
state: latest

- name: Cleanup yum metadata
command: yum clean metadata
register: yum_clean_result
changed_when: "'Cleaning repos' in yum_clean_result.stdout"
when: experimental_repo_existed.changed
tags:
- skip_ansible_lint # '503 Tasks that run when changed should likely be handlers'.
# The handler looks bad in this case
- name: Enable percona telemetry repo
command: percona-release enable telemetry release
when: not ansible_check_mode

# TODO: join with the command above
- name: Cleanup yum metadata
command: yum clean metadata
command: yum clean all
become: true
tags:
- skip_ansible_lint
Expand Down

0 comments on commit 26128db

Please sign in to comment.