From 2c6f93ff8e16ae11c655e6ccf9a5f6cc93fc6a1c Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Mon, 27 Feb 2023 10:07:27 -0600 Subject: [PATCH] Perform firewalld reload as a handler --- handlers/main.yml | 6 +++++- tasks/openqa-worker.yml | 9 +-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 03692d8..4a3f3c4 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,2 +1,6 @@ --- -# Handlers +- name: Reload firewalld + ansible.builtin.systemd: + name: firewalld + state: reloaded + ignore_errors: "{{ ansible_check_mode }}" diff --git a/tasks/openqa-worker.yml b/tasks/openqa-worker.yml index 3024af3..ac682e1 100644 --- a/tasks/openqa-worker.yml +++ b/tasks/openqa-worker.yml @@ -30,14 +30,7 @@ - openqa-vnc tags: - configure - -- name: Reload firewalld - ansible.builtin.systemd: - name: firewalld - state: reloaded - tags: - - configure - ignore_errors: "{{ ansible_check_mode }}" + notify: Reload firewalld - name: Write openQA configuration file ansible.builtin.template: