Skip to content

Commit

Permalink
HardenedBSD adopting #35
Browse files Browse the repository at this point in the history
update-users BSD
  • Loading branch information
jackivanov committed Feb 26, 2017
1 parent 65aff69 commit a8308d2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/FreeBSD.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FreeBSD
# FreeBSD / HardenedBSD

It is only possible to install Algo on existing systems only in order to avoid recompiling the kernel while deploying

Expand Down
6 changes: 3 additions & 3 deletions playbooks/freebsd.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---

- name: FreeBSD | Install prerequisites
raw: sleep 10 && sudo pkg install -y python27
- name: FreeBSD / HardenedBSD | Install prerequisites
raw: sleep 10 && env ASSUME_ALWAYS_YES=YES sudo pkg install -y python27

- name: FreeBSD | Configure defaults
- name: FreeBSD / HardenedBSD | Configure defaults
raw: sudo ln -sf /usr/local/bin/python2.7 /usr/bin/python2.7

- include: facts/FreeBSD.yml
2 changes: 1 addition & 1 deletion roles/dns_adblocking/tasks/freebsd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- name: FreeBSD | Enable dnsmasq
- name: FreeBSD / HardenedBSD | Enable dnsmasq
lineinfile: dest=/etc/rc.conf regexp=^dnsmasq_enable= line='dnsmasq_enable="YES"'
4 changes: 2 additions & 2 deletions roles/vpn/tasks/freebsd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- name: FreeBSD | Enable strongswan

- name: FreeBSD / HardenedBSD | Enable strongswan
lineinfile: dest=/etc/rc.conf regexp=^strongswan_enable= line='strongswan_enable="YES"'
5 changes: 4 additions & 1 deletion users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
- config.cfg

pre_tasks:
- name: Common pre-tasks
include: playbooks/common.yml

- set_fact:
IP_subject_alt_name: "{{ IP_subject }}"
easyrsa_p12_export_password: "{{ (ansible_date_time.iso8601_basic|sha1|to_uuid).split('-')[0] }}"
Expand Down Expand Up @@ -117,7 +120,7 @@
- name: Copy the revoked certificates to the vpn server
copy:
src: configs/{{ IP_subject_alt_name }}/pki/crl/{{ item }}.crt
dest: /etc/ipsec.d/crls/{{ item }}.crt
dest: "{{ config_prefix|default('/') }}etc/ipsec.d/crls/{{ item }}.crt"
when: item not in users
with_items: "{{ valid_certs.stdout_lines }}"
notify:
Expand Down

0 comments on commit a8308d2

Please sign in to comment.