Ansible clear out cron for current user
Ansible clear out all crontab entries for current user. Ansible 2 has a better way.
nc.yml
- name: remove crontab
hosts:
- "tag_use_service"
- ";&tag_cust_id_{{ id }}"
tasks:
- name: remove crontab
shell: crontab -r
nc.sh
for i in $(seq -f "%02g" 1 24); do
ansible-playbook nc.yml -e id=hipprd${i}
done