Skip to content

Commit

Permalink
apt is too dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 29, 2023
1 parent bd16fa0 commit c56add0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This role puts your server behind Cloudflare. Two options are supported:
- HTTPS traffic is allowed in the new `cloudflare` zone in firewalld, which is
restricted to Cloudflare's servers as described on their
[IP Ranges](https://www.cloudflare.com/ips/) page.
- Cloudflare Tunnel is installed on the service with the token provided. In this
- Cloudflare Tunnel is installed on the server with the token provided. In this
case, you need to configure your tunnel in the Cloudflare dashboard to select which
services to be allowed.

Expand Down
5 changes: 5 additions & 0 deletions tasks/apt_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Update apt cache
apt:
update_cache: true
register: noobient_apt_cache_updated
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
- include_tasks: apt_cache.yml
when: ansible_pkg_mgr == 'apt' and noobient_apt_cache_updated is not defined

- include_tasks: https.yml
when: mode == 'https'

Expand Down

0 comments on commit c56add0

Please sign in to comment.