Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure version of tor installed is from FPF repo #4169

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@
apt-cache policy tor | sed -e 's/^\s*Installed:\ \(\S*\)/\1/g;tx;d;:x'
changed_when: false
register: extract_tor_version
when: "'amazon' in ansible_product_version"

# Ubuntu upstream repositories serve a version of tor that is very old. Since
# FPF apt servers host this same package, let's ensure that the FPF-provided
# Tor package is installed by checking we are using a recent version.

- name: Ensure correct Tor version installed.
assert:
that: extract_tor_version.stdout is version('0.3.4.9', '>=')
fail_msg: "Tor package was not found on FPF apt server."

- name: Dump Tor version to file (for reporting)
copy:
Expand Down