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: