Skip to content

Commit

Permalink
make apt update_cache configurable
Browse files Browse the repository at this point in the history
this is related to #220
we make it configurable so we can disable
it for test-kitchen runs
  • Loading branch information
nusenu committed Nov 15, 2021
1 parent 8d239e6 commit 9ba4d88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ tor_ipv4_count: "{{ tor_v4ips | length|int }}"
# we can not use more IPv6 IPs than we have IPv4 IPs so we truncate (but fewer is ok)
tor_available_public_ipv6s: "{{ ansible_all_ipv6_addresses|ipv6('public')|ipv6('address') }}"

tor_apt_update_cache: yes


# This var enables autoconfiguration for OutboundBindAddressExit
tor_dedicatedExitIP: False
Expand Down
2 changes: 1 addition & 1 deletion tasks/apt_prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
become: yes
apt:
name: lsb-release,apt-transport-https,gpg
update_cache: yes
update_cache: "{{ tor_apt_update_cache }}"
cache_valid_time: 86400
notify:
- re-gather facts
Expand Down
1 change: 1 addition & 0 deletions test/integration/default/vars/dry-run-vars.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
tor_apt_update_cache: no
tor_ContactInfo: "ansible-relayor test-kitchen (you should never see this on a public relay) https://github.com/nusenu/ansible-relayor"
tor_config:
DisableNetwork: 1
Expand Down

0 comments on commit 9ba4d88

Please sign in to comment.