config/roles/installs/tasks/proxy.yml

33 lines
1,006 B
YAML

- name: Get latest hola-proxy version
community.general.github_release:
user: Snawoot
repo: hola-proxy
action: latest_release
register: hola_version
- name: "Installing hola-proxy {{ hola_version.tag }}"
become: true
ansible.builtin.get_url:
remote_src: yes
# TODO: insert v before version ??
url: "https://github.com/Snawoot/hola-proxy/releases/download/{{ hola_version.tag }}/hola-proxy.linux-amd64"
dest: "/usr/bin/hola-proxy"
mode: a+x
force: true
- name: Get latest opera-proxy version
community.general.github_release:
user: Snawoot
repo: opera-proxy
action: latest_release
register: opera_version
- name: "Installing opera-proxy {{ opera_version.tag }}"
become: true
ansible.builtin.get_url:
remote_src: yes
# TODO: insert v before version ??
url: "https://github.com/Snawoot/opera-proxy/releases/download/{{ opera_version.tag }}/hola-proxy.linux-amd64"
dest: "/usr/bin/hola-proxy"
mode: a+x
force: true