From 1eb35a1e69d9a9f3f43340b9ea46d95bb2c1a0e8 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 28 Aug 2015 15:38:36 +0200 Subject: Add cgit role - git webfrontend --- roles/apache/tasks/ssl.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roles/apache/tasks/ssl.yaml (limited to 'roles/apache/tasks') diff --git a/roles/apache/tasks/ssl.yaml b/roles/apache/tasks/ssl.yaml new file mode 100644 index 0000000..979d364 --- /dev/null +++ b/roles/apache/tasks/ssl.yaml @@ -0,0 +1,21 @@ +--- +- name: Create ssl DIR + file: + path=/etc/apache2/sites/{{ ssl_server_name }}/ssl + state=directory + +- name: Place SSL cert and chain + copy: + src=ssl/{{ ssl_server_name }}/{{item}} + dest=/etc/apache2/sites/{{ ssl_server_name }}/ssl/{{item}} + with_items: + - cert.pem + - chain.pem + notify: Reload apache + +- name: Place SSL key + copy: + content="{{ssl_keys[ssl_server_name]}}" + dest="/etc/apache2/sites/{{ssl_server_name}}/ssl/key.pem" + mode=0600 + notify: Reload apache -- cgit v1.2.1