Skip to content

Commit

Permalink
Fix the linters error and add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
larainema committed Nov 18, 2024
1 parent fae8ffb commit e4cb1f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/lvm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@
# under the License.

- name: Discover lvm devices
shell: >-
ansible.builtin.shell: |
set -o pipefail
/sbin/pvdisplay | awk '/PV\ Name/ {print $3}' | sed 's/\/dev\///g'
register: lvm_devices
changed_when: lvm_devices.rc != 0
failed_when: false

- name: Ensure "/etc/lvm" directory
file:
ansible.builtin.file:
state: "directory"
path: "/etc/lvm"
mode: "0755"
when: lvm_devices.rc == 0

- name: Drop lvm Config
template:
ansible.builtin.template:
src: "lvm.conf.j2"
dest: "/etc/lvm/lvm.conf"
owner: "root"
Expand Down

0 comments on commit e4cb1f3

Please sign in to comment.