How to avoid handlers to get triggered when using --check

Hi,

Since Ansible doesn’t allow to tag and skip handlers, how can I skip checking the handler init script exists when I run the playbook with --check?

For example

  • name: restart webserver
    service:
    name: httpd
    state: restarted

If httpd is not installed previously then I dont want Ansible to check /etc/init.d/httpd exists when I use the --check option.

Thanks
Manoj

Hi Folks,

None one?