Skip to content

Commit

Permalink
Better OS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 15, 2024
1 parent 2648547 commit 3d92131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- include_tasks: apt_cache.yml
when: ansible_pkg_mgr == 'apt' and noobient_apt_cache_updated is not defined
when: ansible_os_family == 'Debian' and noobient_apt_cache_updated is not defined

- include_tasks: https.yml
when: mode == 'https'
Expand Down
2 changes: 1 addition & 1 deletion tasks/tunnel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: noobient.thirdparty
vars:
name: Cloudflare Tunnel
gpg_url: "https://pkg.cloudflare.com/cloudflare-{% if ansible_pkg_mgr == 'dnf' %}ascii-pubkey{% else %}main{% endif %}.gpg"
gpg_url: "https://pkg.cloudflare.com/cloudflare-{% if ansible_os_family == 'RedHat' %}ascii-pubkey{% else %}main{% endif %}.gpg"
repo_file: cloudflared
package: cloudflared

Expand Down

0 comments on commit 3d92131

Please sign in to comment.