ansible-edda/playbooks/tasks/services/service/03-pod.d/rproxy.yml

21 lines
623 B
YAML

- block:
- name: Create html directory for letsencrypt
file:
path: "{{ service_home }}/.config/{{ service_user_name }}/html"
state: directory
mode: 0755
- name: Generate Diffie Hellman ephemeral parameters
command: openssl dhparam --out /{{ service_home }}/.config/{{ service_user_name}}/dhparam.pem 4096
args:
creates: "{{ service_home }}/.config/{{ service_user_name }}/dhparam.pem"
register: dhparam
- name: Record changes
set_fact:
service_changed: true
when:
dhparam is changed
become_user: "{{ service_user_name }}"