1
Files

17 lines
480 B
YAML

---
- name: automysqlbackup_started
shell: "/usr/local/bin/automysqlbackup -bc /etc/automysqlbackup/{{ automysqlbackup_conf_name }}.conf"
- name: cron_start
service: name=cron state=started
when: ansible_os_family == "Debian"
- name: cron_start
become: true
shell: "systemctl start crond"
when: ansible_os_family == "RedHat"
- name: cron_restart
service: name=crond state=restarted
when: ansible_distribution == "centos" and ansible_distribution_release == "6"