Ansible – удалить крон

Делаем playbook

nano cron_add.yml
- hosts : pgcluster_ries
  tasks :
    - name : remove crontab test
      cron: name="crontab test" state=absent

Будут удален крон crontab test

Удалить все кроны

- hosts : pgcluster_ries
  tasks :
    - name : remove crontab test
      shell: crontab -r

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.