Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/lvg/tasks/setup_missing_pv.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: "Prepare VG for missing PV"
7 lvg:
8 vg: vg_with_missing_pv
9 pvs:
10 - "{{ loop_device3 }}"
11 - "{{ loop_device4 }}"
12
13 - name: Save loop_device4 pvid
14 shell: "pvs -ouuid --noheadings {{ loop_device4 }} | xargs -n1 | tr -d '-'"
15 register: loop_device4_pvid_result
16
17 - name: Detach loop_device4
18 command: "losetup -d {{ loop_device4 }}"