Skip to content

Commit

Permalink
Revert "Assert that "get required packages" has not changed mounts"
Browse files Browse the repository at this point in the history
This reverts commit afd45f8.
  • Loading branch information
dwlehman committed Oct 24, 2019
1 parent db1adcc commit d873860
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions tasks/main-blivet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@
- debug:
var: _storage_volumes

- name: load mount facts
setup:
gather_subset: '!all,!min,mounts'
register: __storage_mounts_before_packages

# - name: show mounts before get required packages
# debug:
# var: __storage_mounts_before_packages

- name: get required packages
blivet:
pools: "{{ _storage_pools }}"
Expand All @@ -103,30 +94,6 @@
packages_only: true
register: package_info

- name: load mount facts
setup:
gather_subset: '!all,!min,mounts'
register: __storage_mounts_after_packages

- name: detect mount alteration by 'get required packages'
block:
- name: show mounts before manage the pools and volumes
debug:
var: __storage_mounts_before_packages.ansible_facts.ansible_mounts

- name: show mounts after manage the pools and volumes
debug:
var: __storage_mounts_after_packages.ansible_facts.ansible_mounts

- name: fail if mounts changed
fail:
msg: "get required packages changed mounts. Changed status is
{{ package_info.changed }}"
when:
- __storage_mounts_before_packages.ansible_facts.ansible_mounts |
count !=
__storage_mounts_after_packages.ansible_facts.ansible_mounts | count

- name: make sure required packages are installed
package:
name: "{{ package_info.packages }}"
Expand Down

0 comments on commit d873860

Please sign in to comment.