mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 21:51:03 +01:00
Implemented directory validator
This commit is contained in:
parent
4778bd9f35
commit
2f7f22dcbc
12
roles/backup-directory-validator/tasks/main.yml
Normal file
12
roles/backup-directory-validator/tasks/main.yml
Normal file
@ -0,0 +1,12 @@
|
||||
- name: pull directory-validator.git
|
||||
git:
|
||||
repo: "https://github.com/kevinveenbirkenbach/directory-validator.git"
|
||||
dest: "{{backup_directory_validator_folder}}"
|
||||
update: yes
|
||||
ignore_errors: true
|
||||
when: run_once_backup_directory_validator is not defined
|
||||
|
||||
- name: run the backup_directory_validator tasks once
|
||||
set_fact:
|
||||
run_once_backup_directory_validator: true
|
||||
when: run_once_backup_directory_validator is not defined
|
1
roles/backup-directory-validator/vars/main.yml
Normal file
1
roles/backup-directory-validator/vars/main.yml
Normal file
@ -0,0 +1 @@
|
||||
backup_directory_validator_folder: "{{path_administrator_scripts}}directory-validator/"
|
@ -4,3 +4,4 @@ dependencies:
|
||||
- systemd-notifier
|
||||
- cleanup-failed-docker-backups
|
||||
- system-maintenance-lock
|
||||
- backup-directory-validator
|
@ -2,3 +2,4 @@ dependencies:
|
||||
- git
|
||||
- systemd-notifier
|
||||
- system-maintenance-lock
|
||||
- backup-directory-validator
|
||||
|
Loading…
Reference in New Issue
Block a user