|
|
@@ -0,0 +1,23 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- name: installation directory |
|
|
|
file: |
|
|
|
path: /opt/go-task |
|
|
|
state: directory |
|
|
|
|
|
|
|
- name: get go-task/task releases |
|
|
|
uri: |
|
|
|
url: https://api.github.com/repos/go-task/task/releases/latest |
|
|
|
return_content: true |
|
|
|
register: _task_releases |
|
|
|
|
|
|
|
- name: download latest release deb |
|
|
|
get_url: |
|
|
|
url: "{{_task_deb_dl_url}}" |
|
|
|
dest: /opt/go-task/task_linux_amd64.deb |
|
|
|
register: _task_deb_get_url |
|
|
|
|
|
|
|
- name: install task deb |
|
|
|
apt: |
|
|
|
deb: /opt/go-task/task_linux_amd64.deb |
|
|
|
when: _task_deb_get_url.changed |