Skip to content

Commit

Permalink
Fix rambox installation
Browse files Browse the repository at this point in the history
There is no difference between CE and PRO anymore so only one download
is needed.
  • Loading branch information
MarauderXtreme committed Aug 21, 2022
1 parent 4b81d34 commit 694c87e
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tasks/rambox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@
name: xz-utils
state: present

- name: Set Rambox download link to ce
ansible.builtin.set_fact:
local_system_rambox_download: "https://github.com/ramboxapp/community-edition/releases/download/{{ local_system_ramboxce }}/Rambox-{{ local_system_ramboxce }}-linux-amd64.deb"
when: local_system_rambox == "ce"

- name: Set Rambox download link to pro
ansible.builtin.set_fact:
local_system_rambox_download: https://github.com/ramboxapp/download/releases/download/{{ local_system_ramboxpro }}/RamboxPro-{{ local_system_ramboxpro[1:] }}-linux-x64.deb
when: local_system_rambox == "pro"

- name: Download and install Rambox
become: true
ansible.builtin.apt:
deb: "{{ local_system_rambox_download }}"
when: (ansible_os_family | lower) == "debian"
deb: "https://github.com/ramboxapp/download/releases/download/{{ local_system_rambox }}/Rambox-{{ local_system_rambox[1:] }}-linux-x64.deb"
when:
- local_system_rambox is defined
- local_system_rambox is not false
- (ansible_os_family | lower) == "debian"

0 comments on commit 694c87e

Please sign in to comment.