# skip task check mode

**URL:** <https://forum.ansible.com/t/skip-task-check-mode/18753>\
**Category:** Ansible Project\
**Created:** [July 14, 2015, 9:57am UTC](https://forum.ansible.com/t/skip-task-check-mode/18753 "2015-07-14T09:57:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Coelho](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jose\_Coelho](https://forum.ansible.com/u/Jose_Coelho)\
**Post date:** [July 14, 2015, 9:57am UTC](https://forum.ansible.com/t/skip-task-check-mode/18753/1 "2015-07-14T09:57:08Z")

</div>

Hello,

I’m trying to run a playbook in the flags --check, however I’m having an issue:

> > - name: ntp - Configure ntp
> 
> > template: src=etc/ntp.conf.j2 dest=/etc/ntp.conf
> 
> > notify:
> 
> > - ntp - restart ntp
> 
> > 
> 
> > - name: ntp - Enable ntp
> 
> > service: name=ntp state=running enabled=yes

If I try to register a variable, even in check mode template will report changed and since ntp isnt installed, service will fail:
