Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create lvm exclude filter #107

Merged
merged 8 commits into from
Sep 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions roles/backend_setup/tasks/lvm_exclude_filter.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
- name: Backup lvm.conf file
copy:
src: /etc/lvm/lvm.conf
dest: /backup

- name: Remove the existing LVM filter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this fail if the pattern is not exist incase of deployment failure in middle before restore?
Should we need to add ignore_error=true ?

shell: >
sed -i /^filter/d /etc/lvm/lvm.conf
Expand Down