--- - name: mysql-backup | Install a script that performs mysql dumps ansible.builtin.copy: src: mysql-backup.sh dest: /usr/local/sbin/mysql-backup owner: root group: root mode: "0750" tags: ['mysql', 'mysql_backup'] - name: mysql-backup | Install the mysql backup defaults ansible.builtin.template: src: mysql_backup-default.j2 dest: /etc/default/mysql_backup owner: root group: root mode: "0440" tags: ['mysql', 'mysql_backup'] - name: mysql-backup | Cron job that executes mysql nightly backups ansible.builtin.template: src: mysql-backup.cron.j2 dest: /etc/cron.daily/mysql-backup owner: root group: root mode: "0755" tags: ['mysql', 'mysql_backup']