Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate directory missing #136

Merged
merged 4 commits into from
Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions roles/icinga2/tasks/features/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
remote_src: yes
when: icinga2_ca_host == 'none'

- name: use self provided certificates
- name: Use self generated certificates
block:
- set_fact:
_tmp_crt:
Expand All @@ -173,7 +173,15 @@
- src: "{{ icinga2_ssl_cert }}"
dest: "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.crt"

- name: pre generated certificates copy to icinga2 certs
- name: Ensure icinga2 certificate directory
file:
path: "{{ icinga2_cert_path }}"
state: directory
owner: "{{ icinga2_user }}"
group: "{{ icinga2_group }}"
mode: "0750"

- name: Copy self generated certificates to icinga2 certificate directory
copy:
remote_src: no
src: "{{ _crt.src }}"
Expand Down