Skip to content

Commit 0dc748c

Browse files
committed
Use apt for installing deb packages
Unfortunately dpkg doesn't handle all upgrades properly, so we need to use the apt command instead in order for package replacements to work.
1 parent 7e528d5 commit 0dc748c

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

tasks/install-thinlinc-debian.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
---
2-
# Because of circular dependencies, we need to install all packages at
3-
# once. I can't get the apt provider to install multiple local
4-
# packages all at once though. :/
5-
#
6-
# apt: deb="{{ item }}" state=present
7-
# with_items: "{{ thinlinc_packages }}"
2+
# The apt provider actually calls dpkg for local packages, which isn't
3+
# clever enough to handle our upgrades:
4+
# https://github.com/ansible/ansible/issues/77150
85

96
- name: Install ThinLinc Software
10-
command: "/usr/bin/dpkg --install --no-debsig --force-confold {{ ' '.join(thinlinc_packages) }}"
7+
command: "/usr/bin/apt install -y -o \"Dpkg::Options::=--no-debsig\" -o \"Dpkg::Options::=--force-confold\" {{ ' '.join(thinlinc_packages) }}"
118
notify: run tl-setup

0 commit comments

Comments
 (0)