This commit is contained in:
2023-04-28 04:25:32 -04:00
parent 81d2ea447a
commit ab0401f27b
34 changed files with 144 additions and 144 deletions

View File

@@ -13,12 +13,12 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
- name: Install rsnapshot
apt:
ansible.builtin.apt:
name: rsnapshot
state: present
- name: Create rsnapshot system directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
@@ -26,13 +26,13 @@
- "{{ rsnapshot_logdir }}"
- name: Create snapshot_root directories
file:
ansible.builtin.file:
path: "{{ item.root | default(rsnapshot_root) }}"
state: directory
loop: "{{ rsnapshot }}"
- name: Install rsnapshot configuration
template:
ansible.builtin.template:
src: rsnapshot.conf.j2
dest: "{{ rsnapshot_confdir }}/{{ item.name }}.conf"
loop: "{{ rsnapshot }}"
@@ -53,7 +53,7 @@
- cron
- name: Install rsnapshot report script
template:
ansible.builtin.template:
src: rsnapshot-report.sh.j2
dest: /usr/local/bin/rsnapshot-report
mode: '0750'