blob: 83807b997299040ad8e62641e7d9f44c48599650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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) }}'
|