Skip to content

Commit

Permalink
PMM-7 Fix Clickhouse repository. (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
talhabinrizwan committed Sep 28, 2023
1 parent 07a89bf commit 9d919df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions update/ansible/playbook/tasks/roles/clickhouse/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
register: supervisord_socket

- name: Stop and remove clickhouse before update | EL9
when: supervisord_socket.stat.exists and (ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux') and ansible_distribution_major_version == '9'
when:
- supervisord_socket.stat.exists
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
command: /usr/local/bin/supervisorctl {{ item }} clickhouse
become: true
loop:
Expand Down Expand Up @@ -61,7 +64,7 @@
name: clickhouse
file: clickhouse
description: "Clickhouse repo"
baseurl: "https://repo.clickhouse.com/rpm/stable/x86_64/"
baseurl: "https://packages.clickhouse.com/rpm/stable/"
enabled: no
gpgcheck: 1
gpgkey: "https://repo.clickhouse.com/CLICKHOUSE-KEY.GPG"
Expand All @@ -74,7 +77,7 @@
name: clickhouse
file: clickhouse
description: "Clickhouse repo"
baseurl: "https://repo.clickhouse.com/rpm/stable/x86_64/"
baseurl: "https://packages.clickhouse.com/rpm/stable/"
enabled: no
gpgcheck: 0

Expand Down

0 comments on commit 9d919df

Please sign in to comment.