Skip to content

Commit

Permalink
hold warp pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
v-kamerdinerov committed Oct 28, 2024
1 parent de31c7b commit 30305f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion roles/marzban/tasks/warp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@
- name: "Marzban | Warp | Install cloudflare-warp packages via deb pkg"
apt:
deb: "{{ marzban_warp_deb_package }}"
when: marzban_warp_deb_package is definde and marzban_warp_deb_package

- name: "Marzban | Warp | Hold cloudflare-warp pkg"
dpkg_selections:
name: "{{ marzban_warp_package_name }}"
selection: hold
when: marzban_warp_deb_package is defined and marzban_warp_deb_package

- name: "Marzban | Warp | Check warp client"
command: warp-cli --accept-tos status
Expand Down
3 changes: 2 additions & 1 deletion roles/marzban/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ marzban_warp_apt_gpg_key_path: "/usr/share/keyrings/cloudflare-warp-archive-keyr
marzban_warp_apt_filename: "cloudflare-client"
marzban_warp_packages_state: present

marzban_warp_package_name: "cloudflare-warp"
marzban_warp_packages:
- "cloudflare-warp={{ marzban_warp_pkg_version }}"
- "{{ marzban_warp_package_name }}={{ marzban_warp_pkg_version }}"
marzban_warp_pkg_version: "2024.6.497-1"

marzban_warp_deb_install: true
Expand Down

0 comments on commit 30305f1

Please sign in to comment.