Ansible Script 추가
This commit is contained in:
33
ansible/01_old/roles/teleport/tasks/main.yml
Normal file
33
ansible/01_old/roles/teleport/tasks/main.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user