summaryrefslogtreecommitdiff
path: root/test/integration/targets/lvg/tasks/test_indempotency.yml
blob: 5007e56a5b447cbac9b6f56b6c3d49a2994a7bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Create volume group on disk device
  lvg:
    vg: testvg
    pvs: "{{ loop_device1.stdout }}"

- name: Create the volume group again to verify idempotence
  lvg:
    vg: testvg
    pvs: "{{ loop_device1.stdout }}"
  register: repeat_vg_create

- name: Do all assertions to verify expected results
  assert:
    that:
      - repeat_vg_create is not changed