From fb1c0f6a5e692fb2dde905d1ea3c8b44dc10874e Mon Sep 17 00:00:00 2001 From: Jack Ivanov <17044561+jackivanov@users.noreply.github.com> Date: Thu, 30 Aug 2018 15:36:35 +0300 Subject: [PATCH] Create a symlink if deploying to localhost (#1078) --- server.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server.yml b/server.yml index c71b5be..459dd63 100644 --- a/server.yml +++ b/server.yml @@ -51,6 +51,14 @@ {% if tests|default(false)|bool %}ca_password: {{ CA_password }}{% endif %} become: false + - name: Create a symlink if deploying to localhost + file: + src: "{{ IP_subject_alt_name }}" + dest: configs/localhost + state: link + force: true + when: inventory_hostname == 'localhost' + - debug: msg: - "{{ congrats.common.split('\n') }}"