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

Commit 35741c6

Browse files
authored
Exclude clickhouse packages from apt upgrades (#92)
Utilize apt preferences to exclude clickhouse packages from apt upgrades. Change-Id: Ib395305b648523fa92f36dddd571ce7f21a9498d
1 parent 1f8f39d commit 35741c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tasks/install/apt.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,13 @@
4141
become: true
4242
when: clickhouse_version == 'latest'
4343
tags: [install]
44+
45+
- name: Hold specified version during APT upgrade | Package installation
46+
become: true
47+
copy:
48+
dest: "/etc/apt/preferences.d/fixed-{{ item }}"
49+
content: |
50+
Package: {{ item }}
51+
Pin: release a=now
52+
Pin-Priority: 1001
53+
loop: "{{ clickhouse_package }}"

0 commit comments

Comments
 (0)