master #1

Merged
lennard.brinkhaus merged 10 commits from dragonleo/role-goteleport:master into master 2023-09-02 14:53:03 +00:00
2 changed files with 10 additions and 6 deletions
Showing only changes of commit a989dd2368 - Show all commits

View File

@ -1,5 +1,9 @@
---
teleport_version_check: true
teleport_version: "12.2.4"
teleport_dl_url: "https://cdn.teleport.dev/teleport-v{{ teleport_version }}-linux-{{ teleport_arch }}-bin"
teleport_sha256_url: "https://get.gravitational.com/teleport-v{{ teleport_version }}-linux-{{ teleport_arch }}-bin"
teleport_base_url_tar: "https://cdn.teleport.dev"
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"

View File

@ -4,9 +4,9 @@
block:
- name: Download teleport archive
ansible.builtin.get_url:
url: "{{ teleport_dl_url }}.tar.gz"
dest: "/tmp/teleport-{{ teleport_version }}-linux-{{ teleport_arch }}.tar.gz"
checksum: "sha256:{{ teleport_sha256_url }}.tar.gz.sha256"
url: "{{ teleport_dl_url }}"
dest: "/tmp/{{ teleport_base_filename }}.tar.gz"
checksum: "sha256:{{ teleport_sha256_url }}"
mode: "0755"
register: _download_archive
until: _download_archive is succeeded
@ -24,7 +24,7 @@
- name: Unpack Teleport Package
ansible.builtin.unarchive:
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 }}"
mode: "0755"
owner: "root"