title: How to delete a cron job with Ansible?
body: <p>I have about 50 Debian Linux servers with a bad cron job:</p>
  
  <pre><code>0 * * * * ntpdate 10.20.0.1
  </code></pre>
  
  <p>I want to configure ntp sync with ntpd and so I need to delete this cron job. For configuring I use Ansible. I have tried to delete the cron entry with this play:</p>
  
  <pre><code>tasks:
     - cron: name="ntpdate" minute="0" job="ntpdate 10.20.0.1" state=absent user="root"
  </code></pre>
  
  <p>Nothing happened.</p>
  
  <p>Then I run this play:</p>
  
  <pre><code>tasks:
     - cron: name="ntpdate" minute="0" job="ntpdate pool.ntp.org" state=present
  </code></pre>
  
  <p>I see new cron job in output of "crontab -l":</p>
  
  <pre><code>...
  # m h  dom mon dow   command
    0 *  *   *   *     ntpdate 10.20.0.1
  #Ansible: ntpdate
  0 * * * * ntpdate pool.ntp.org
  </code></pre>
  
  <p>but <code>/etc/cron.d</code> is empty! I don't understand how the Ansible cron module works.</p>
  
  <p>How can I delete my manually configured cron job with Ansible's cron module?</p>