2020-08-30 16:54:26 +02:00
|
|
|
---
|
|
|
|
{%- from "gobackup/map.jinja" import gobackup with context %}
|
|
|
|
gobackup-bin:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ gobackup.install_dir }}/gobackup
|
|
|
|
- source: {{ gobackup.fetch_url }}/gobackup-{{ gobackup.os }}-{{ gobackup.arch }}
|
|
|
|
- user: root
|
|
|
|
- group: root
|
2020-09-03 00:23:04 +02:00
|
|
|
- mode: 0755
|
2020-08-30 16:54:26 +02:00
|
|
|
- skip_verify: True
|
2020-08-30 17:53:35 +02:00
|
|
|
- if_missing: {{ gobackup.install_dir }}/gobackup
|
|
|
|
|
|
|
|
gobackup-backups-path:
|
|
|
|
file.directory:
|
|
|
|
- name: {{ gobackup.config.models.gobackup.store_with.path }}
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 700
|