summaryrefslogtreecommitdiff
path: root/ansible/experiments/strongswan/strongswan-server.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/experiments/strongswan/strongswan-server.yml')
-rw-r--r--ansible/experiments/strongswan/strongswan-server.yml67
1 files changed, 0 insertions, 67 deletions
diff --git a/ansible/experiments/strongswan/strongswan-server.yml b/ansible/experiments/strongswan/strongswan-server.yml
deleted file mode 100644
index e555b90..0000000
--- a/ansible/experiments/strongswan/strongswan-server.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-- hosts:
- - knot
- vars_files:
- - strongswan-vars.yml
- vars:
- peers:
- - arius
- handlers:
- - name: systemctl restart strongswan
- become: true
- systemd:
- name: strongswan
- state: restarted
- tasks:
- - become: true
- block:
- - name: packages
- apt:
- name: "{{ item }}"
- install_recommends: no
- with_items:
- - strongswan-swanctl
- - name: install certs
- with_items: "{{ peers }}"
- copy:
- src=swanctl/{{ item }}/rsa/{{ item }}-key.der
- dest=/etc/swanctl/rsa/{{ item }}-key.der
- - name: install swanctl.conf
- notify: systemctl restart strongswan
- copy:
- dest: /etc/swanctl/conf.d/trygvis.io.conf
- content: |
- connections {
-
- rw {
- local_addrs = fec0::1
-
- local {
- auth = pubkey
- certs = moonCert.pem
- id = moon.strongswan.org
- }
- remote {
- auth = pubkey
- }
- children {
- net {
- local_ts = {{ strongswan_ts }}
-
- updown = /usr/local/libexec/ipsec/_updown iptables
- esp_proposals = aes128-sha256-x25519
- }
- }
- version = 2
- proposals = aes128-sha256-x25519
- }
- }
-
- authorities {
- strongswan {
- #cacert = caCert.pem
- #crl_uris = http://ip6-winnetou.strongswan.org/strongswan.crl
- cacert = ca-cert.der
- crl_uris =
- }
- }
-