Skip to content

Commit

Permalink
Only gather required ansible facts
Browse files Browse the repository at this point in the history
This would ensure we can test the roles as expected
with `gather_facts: false`.

Signed-off-by: rabi <ramishra@redhat.com>
  • Loading branch information
rabi authored and openshift-merge-bot[bot] committed Sep 27, 2024
1 parent 2520f74 commit d14df71
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ci/playbooks/molecule-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
---
- name: "Run ci/playbooks/molecule-test.yml"
hosts: "{{ cifmw_zuul_target_host | default('controller') }}"
gather_facts: true
gather_facts: false
tasks:
- name: Gather required facts
ansible.builtin.setup:
gather_subset:
- "!all"
- "!min"
- "user_dir"
- "env"

- name: Load environment var if instructed to
when:
- cifmw_reproducer_molecule_env_file is defined
Expand Down

0 comments on commit d14df71

Please sign in to comment.