aboutsummaryrefslogtreecommitdiffstats
path: root/roles/web/tasks
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-04-18 03:13:13 +0800
committerAaron LI <aly@aaronly.me>2018-04-18 03:13:13 +0800
commitf448bcbdf07cf988ab50950df95d822f359041db (patch)
treeef692cd23733eaec845f2baba23f3502ff7ace69 /roles/web/tasks
parent2607bc43c314169cabf70d6a92e3ade347d3571c (diff)
downloadansible-dfly-vps-f448bcbdf07cf988ab50950df95d822f359041db.tar.bz2
web: Fix private path for the dhparam file
Diffstat (limited to 'roles/web/tasks')
-rw-r--r--roles/web/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml
index e3537ed..d25fdc8 100644
--- a/roles/web/tasks/main.yml
+++ b/roles/web/tasks/main.yml
@@ -10,7 +10,7 @@
- name: (local) ssl/tls - check dhparam existence
become: false
stat:
- path: "{{ playbook_dir }}/ssl/dhparam4096.pem"
+ path: "{{ playbook_dir }}/private/ssl/dhparam4096.pem"
delegate_to: localhost
register: stat_result
@@ -18,13 +18,13 @@
become: false
command: >
openssl dhparam
- -out "{{ playbook_dir }}/ssl/dhparam4096.pem" 4096
+ -out "{{ playbook_dir }}/private/ssl/dhparam4096.pem" 4096
delegate_to: localhost
when: not stat_result.stat.exists
- name: ssl/tls - copy dhparam
copy:
- src: "{{ playbook_dir }}/ssl/dhparam4096.pem"
+ src: "{{ playbook_dir }}/private/ssl/dhparam4096.pem"
dest: /usr/local/etc/ssl/dhparam4096.pem
mode: 0444