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