Skip to content

Commit 3162808

Browse files
committed
Allow specifying bundle path
In fad51d0 we removed the thinlinc_server_bundle parameter. This means that the bundle must be in a standard Ansible search path, using the standard bundle filename. This commit re-implements a variation of this parameter, but makes it optional with sensible defaults. This makes it possible for people to use non-standard locations and filenames, but still keeps the intention of the original commit by only requiring the version to be specified in one place. Fixes #42.
1 parent 61673ec commit 3162808

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ thinlinc_version: "4.14.0"
4141
4242
ThinLinc version number.
4343
44+
```yaml
45+
thinlinc_bundle_path: "tl-{{ thinlinc_version }}-server.zip"
46+
```
47+
48+
The location of the ThinLinc Server Bundle to install. If not set, the
49+
default Ansible search paths and bundle filename will be used.
50+
4451
```yaml
4552
thinlinc_autoinstall_dependencies: "yes"
4653
```

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
thinlinc_accept_eula: "no"
55

66
thinlinc_version: "4.17.0"
7+
thinlinc_bundle_path: "tl-{{ thinlinc_version }}-server.zip"
78

89
thinlinc_autoinstall_dependencies: "yes"
910

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
block:
1919
- name: Unpacking ThinLinc server bundle
2020
unarchive:
21-
src: "tl-{{ thinlinc_version }}-server.zip"
21+
src: "{{ thinlinc_bundle_path }}"
2222
dest: /root
2323
creates: "/root/tl-{{ thinlinc_version }}-server"
2424
- name: Run tasks for RHEL-like

0 commit comments

Comments
 (0)