|
1 | 1 | --- |
2 | | -- name: Locate 32-bit packages |
3 | | - find: |
4 | | - paths: "/root/tl-{{ thinlinc_version }}-server/packages" |
5 | | - patterns: |
6 | | - - "thinlinc*i386.deb" |
7 | | - - "thinlinc*all.deb" |
8 | | - when: ansible_architecture == 'i386' |
9 | | - register: _packages_32bit |
10 | | - |
11 | | -- name: Locate 64-bit packages |
| 2 | +- name: Locate server packages |
12 | 3 | find: |
13 | 4 | paths: "/root/tl-{{ thinlinc_version }}-server/packages" |
14 | 5 | patterns: |
15 | 6 | - "thinlinc*amd64.deb" |
16 | 7 | - "thinlinc*all.deb" |
17 | | - when: ansible_architecture == 'x86_64' |
18 | | - register: _packages_64bit |
| 8 | + register: _packages |
19 | 9 |
|
20 | 10 | # The apt provider actually calls dpkg for local packages, which isn't |
21 | 11 | # clever enough to handle our upgrades: |
22 | 12 | # https://github.com/ansible/ansible/issues/77150 |
23 | 13 | # |
24 | | -- name: Install 32-bit ThinLinc Software |
25 | | - command: > |
26 | | - /usr/bin/apt-get install -y |
27 | | - -o Dpkg::Options::="--no-debsig" |
28 | | - -o Dpkg::Options::="--force-confold" |
29 | | - {{ _packages_32bit.files | map(attribute='path') | join(' ') }} |
30 | | - environment: |
31 | | - DEBIAN_FRONTEND: noninteractive |
32 | | - when: _packages_32bit is not skipped |
33 | | - notify: run tl-setup |
34 | | - |
35 | | -- name: Install 64-bit ThinLinc Software |
| 14 | +- name: Install ThinLinc Software |
36 | 15 | command: > |
37 | 16 | /usr/bin/apt-get install -y |
38 | 17 | -o Dpkg::Options::="--no-debsig" |
39 | 18 | -o Dpkg::Options::="--force-confold" |
40 | | - {{ _packages_64bit.files | map(attribute='path') | join(' ') }} |
| 19 | + {{ _packages.files | map(attribute='path') | join(' ') }} |
41 | 20 | environment: |
42 | 21 | DEBIAN_FRONTEND: noninteractive |
43 | | - when: _packages_64bit is not skipped |
44 | 22 | notify: run tl-setup |
0 commit comments