title: Run playbook file on particular days
body: <p>I am new to Ansible, I need to execute one playbook file for 7 days alone and 8th day I need to run another playbook file. How can I set that using Ansible? I have tried at module but it's not applicable to that. How can I set conditions as per my requirement?</p>
  
  <p>I have created sample job using Ansible. In which I need to run my job every day once and up to 7 days alone, so that I specify 24 hrs once in hour filed and in day field as 01-07. Here is my code:</p>
  
  <pre><code>- - cron:
          name: "play mail"
          hour: "24"
          day: "01-07"
          job: "sh script.sh"
  </code></pre>
  
  <p>I am able to run this code without any error and job created I have seen using <code>crontab -l</code>. But it executes only once. Not every 24 hrs of 7 days. Whether it's correct as per my requirement?</p>