From d873860ed9c130ef6b4e0cbaaba864545ef5091b Mon Sep 17 00:00:00 2001 From: David Lehman Date: Thu, 24 Oct 2019 10:38:34 -0400 Subject: [PATCH] Revert "Assert that "get required packages" has not changed mounts" This reverts commit afd45f8b79d89626dac68e829c4a6ab3a2a98e4d. --- tasks/main-blivet.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/tasks/main-blivet.yml b/tasks/main-blivet.yml index 65b8580b..2929238b 100644 --- a/tasks/main-blivet.yml +++ b/tasks/main-blivet.yml @@ -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 }}" @@ -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 }}"