From 0c170a89b8565ffcd29ce99b2e7bc1f8dc7586fa Mon Sep 17 00:00:00 2001 From: Evgeniy Ivanov Date: Thu, 18 Aug 2016 12:32:28 +0300 Subject: [PATCH] IP_subject fixes --- non-cloud.yml | 6 ++++-- roles/vpn/tasks/main.yml | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/non-cloud.yml b/non-cloud.yml index a68b0140..b89c2827 100644 --- a/non-cloud.yml +++ b/non-cloud.yml @@ -29,7 +29,7 @@ default: "vpn" private: yes - - name: "IP_subject_alt_name" + - name: "IP_subject" prompt: "Enter public IP address of your server: (IMPORTANT! This IP is using to verify the certificate)\n" private: no @@ -43,7 +43,7 @@ dns_enabled: "{{ dns_enabled }}" auditd_enabled: " {{ auditd_enabled }}" easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}" - IP_subject_alt_name: "{{ IP_subject_alt_name }}" + IP_subject: "{{ IP_subject }}" - name: Post-provisioning tasks hosts: vpn-host @@ -57,6 +57,8 @@ raw: sudo apt-get update -qq && sudo apt-get install -qq -y python2.7 - name: Configure defaults raw: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 + - set_fact: + IP_subject_alt_name: "{{ IP_subject }}" roles: #- common diff --git a/roles/vpn/tasks/main.yml b/roles/vpn/tasks/main.yml index 3751ea22..612f4c57 100644 --- a/roles/vpn/tasks/main.yml +++ b/roles/vpn/tasks/main.yml @@ -1,3 +1,6 @@ +- name: Gather Facts + setup: + - name: Install StrongSwan apt: name=strongswan state=latest update_cache=yes