Skip to content

Commit

Permalink
feat: add TLS certificate copy task
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelJoos committed Apr 30, 2024
1 parent b50da94 commit f62d429
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
- name: Run handlers
ansible.builtin.meta: flush_handlers

- name: Place TLS certificates
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
owner: bareos
group: bareos
mode: "0640"
backup: "{{ bareos_dir_backup_configurations }}"
loop:
- { src: "ca.pem", dst: "{{ bareos_dir_tls_ca_cert }}" }
- { src: "director.pem", dst: "{{ bareos_dir_tls_cert }}" }
- { src: "director.key", dst: "{{ bareos_dir_tls_cert_key }}" }
when:
- bareos_dir_tls_enable == "yes"

- name: Place bareos-dir.conf
ansible.builtin.template:
src: bareos-dir.conf.j2
Expand Down

0 comments on commit f62d429

Please sign in to comment.