diff --git a/tasks/install/yum.yml b/tasks/install/yum.yml index 6ca29f8..3a45df5 100644 --- a/tasks/install/yum.yml +++ b/tasks/install/yum.yml @@ -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 diff --git a/tasks/remove/yum.yml b/tasks/remove/yum.yml index 58888fe..ddad05e 100644 --- a/tasks/remove/yum.yml +++ b/tasks/remove/yum.yml @@ -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 diff --git a/vars/redhat.yml b/vars/redhat.yml index cc424fe..2f6bf03 100644 --- a/vars/redhat.yml +++ b/vars/redhat.yml @@ -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"