Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.

Commit c987e62

Browse files
committed
somewhat cleaner
1 parent 17a4e89 commit c987e62

File tree

15 files changed

+261
-80
lines changed

15 files changed

+261
-80
lines changed

Diff for: global_vars/vars.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
upstream_dns_servers:
3-
- 8.8.8.8
4-
- 8.8.4.4
3+
- 1.1.1.1
4+
- 1.0.0.1
55

66
streisand_client_test: no
77

Diff for: playbooks/roles/common/vars/main.yml

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ streisand_common_packages:
66
- apt-transport-https
77
# Used to perform a system upgrade
88
- aptitude
9-
# Used to compile Libreswan and OpenConnect Server (ocserv)
10-
#- build-essential
119
# Used to perform API requests, including the version check for
1210
# the Tor Browser Bundle
1311
- curl

Diff for: playbooks/roles/dnsmasq/templates/dnsmasq.conf.j2

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ bogus-priv
1818
# uncomment this.
1919
no-resolv
2020

21-
{% for item in upstream_dns_servers %}
22-
server={{ item }}
23-
{% endfor %}
21+
bind-interfaces
22+
23+
server=127.0.0.53
24+
25+
#{% for item in upstream_dns_servers %}
26+
#server={{ item }}
27+
#{% endfor %}

Diff for: playbooks/roles/gpg/tasks/main.yml

-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
- name: "Start a new dirmngr with our config changes"
5252
command: "gpgconf --launch dirmngr"
5353

54-
- name: "Start the gpg-agent"
55-
command: "gpg-agent --daemon --write-env-file {{ root_gpg_dir }}"
56-
5754
- name: "Wait for the GPG agent and dirmngr control sockets"
5855
wait_for:
5956
path: "{{ root_gpg_dir }}/{{ item }}"

Diff for: playbooks/roles/openvpn/meta/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
dependencies:
33
# OpenVPN needs to be added to the firewall
44
- { role: ufw }
5-
# - { role: dnsmasq }
5+
- { role: dnsmasq }
66
- { role: ip-forwarding }

Diff for: playbooks/roles/openvpn/tasks/install.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
#- name: "Add the official OpenVPN APT key; hiding 25 lines of log..."
3-
# apt_key:
4-
# id: E158C569
5-
# data: "{{ item }}"
6-
# with_file: openvpn_signing.key
7-
# no_log: True
2+
- name: "Add the official OpenVPN APT key; hiding 25 lines of log..."
3+
apt_key:
4+
id: E158C569
5+
data: "{{ item }}"
6+
with_file: openvpn_signing.key
7+
no_log: True
88

99
#- name: Add the official OpenVPN repository
1010
# apt_repository:

Diff for: playbooks/roles/openvpn/tasks/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Add the apt key and install OpenVPN
33
- import_tasks: install.yml
44

5-
#- name: "Configure DNSMasq to listen on {{ dnsmasq_openvpn_tcp_ip }}:53 and {{ dnsmasq_openvpn_udp_ip }}:53"
6-
# template:
7-
# src: openvpn_dnsmasq.conf.j2
8-
# dest: /etc/dnsmasq.d/openvpn.conf
9-
# notify: Restart dnsmasq
5+
- name: "Configure DNSMasq to listen on {{ dnsmasq_openvpn_tcp_ip }}:53 and {{ dnsmasq_openvpn_udp_ip }}:53"
6+
template:
7+
src: openvpn_dnsmasq.conf.j2
8+
dest: /etc/dnsmasq.d/openvpn.conf
9+
notify: Restart dnsmasq
1010

1111
- include_role:
1212
name: certificates

Diff for: playbooks/roles/stunnel/tasks/main.yml

-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@
4141
name: stunnel4.service
4242
state: stopped
4343

44-
- name: Remove the stunnel init.d script
45-
file:
46-
state: absent
47-
path: "/etc/init.d/stunnel4"
48-
4944
- name: Copy the stunnel system unit file
5045
template:
5146
src: stunnel.service.j2

Diff for: playbooks/roles/stunnel/templates/stunnel-remote.conf.j2

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cert = {{ stunnel_cert }}
22
key = {{ stunnel_key }}
33
debug = 4
4-
options = NO_SSLv2
54
options = NO_SSLv3
65
options = NO_TLSv1
76
options = NO_TLSv1.1

Diff for: playbooks/roles/tinyproxy/tasks/main.yml

+33-28
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,42 @@
33
apt:
44
name: tinyproxy
55

6-
- name: Create the tinyproxy config directory
7-
file:
8-
path: "{{ tinyproxy_conf_dir }}"
9-
state: directory
10-
owner: nobody
11-
group: nogroup
12-
mode: 0755
6+
#- name: Create the tinyproxy config directory
7+
# file:
8+
# path: "{{ tinyproxy_conf_dir }}"
9+
# state: directory
10+
# owner: nobody
11+
# group: nogroup
12+
# mode: 0755
1313

14-
- name: Generate the tinyproxy configuration file
15-
template:
16-
src: tinyproxy.conf.j2
17-
dest: "{{ tinyproxy_conf_file }}"
18-
owner: root
19-
group: root
20-
mode: 0644
14+
#- name: Generate the tinyproxy configuration file
15+
# template:
16+
# src: tinyproxy.conf.j2
17+
# dest: "{{ tinyproxy_conf_file }}"
18+
# owner: root
19+
# group: root
20+
# mode: 0644
2121

22-
- name: Generate the tinyproxy system unit file
23-
template:
24-
src: tinyproxy.service.j2
25-
dest: /etc/systemd/system/tinyproxy.service
26-
owner: root
27-
group: root
28-
mode: 0644
22+
#- name: Create the tinyproxy systemd drop-in configuration directory
23+
# file:
24+
# path: "{{ tinyproxy_systemd_service_path }}"
25+
# state: directory
2926

30-
- name: Generate the systemd tmpfile for tinyproxy
31-
template:
32-
src: tinyproxytmp.conf.j2
33-
dest: /etc/tmpfiles.d/tinyproxy.conf
34-
owner: root
35-
group: root
36-
mode: 0644
27+
#- name: Generate the tinyproxy systemd drop-in service file
28+
# template:
29+
# src: tinyproxy.service.j2
30+
# dest: "{{ tinyproxy_systemd_service_path }}/10-restart-failure.service"
31+
# owner: root
32+
# group: root
33+
# mode: 0644
34+
35+
#- name: Generate the systemd tmpfile for tinyproxy
36+
# template:
37+
# src: tinyproxytmp.conf.j2
38+
# dest: /etc/tmpfiles.d/tinyproxy.conf
39+
# owner: root
40+
# group: root
41+
# mode: 0644
3742

3843
- name: Enable and restart the tinyproxy service
3944
systemd:

0 commit comments

Comments
 (0)