You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
598 B
YAML

---
- name: Ensure directory for dh params exists locally
file:
state: directory
path: "{{ dhparams_local_path | dirname }}"
delegate_to: localhost
# Generate locally because of more randomness & faster generation
- name: Generate dh params locally
command: openssl dhparam -out {{ dhparams_local_path | quote }} {{ dhparams_size }}
args:
creates: "{{ dhparams_local_path }}"
delegate_to: localhost
- name: Upload dh params to remote
copy:
src: "{{ dhparams_local_path }}"
dest: "{{ dhparams_remote_path }}"
owner: root
group: root
mode: u=rw,g=r,o=r