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

39 views
Skip to first unread message

Manoj

unread,
Apr 9, 2015, 10:28:17 PM4/9/15
to ansible...@googlegroups.com
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

Manoj

unread,
Apr 14, 2015, 7:38:17 PM4/14/15
to ansible...@googlegroups.com
Hi Folks,

None one? 
Reply all
Reply to author
Forward
0 new messages