Skip to content

Commit

Permalink
[ci_nmstate] Conditionally call ci_nmstate
Browse files Browse the repository at this point in the history
  • Loading branch information
pablintino authored and openshift-merge-bot[bot] committed Oct 22, 2024
1 parent 71e5c55 commit 87f6807
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions playbooks/02-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
ansible.builtin.include_vars:
dir: "{{ cifmw_basedir }}/artifacts/parameters"

- name: Load Networking Environment Definition
vars:
cifmw_networking_mapper_assert_env_load: false
ansible.builtin.import_role:
name: networking_mapper
tasks_from: load_env_definition.yml

- name: Deploy OCP using Hive
when:
- cifmw_use_hive is defined
Expand Down Expand Up @@ -86,6 +93,13 @@
ansible.builtin.include_role:
name: cert_manager

- name: Configure hosts networking using nmstate
when:
- cifmw_config_nmstate is defined
- cifmw_config_nmstate | bool
ansible.builtin.include_role:
name: ci_nmstate

- name: Deploy Sushy Emulator and configure controller as hypervisor
when:
- cifmw_enable_virtual_baremetal_support | default(false) | bool
Expand All @@ -102,13 +116,6 @@
ansible.builtin.include_role:
name: libvirt_manager

- name: Configure hosts networking using nmstate
when:
- cifmw_config_nmstate is defined
- cifmw_config_nmstate | bool
ansible.builtin.include_role:
name: ci_nmstate

- name: Prepare container package builder
when:
- cifmw_pkg_build_list is defined
Expand Down

0 comments on commit 87f6807

Please sign in to comment.