We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d86f526 commit 3a61d77Copy full SHA for 3a61d77
development/playbooks/remote-database/remote-database.yaml
@@ -15,3 +15,27 @@
15
- "{{ ansible_facts['fqdn'] }}"
16
certificates_ca_password: "CHANGEME"
17
- role: postgresql
18
+
19
+ tasks:
20
+ - name: Fetch PostgreSQL SSL CA
21
+ ansible.builtin.fetch:
22
+ src: "{{ certificates_ca_directory }}/certs/ca.crt"
23
+ dest: "{{ obsah_state }}/db-ca.crt"
24
+ flat: true
25
+ when:
26
+ - database_ssl | default(false)
27
28
+- name: Deploy PostgreSQL SSL CA
29
+ hosts:
30
+ - quadlet
31
+ become: true
32
33
+ - name: Deploy PostgreSQL SSL CA
34
+ ansible.builtin.copy:
35
+ src: "{{ obsah_state }}/db-ca.crt"
36
+ dest: /root/db-ca.crt
37
+ mode: "0640"
38
+ owner: root
39
+ group: root
40
41
0 commit comments