diff --git a/roles/smb-backup/files/backup.sh b/roles/smb-backup/files/backupsmb.sh similarity index 100% rename from roles/smb-backup/files/backup.sh rename to roles/smb-backup/files/backupsmb.sh diff --git a/roles/smb-backup/tasks/main.yml b/roles/smb-backup/tasks/main.yml index 7d7e4be..4e177bd 100644 --- a/roles/smb-backup/tasks/main.yml +++ b/roles/smb-backup/tasks/main.yml @@ -2,7 +2,22 @@ apt: name: - rsync - - smbclient + - smbclient - cifs-utils state: present +- name: copie script backupsmb dans /usr/local/bin + copy: + src: backupsmb.sh + dest: /usr/local/bin + owner: root + group: root + mode: '0755' + +- name: crontab backupsmb ( commentee par defaut ) + cron: + name: backupsmb + disabled: true + minute: "0" + hour: "5" + job: "/usr/local/bin/backupsmb.sh"