Skip to content

Commit b727683

Browse files
author
Anandkumar Patel
committed
add dhparam generation
1 parent 8dd683c commit b727683

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • ansible/roles/nginx-proxied-service/tasks

ansible/roles/nginx-proxied-service/tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
# these are pretty hacky, but it should work
32
# Get port information from the hosted service
43
- name: get socket server ports
54
tags: [ configure_proxy, deploy ]
@@ -16,7 +15,12 @@
1615
executable: /bin/bash
1716
register: proxy_target_ports
1817

19-
# everything from this point on is deligated to the nginx host
18+
# everything from this point on is delegated to the nginx host
19+
- name: put dhparam in place
20+
delegate_to: "{{ nginx_host }}"
21+
tags: [ configure_proxy ]
22+
become: yes
23+
command: openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
2024

2125
- name: print target ports
2226
delegate_to: "{{ nginx_host }}"

0 commit comments

Comments
 (0)