Skip to content

Commit

Permalink
new role to add server packages required by ./securedrop-admin install
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Feb 12, 2019
1 parent f6f6ea2 commit de2deba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions install_files/ansible-base/roles/prepare-servers/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# Ensures that prequisite packages for anssible and securedrop-admin install
# are present
- name: 'Ensure apt has been safely updated wrt. CVE-2019-3462'
raw: 'apt -o Acquire::http::AllowRedirect=false update &&
apt -o Acquire::http::AllowRedirect=false --only-upgrade -y install apt'
- name: 'run apt update'
raw: 'sudo apt -o update'
- name: 'install packages'
raw: 'sudo apt-get -y install python apt-transport-https dnsutils'

8 changes: 8 additions & 0 deletions install_files/ansible-base/securedrop-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
roles:
- { role: validate, tags: validate }

- name: Prepare servers for installation
hosts: securedrop
gather_facts: no
max_fail_percentage: 0
any_errors_fatal: yes
roles:
- { role: prepare-servers }

- name: Add FPF apt repository and install base packages.
hosts: securedrop
max_fail_percentage: 0
Expand Down

0 comments on commit de2deba

Please sign in to comment.