role-goteleport/tasks/main.yml

12 lines
314 B
YAML
Raw Normal View History

2023-02-16 14:15:37 +00:00
---
- 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
- include_tasks: "install.yml"