From 40a64d1e778eb65f1d4ab503e580ece9ea640996 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 8 Oct 2020 22:29:54 +0200 Subject: [PATCH] netbox: fix syntax error --- roles/netbox/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/netbox/tasks/main.yml b/roles/netbox/tasks/main.yml index 23c63e4..f9a9b48 100644 --- a/roles/netbox/tasks/main.yml +++ b/roles/netbox/tasks/main.yml @@ -86,12 +86,12 @@ # * systemd Configuration - name: Ensure certificates are available - command: > - openssl req -x509 -nodes -newkey rsa:2048 - -keyout /etc/nginx/ssl/{{ netbox_domain }}.key -out /etc/nginx/ssl/{{ netbox_domain }}.crt - -days 730 -subj "/CN={{ netbox_domain }}" - changed_when: True - creates: '/etc/nginx/ssl/{{ netbox_domain }}.crt' + command: + cmd: > + openssl req -x509 -nodes -newkey rsa:2048 + -keyout /etc/nginx/ssl/{{ netbox_domain }}.key -out /etc/nginx/ssl/{{ netbox_domain }}.crt + -days 730 -subj "/CN={{ netbox_domain }}" + creates: '/etc/nginx/ssl/{{ netbox_domain }}.crt' notify: Restart nginx #- name: Configure certificate manager for netbox