# FILE NAME: multi_handlers.yml --- - name: Demosntration of notify and handlers hosts: node2 tasks: - name: Installing httpd dnf: name: httpd state: latest notify: Start Httpd - name: configuration of httpd copy: content: Hello Super User Root Take a sneak peak on normal user also dest: /var/www/html/index.html notify: Configure Firewall # The order in notify list does not make effect but the order in the handler list make the effect. # The name used in the handlers should be exactly same as the name in the notify list and also must be unique. handlers: - name: Start Httpd systemd: name: httpd state: started enabled: true - name: Configure Firewall firewalld: service: http state: enabled permanent: true immediate: true ...