improve variables
This commit is contained in:
parent
f6e152c313
commit
a989dd2368
@ -1,5 +1,9 @@
|
|||||||
---
|
---
|
||||||
teleport_version_check: true
|
teleport_version_check: true
|
||||||
teleport_version: "12.2.4"
|
teleport_version: "12.2.4"
|
||||||
teleport_dl_url: "https://cdn.teleport.dev/teleport-v{{ teleport_version }}-linux-{{ teleport_arch }}-bin"
|
teleport_base_url_tar: "https://cdn.teleport.dev"
|
||||||
teleport_sha256_url: "https://get.gravitational.com/teleport-v{{ teleport_version }}-linux-{{ teleport_arch }}-bin"
|
teleport_base_url_sha: "https://get.gravitational.com"
|
||||||
|
teleport_base_filename: teleport-v{{ teleport_version }}-linux-{{ teleport_arch }}-bin
|
||||||
|
teleport_dl_url: "{{ teleport_base_url_tar }}/{{ teleport_base_filename }}.tar.gz"
|
||||||
|
teleport_sha256_url: "{{ teleport_base_url_sha }}/{{ teleport_base_filename }}.tar.gz.sha256"
|
||||||
|
pid_file_telport: "/run/teleport.pid"
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
block:
|
block:
|
||||||
- name: Download teleport archive
|
- name: Download teleport archive
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ teleport_dl_url }}.tar.gz"
|
url: "{{ teleport_dl_url }}"
|
||||||
dest: "/tmp/teleport-{{ teleport_version }}-linux-{{ teleport_arch }}.tar.gz"
|
dest: "/tmp/{{ teleport_base_filename }}.tar.gz"
|
||||||
checksum: "sha256:{{ teleport_sha256_url }}.tar.gz.sha256"
|
checksum: "sha256:{{ teleport_sha256_url }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
register: _download_archive
|
register: _download_archive
|
||||||
until: _download_archive is succeeded
|
until: _download_archive is succeeded
|
||||||
@ -24,7 +24,7 @@
|
|||||||
- name: Unpack Teleport Package
|
- name: Unpack Teleport Package
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "/tmp/teleport-{{ teleport_version }}-linux-{{ teleport_arch }}.tar.gz"
|
src: "/tmp/{{ teleport_base_filename }}.tar.gz"
|
||||||
dest: "/tmp/teleport-{{ teleport_version }}"
|
dest: "/tmp/teleport-{{ teleport_version }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
|
Loading…
Reference in New Issue
Block a user