2020-08-18 11:57:53 +02:00
|
|
|
# für scripte
|
|
|
|
- name: create /etc/restic
|
|
|
|
become: yes
|
2020-11-21 19:41:19 +01:00
|
|
|
ansible.builtin.file:
|
2020-08-18 11:57:53 +02:00
|
|
|
path: /etc/restic
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### install logroate
|
|
|
|
|
|
|
|
- name: copy restic_backup.sh
|
|
|
|
become: yes
|
2020-11-21 19:41:19 +01:00
|
|
|
ansible.builtin.template:
|
2020-08-18 11:57:53 +02:00
|
|
|
src: "restic_backup.sh"
|
|
|
|
dest: "/usr/local/bin/restic_backup.sh"
|
|
|
|
mode: a+x
|
|
|
|
- name: copy exclude.txt
|
|
|
|
become: yes
|
2020-11-21 19:41:19 +01:00
|
|
|
ansible.builtin.template:
|
2020-08-18 11:57:53 +02:00
|
|
|
src: "exclude.txt"
|
|
|
|
dest: "/etc/restic/exclude.txt"
|
|
|
|
|
|
|
|
- name: Create restic log
|
|
|
|
become: true
|
2020-11-21 19:41:19 +01:00
|
|
|
ansible.builtin.file:
|
2020-08-18 11:57:53 +02:00
|
|
|
path: /var/log/restic.log
|
|
|
|
state: touch
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
access_time: preserve
|
|
|
|
modification_time: preserve
|
|
|
|
|
2021-03-13 22:11:57 +01:00
|
|
|
- name: copy logrotate config
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: logrotate_chrony
|
|
|
|
dest: /etc/logrotate.d/chrony
|
2020-08-18 11:57:53 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# SIEHE: http://dokuwiki2.grote.lan/artikel/technik/linux_-_scripte_-_speicherorte
|