From 4feae9918c976638d7f9acb02c495f452da3a952 Mon Sep 17 00:00:00 2001 From: kogeler Date: Mon, 22 Jul 2024 19:53:01 +0300 Subject: [PATCH 1/3] fix dhparams generation Signed-off-by: kogeler --- roles/nginx/handlers/main.yml | 1 + roles/nginx/tasks/main.yml | 16 +++------------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/roles/nginx/handlers/main.yml b/roles/nginx/handlers/main.yml index bfa1286..6fe7241 100644 --- a/roles/nginx/handlers/main.yml +++ b/roles/nginx/handlers/main.yml @@ -5,3 +5,4 @@ state: reloaded enabled: true daemon_reload: true + ignore_errors: "{{ ansible_check_mode }}" \ No newline at end of file diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index beef6a5..2524351 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -52,26 +52,16 @@ path: /etc/nginx/dhparams.pem register: stat_dhparams - # The file is generated locally because it takes a LONG time to generate on VMs - - name: nginx | generate dhparams locally - become: false + - name: nginx | generate dhparams community.crypto.openssl_dhparam: - path: /tmp/dhparams_{{ inventory_hostname }}.pem + path: /etc/nginx/dhparams.pem size: "{{ nginx_dhparam_size }}" - delegate_to: localhost - when: not stat_dhparams.stat.exists - # molecule skip test - tags: molecule-notest - - - name: nginx | copy dhparams to node - ansible.builtin.copy: - src: /tmp/dhparams_{{ inventory_hostname }}.pem - dest: /etc/nginx/dhparams.pem owner: root group: root mode: "0600" notify: reload nginx config when: not stat_dhparams.stat.exists + ignore_errors: "{{ ansible_check_mode }}" # molecule skip test tags: molecule-notest From ffa383efd957faec6c9f170b736e271be08c3b1e Mon Sep 17 00:00:00 2001 From: kogeler Date: Mon, 22 Jul 2024 20:48:40 +0300 Subject: [PATCH 2/3] fix --- roles/nginx/handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/handlers/main.yml b/roles/nginx/handlers/main.yml index 6fe7241..407779d 100644 --- a/roles/nginx/handlers/main.yml +++ b/roles/nginx/handlers/main.yml @@ -5,4 +5,4 @@ state: reloaded enabled: true daemon_reload: true - ignore_errors: "{{ ansible_check_mode }}" \ No newline at end of file + ignore_errors: "{{ ansible_check_mode }}" From 91b4ea4ec71569f5209f0784d01510a97fc23fea Mon Sep 17 00:00:00 2001 From: kogeler Date: Mon, 22 Jul 2024 21:57:26 +0300 Subject: [PATCH 3/3] fix galaxy version --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 81e1d6c..f66e029 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: paritytech name: chain # The version of the collection. Must be compatible with semantic versioning -version: 1.10.0 +version: 1.10.1 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md