Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions deploy-edpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
file: "ci/playbooks/tasks/inherit_parent_scenario.yml"

- name: Run bootstrap
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: bootstrap.yml

- name: Run pre_infra hooks
vars:
step: pre_infra
ansible.builtin.import_role:
ansible.builtin.include_role:
name: run_hook
tags:
- infra
Expand All @@ -37,7 +37,7 @@
- name: Run prepare host virtualization
vars:
step: pre_infra
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: host_virtualization.yml
tags:
Expand All @@ -49,37 +49,38 @@
- name: Prepare the platform
vars:
step: pre_infra
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: infra.yml
tags:
- infra

- name: Build package playbook
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: build_packages.yml
tags:
- build-packages

- name: Build container playbook
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: build_containers.yml
tags:
- build-containers

- name: Build operators playbook
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: build_operators.yml
apply:
environment:
PATH: "{{ cifmw_path }}"
tags:
- build-operators
environment:
PATH: "{{ cifmw_path }}"

- name: Deploy EDPM
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: deploy_edpm.yml
tags:
Expand All @@ -95,7 +96,7 @@
nftables_conf: /etc/sysconfig/nftables.conf
when:
- cifmw_edpm_deploy_nfs | default(false) | bool
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_nfs

- name: Clear ceph target hosts facts to force refreshing in HCI deployments
Expand Down Expand Up @@ -124,15 +125,15 @@
}}
storage_network_range: 172.18.0.0/24
storage_mgmt_network_range: 172.20.0.0/24
ansible.builtin.import_role:
ansible.builtin.include_role:
name: run_hook

- name: Continue HCI deploy, deploy architecture and validate workflow
hosts: "{{ cifmw_target_host | default('localhost') }}"
gather_facts: false
tasks:
- name: Continue HCI deploy
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: hci_deploy.yml
tags:
Expand All @@ -142,7 +143,7 @@
when: cifmw_architecture_scenario is defined
vars:
step: pre_deploy
ansible.builtin.import_role:
ansible.builtin.include_role:
name: run_hook

# FIXME:Earlier, where we were using import_playbook, the cifmw_architecture_scenario
Expand All @@ -161,11 +162,15 @@

- name: Run cifmw_setup deploy_architecture
when: cifmw_architecture_scenario is defined
ansible.builtin.import_role:
ansible.builtin.include_role:
name: cifmw_setup
tasks_from: deploy_architecture.yml
tags:
- edpm

- name: Print debug message
ansible.builtin.debug:
msg: "Here is a debug message"

- name: Run validations
ansible.builtin.include_role:
Expand Down
Loading