Create a symlink if deploying to localhost

This commit is contained in:
Jack Ivanov 2018-08-28 15:27:20 +03:00
parent 635e7ff1af
commit 390ecfc07a

View file

@ -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') }}"