Skip to content

Commit 3a61d77

Browse files
committed
deploy the psql ca
1 parent d86f526 commit 3a61d77

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

development/playbooks/remote-database/remote-database.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,27 @@
1515
- "{{ ansible_facts['fqdn'] }}"
1616
certificates_ca_password: "CHANGEME"
1717
- 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+
tasks:
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+
when:
41+
- database_ssl | default(false)

0 commit comments

Comments
 (0)