forked from debops/debops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debops.borgbackup role rebased from Alphix/debops
- This commit is debops#2434 by Alphix - Originally debops#835 by ypid
- Loading branch information
1 parent
904b3ed
commit b6a042f
Showing
27 changed files
with
3,218 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# Copyright (C) 2019-2023 Robin Schneider <[email protected]> | ||
# Copyright (C) 2019-2023 DebOps <https://debops.org/> | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
|
||
- name: Setup backup using borgbackup and borgmatic | ||
collections: [ 'debops.debops', 'debops.roles01', | ||
'debops.roles02', 'debops.roles03' ] | ||
hosts: | ||
- 'debops_service_borgbackup_server' | ||
- 'debops_service_borgbackup_client' | ||
- 'debops_service_borgbackup_controlled_client' | ||
- 'debops_service_borgbackup_controller' | ||
|
||
become: True | ||
|
||
environment: '{{ inventory__environment | d({}) | ||
| combine(inventory__group_environment | d({})) | ||
| combine(inventory__host_environment | d({})) }}' | ||
|
||
roles: | ||
|
||
- role: secret | ||
tags: [ 'role::secret', 'role::borgbackup' ] | ||
|
||
- role: users | ||
tags: [ 'role::users', 'skip::users' ] | ||
users__dependent_accounts: | ||
- '{{ borgbackup__users__dependent_accounts }}' | ||
|
||
- role: authorized_keys | ||
tags: [ 'role::authorized_keys', 'skip::authorized_keys' ] | ||
authorized_keys__dependent_identities: | ||
- '{{ borgbackup__authorized_keys__dependent_identities }}' | ||
|
||
- role: sudo | ||
tags: [ 'role::sudo', 'skip::sudo' ] | ||
sudo__dependent_sudoers: | ||
- '{{ borgbackup__sudo__dependent_sudoers }}' | ||
|
||
- role: borgbackup | ||
tags: [ 'role::borgbackup', 'skip::borgbackup' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
debops.borgbackup - Configure borgbackup to backup the system | ||
|
||
Copyright (C) 2019-2023 Robin Schneider <[email protected]> | ||
Copyright (C) 2023 David Härdeman <[email protected]> | ||
Copyright (C) 2019-2023 DebOps https://debops.org/ | ||
SPDX-License-Identifier: GPL-3.0-only | ||
|
||
This Ansible role is part of DebOps. | ||
|
||
DebOps is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License version 3, as | ||
published by the Free Software Foundation. | ||
|
||
DebOps is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with DebOps. If not, see https://www.gnu.org/licenses/. |
Oops, something went wrong.