Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

fix(tasks): update rpm repository #96

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
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
10 changes: 1 addition & 9 deletions tasks/install/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@
#Main installation actions
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Install by YUM | Ensure clickhouse repo GPG key imported
rpm_key:
state: present
key: "{{ clickhouse_repo_key }}"
tags: [install]
become: true

- name: Install by YUM | Ensure clickhouse repo installed
yum_repository:
name: clickhouse
file: clickhouse
description: "Clickhouse repo"
baseurl: "{{ clickhouse_repo }}"
gpgcheck: no
enabled: yes
gpgcheck: 1
gpgkey: "{{ clickhouse_repo_key }}"
tags: [install]
become: true

Expand Down
6 changes: 0 additions & 6 deletions tasks/remove/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@
file: clickhouse
state: absent
become: true

- name: Uninstall by YUM | Ensure clickhouse key uninstalled
rpm_key:
key: "{{ clickhouse_repo_key }}"
state: absent
become: true
3 changes: 1 addition & 2 deletions vars/redhat.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
clickhouse_supported: yes
clickhouse_repo: "https://repo.clickhouse.tech/rpm/stable/x86_64/"
clickhouse_repo_key: https://repo.clickhouse.tech//CLICKHOUSE-KEY.GPG
clickhouse_repo: "https://packages.clickhouse.com/rpm/clickhouse.repo"