2022-09-26 23:10:48 +02:00
|
|
|
- block:
|
2022-10-02 14:56:43 +02:00
|
|
|
- name: Create service configuration directory for {{ service_user_name }}
|
|
|
|
file:
|
|
|
|
path: "{{ service_home }}/.config/{{ service_user_name }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: Synchronise service configuration
|
|
|
|
copy:
|
|
|
|
src: "./filesystem/common/var/lib/_hostname/home/pod-_rproxy/.config/pod-_rproxy/"
|
|
|
|
dest: "{{ service_home }}/.config/{{ service_user_name }}"
|
|
|
|
directory_mode: 0755
|
|
|
|
mode: 0644
|
|
|
|
register: rproxy_synchronise
|
|
|
|
|
2022-09-26 23:10:48 +02:00
|
|
|
- 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:
|
2022-10-02 14:56:43 +02:00
|
|
|
rproxy_synchronise is changed or
|
2022-09-26 23:10:48 +02:00
|
|
|
dhparam is changed
|
|
|
|
|
|
|
|
become_user: "{{ service_user_name }}"
|