ansible-role--duplicity/tasks/config_duplicity.yml

46 lines
985 B
YAML
Raw Normal View History

2024-07-12 12:36:06 +00:00
---
##
## Config: Duplicity Part
##
- name: Create duplicity config directory
file:
path: /etc/glenux.duplicity
state: directory
mode: '0700'
owner: root
group: root
- name: Install duplicity config file with variables
template:
src: templates/etc.glenux.duplicity.duplicity.conf.j2
dest: /etc/glenux.duplicity/duplicity.conf
mode: "0600"
owner: root
group: root
- name: Install duplicity config file with backends
template:
src: templates/etc.glenux.duplicity.backends.json.j2
dest: /etc/glenux.duplicity/backends.json
mode: "0600"
owner: root
group: root
- name: Install duplicity helper script for dokku
copy:
src: files/duplicity_helper_for_dokku
dest: /usr/sbin/duplicity_helper_for_dokku
mode: "0755"
owner: root
group: root
- name: Create duplicity work directory
file:
path: "{{duplicity_work_directory}}"
state: directory
mode: '0700'
owner: root
group: root
#