forked from linux-system-roles/snapshot
-
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.
feat: add support for snapshot sets of volumes that are not in the sa…
…me VG Reason: MVP requirements call for managment of snapshots as sets Result: Users can manage sets of snapshots Signed-off-by: Todd Gill <[email protected]> Co-authored-by: Richard Megginson <[email protected]>
- Loading branch information
Showing
29 changed files
with
1,735 additions
and
645 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,6 @@ | ||
--- | ||
- name: Check snapshots will work or are completed (verify) | ||
ansible.builtin.script: "{{ __snapshot_cmd }}" | ||
args: | ||
executable: "{{ __snapshot_python }}" | ||
register: snapshot_cmd |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Remove snapshots from previous runs | ||
ansible.builtin.script: >- | ||
snapshot.py clean -a -p {{ snapshot_lvm_prefix | quote }} | ||
-s {{ snapshot_lvm_suffix | quote }} | ||
ansible.builtin.script: "{{ __snapshot_cmd }}" | ||
args: | ||
executable: "{{ __snapshot_python }}" | ||
register: snapshot_cmd | ||
failed_when: | ||
snapshot_cmd.rc != 0 |
Oops, something went wrong.