--- - hosts: - all tasks: - name: Install NGINX apt: name: nginx state: present notify: NGINX start handlers: - name: NGINX start service: name: nginx state: started enabled: yes