role-goteleport/tasks/main.yml
2023-04-25 17:50:11 +00:00

13 lines
358 B
YAML

---
- name: "Check Teleport version"
ansible.builtin.shell: "set -eo pipefail; teleport version | cut -d' ' -f 2 | cut -d'v' -f 2"
args:
executable: /bin/bash
register: teleport_active_version
changed_when: false
failed_when: false
when: teleport_version_check|bool
- name: "Update goteleport"
ansible.builtin.include_tasks: "install.yml"