diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:23:43 -0500 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:52:13 -0500 |
commit | 0261e875679f1bf63c8d689da7fc7e014597885d (patch) | |
tree | 3f19cd74a0c1070944f75437f30b098d6ef2ffcb /roles/archive_job/tasks | |
download | selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip |
initial commit
Diffstat (limited to 'roles/archive_job/tasks')
-rw-r--r-- | roles/archive_job/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/archive_job/tasks/main.yml b/roles/archive_job/tasks/main.yml new file mode 100644 index 0000000..83807b9 --- /dev/null +++ b/roles/archive_job/tasks/main.yml @@ -0,0 +1,19 @@ +- name: create archive client directory + file: + path: '{{ archive_path }}/{{ archive_name }}' + state: directory + owner: root + group: '{{ archive_group | default(archive_name) }}' + mode: 0770 + +- name: create systemd timer + include_role: + name: systemd_timer + vars: + timer_name: 'archive-{{ archive_name }}' + timer_description: '{{ archive_description }}' + timer_on_calendar: '{{ archive_on_calendar }}' + timer_user: '{{ archive_user }}' + timer_chdir: '{{ archive_path }}/{{ archive_name }}' + timer_shell: '{{ archive_shell is defined }}' + timer_exec: '{{ archive_shell | default(archive_command) }}' |