From 0cc9990717fc7fa59cfcd635605fb581020e53d1 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 15 Nov 2023 16:57:01 +0000 Subject: [PATCH] fact gathering: Remove gathering of package facts These were added in I20e65a6771ebeee462a3aaaabaa5f0596bdd0581 but not used in the final version of the changeset. Change-Id: I4fca47e16e87db8b655ff5571fba568ef4edb95c (cherry picked from commit 8709db2a257849a34c745b68282ebc5907d39e00) --- ansible/gather-facts.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ansible/gather-facts.yml b/ansible/gather-facts.yml index b50389660a..f5247a6ab9 100644 --- a/ansible/gather-facts.yml +++ b/ansible/gather-facts.yml @@ -15,13 +15,6 @@ when: - not ansible_facts - - name: Gather package facts - package_facts: - when: - - "'packages' not in ansible_facts" - - kolla_action is defined - - kolla_action == "precheck" - - name: Group hosts to determine when using --limit group_by: key: "all_using_limit_{{ (ansible_play_batch | length) != (groups['all'] | length) }}" @@ -56,14 +49,4 @@ # We gathered facts for all hosts in the batch during the first play. when: - not hostvars[item].ansible_facts - - - name: Gather package facts - package_facts: - delegate_facts: True - delegate_to: "{{ item }}" - with_items: "{{ delegate_hosts }}" - when: - - "'packages' not in hostvars[item].ansible_facts" - - kolla_action is defined - - "kolla_action == 'precheck'" tags: always