forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 9
/
mitogen.yaml
30 lines (27 loc) · 865 Bytes
/
mitogen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- hosts: localhost
strategy: linear
vars:
mitogen_version: master
mitogen_url: https://github.com/dw/mitogen/archive/{{mitogen_version}}.zip
tasks:
- name: Create mitogen plugin dir
file:
path: "{{item}}"
state: directory
become: false
loop:
- "{{playbook_dir}}/plugins/mitogen"
- "{{playbook_dir}}/dist"
- name: download mitogen release
get_url:
url: "{{mitogen_url}}"
dest: "{{playbook_dir}}/dist/mitogen_{{mitogen_version}}.zip"
validate_certs: true
- name: extract zip
unarchive:
src: "{{playbook_dir}}/dist/mitogen_{{mitogen_version}}.zip"
dest: "{{playbook_dir}}/dist/"
- name: copy plugin
synchronize:
src: "{{playbook_dir}}/dist/mitogen-{{mitogen_version}}/"
dest: "{{playbook_dir}}/plugins/mitogen"