34 lines
725 B
YAML
34 lines
725 B
YAML
- name: "Create temporary directory for key manipulation"
|
|
tempfile:
|
|
state: directory
|
|
suffix: keys
|
|
register: tempdir
|
|
when:
|
|
- install == True or update == True
|
|
- remove == False
|
|
|
|
- name: "Include Teleport Agent Install"
|
|
include_tasks: teleport_install.yml
|
|
tags: install
|
|
when:
|
|
- install == True
|
|
|
|
- name: "Include Teleport Agent update"
|
|
include_tasks: teleport_update.yml
|
|
tags: remove
|
|
when:
|
|
- update == True
|
|
|
|
- name: "Remove temporary directory for key manipulation"
|
|
file:
|
|
path: "{{ tempdir.path }}"
|
|
state: absent
|
|
when:
|
|
- install == True or update == True
|
|
|
|
- name: "Include Teleport Agent remove"
|
|
include_tasks: teleport_remove.yml
|
|
tags: remove
|
|
when:
|
|
- remove == True
|