skip task check mode

107 views
Skip to first unread message

José Coelho

unread,
Jul 14, 2015, 5:57:08 AM7/14/15
to ansible...@googlegroups.com
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:
msg: no service or tool found for: ntp

ansible --version
ansible 1.9.1
Reply all
Reply to author
Forward
0 new messages