Setup backup server configuration for backup replication.
This commit is contained in:
1 parent
768da9cf45
commit
3508f62085
10 files changed
+560
-21
No files matched your search
+18
-2
@@ -25,9 +25,25 @@
|
||||
name: "{{ backup_owner }}"
|
||||
group: "{{ backup_group }}"
|
||||
comment: backup user
|
||||
shell: /sbin/nologin
|
||||
shell: /bin/bash
|
||||
home: "{{ backup_home }}"
|
||||
|
||||
- name: Setup backup storage password
|
||||
copy:
|
||||
content: "{{ backup_storage_key }}"
|
||||
dest: "{{ backup_home }}/.borg.key"
|
||||
owner: "{{ backup_owner }}"
|
||||
group: "{{ backup_group }}"
|
||||
mode: "0600"
|
||||
|
||||
- name: Setup ssh folder
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ backup_home }}/.ssh"
|
||||
owner: "{{ backup_owner }}"
|
||||
group: "{{ backup_group }}"
|
||||
mode: "0700"
|
||||
|
||||
- name: setup backup storage
|
||||
file:
|
||||
state: directory
|
||||
@@ -36,7 +52,7 @@
|
||||
group: "{{ backup_group }}"
|
||||
mode: "0777"
|
||||
|
||||
- include_tasks: master.yml
|
||||
- include_tasks: server.yml
|
||||
when: not backup_client
|
||||
|
||||
- include_tasks: client.yml
|
||||
|
||||
Reference in new issue
Block a user