From 46bcaf8320f7a8c048309b0687af0e6762867ef3 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Fri, 19 Nov 2021 23:20:15 +0100 Subject: [PATCH] icinga: style fix/cleanup --- roles/icinga/tasks/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/icinga/tasks/main.yml b/roles/icinga/tasks/main.yml index 673bebb..4385fea 100644 --- a/roles/icinga/tasks/main.yml +++ b/roles/icinga/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Enable icinga apt-key - apt_key: url='https://packages.icinga.com/icinga.key' + apt_key: url="https://packages.icinga.com/icinga.key" - name: Enable icinga repository apt_repository: - repo: 'deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main' + repo: "deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main" filename: icinga - name: Install icinga @@ -73,7 +73,12 @@ user: name=www-data append=yes groups=icingaweb2 - name: Ensure certificates are available - command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ icinga_domain }}.key -out /etc/nginx/ssl/{{ icinga_domain }}.crt -days 730 -subj "/CN={{ icinga_domain }}" creates=/etc/nginx/ssl/{{ icinga_domain }}.crt + command: + cmd: > + openssl req -x509 -nodes -newkey rsa:2048 + -keyout /etc/nginx/ssl/{{ icinga_domain }}.key -out /etc/nginx/ssl/{{ icinga_domain }}.crt + -days 730 -subj "/CN={{ icinga_domain }}" + creates: /etc/nginx/ssl/{{ icinga_domain }}.crt notify: Restart nginx - name: Request nsupdate key for certificate