|
@@ -0,0 +1,28 @@ |
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
- name: installation directory |
|
|
|
|
|
file: |
|
|
|
|
|
path: /opt/telegram-desktop |
|
|
|
|
|
state: directory |
|
|
|
|
|
|
|
|
|
|
|
- name: get telegram-desktop releases |
|
|
|
|
|
uri: |
|
|
|
|
|
url: https://api.github.com/repos/telegramdesktop/tdesktop/releases/latest |
|
|
|
|
|
return_content: true |
|
|
|
|
|
register: _telegram_desktop_releases |
|
|
|
|
|
|
|
|
|
|
|
- name: download latest release |
|
|
|
|
|
get_url: |
|
|
|
|
|
url: "{{_telegram_desktop_dl_url}}" |
|
|
|
|
|
dest: /opt/telegram-desktop/{{_telegram_desktop_dl_filename}} |
|
|
|
|
|
|
|
|
|
|
|
- name: extract telegram release |
|
|
|
|
|
unarchive: |
|
|
|
|
|
src: /opt/telegram-desktop/{{_telegram_desktop_dl_filename}} |
|
|
|
|
|
dest: /opt/telegram-desktop |
|
|
|
|
|
|
|
|
|
|
|
- name: link telegram-desktop binary |
|
|
|
|
|
file: |
|
|
|
|
|
src: /opt/telegram-desktop/Telegram/Telegram |
|
|
|
|
|
dest: /usr/local/bin/telegram-desktop |
|
|
|
|
|
state: link |