Skip to content
Snippets Groups Projects
Commit 7cb684a2 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "use include_tasks and import_playbook instead of include"

parents 3766b335 8be12b71
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 36 deletions
--- ---
- include: dell-compute-node-inventory.yml - import_playbook: dell-compute-node-inventory.yml
- name: Ensure baremetal compute nodes are PXE booted - name: Ensure baremetal compute nodes are PXE booted
hosts: baremetal-compute hosts: baremetal-compute
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Set the boot mode (BIOS, UEFI) of Dell baremetal compute nodes. # Set the boot mode (BIOS, UEFI) of Dell baremetal compute nodes.
# Add Dell baremetal compute nodes to the Ansible inventory. # Add Dell baremetal compute nodes to the Ansible inventory.
- include: dell-compute-node-inventory.yml - import_playbook: dell-compute-node-inventory.yml
- name: Ensure Dell baremetal compute nodes boot mode is set - name: Ensure Dell baremetal compute nodes boot mode is set
hosts: baremetal-compute hosts: baremetal-compute
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Configure the Dell baremetal compute nodes to PXE boot. # Configure the Dell baremetal compute nodes to PXE boot.
# Add Dell baremetal compute nodes to the Ansible inventory. # Add Dell baremetal compute nodes to the Ansible inventory.
- include: dell-compute-node-inventory.yml - import_playbook: dell-compute-node-inventory.yml
- name: Ensure Dell baremetal compute nodes are PXE booted - name: Ensure Dell baremetal compute nodes are PXE booted
hosts: baremetal-compute hosts: baremetal-compute
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
# Iterate over each switch port with an iDRAC attached in turn. # Iterate over each switch port with an iDRAC attached in turn.
- name: Ensure iDRACs are (sequentially) bootstrapped - name: Ensure iDRACs are (sequentially) bootstrapped
include: idrac-bootstrap-one.yml include_tasks: idrac-bootstrap-one.yml
vars: vars:
dell_switch_type: "{{ switch_type }}" dell_switch_type: "{{ switch_type }}"
dell_switch_provider: "{{ switch_dellos_provider }}" dell_switch_provider: "{{ switch_dellos_provider }}"
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
# Variables: # Variables:
# action: One of deploy, destroy, pull, reconfigure, upgrade # action: One of deploy, destroy, pull, reconfigure, upgrade
- include: docker-registry.yml - import_playbook: docker-registry.yml
- include: inspection-store.yml - import_playbook: inspection-store.yml
- include: opensm.yml - import_playbook: opensm.yml
- include: node-exporter.yml - import_playbook: node-exporter.yml
- include: cadvisor.yml - import_playbook: cadvisor.yml
--- ---
- include: "{{ cadvisor_action }}.yml" - include_tasks: "{{ cadvisor_action }}.yml"
--- ---
- include: pull.yml - include_tasks: pull.yml
- include: deploy.yml - include_tasks: deploy.yml
--- ---
- include: "{{ docker_registry_action }}.yml" - include_tasks: "{{ docker_registry_action }}.yml"
--- ---
- include: pull.yml - include_tasks: pull.yml
- include: deploy.yml - include_tasks: deploy.yml
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
- "'Data loop file' in docker_info.stdout or docker_storage_driver not in docker_info.stdout" - "'Data loop file' in docker_info.stdout or docker_storage_driver not in docker_info.stdout"
- "'Images: 0' not in docker_info.stdout or 'Containers: 0' not in docker_info.stdout" - "'Images: 0' not in docker_info.stdout or 'Containers: 0' not in docker_info.stdout"
- include: storage.yml - include_tasks: storage.yml
when: "'Data loop file' in docker_info.stdout or docker_storage_driver not in docker_info.stdout" when: "'Data loop file' in docker_info.stdout or docker_storage_driver not in docker_info.stdout"
- include: config.yml - include_tasks: config.yml
--- ---
- include: config.yml - include_tasks: config.yml
- include: start.yml - include_tasks: start.yml
--- ---
- include: "{{ inspection_store_action }}.yml" - include_tasks: "{{ inspection_store_action }}.yml"
--- ---
- include: deploy.yml - include_tasks: deploy.yml
--- ---
- include: pull.yml - include_tasks: pull.yml
- include: deploy.yml - include_tasks: deploy.yml
--- ---
- include: install.yml # NOTE: Use import_tasks here, since tags are not applied to tasks included via
# include_tasks.
- import_tasks: install.yml
tags: tags:
- install - install
- include: config.yml - import_tasks: config.yml
tags: tags:
- config - config
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
# - Pass through variables # - Pass through variables
# - Nova ironic compute host # - Nova ironic compute host
- include: test-defaults.yml - import_playbook: test-defaults.yml
- include: test-extras.yml - import_playbook: test-extras.yml
- include: test-requirements.yml - import_playbook: test-requirements.yml
- hosts: localhost - hosts: localhost
connection: local connection: local
......
--- ---
- include: config.yml # NOTE: Use import_tasks here, since tags are not applied to tasks included via
# include_tasks.
- import_tasks: config.yml
tags: tags:
- config - config
--- ---
- include: test-no-journal.yml - import_playbook: test-no-journal.yml
- include: test-journal.yml - import_playbook: test-journal.yml
- include: test-bootstrapped-journal.yml - import_playbook: test-bootstrapped-journal.yml
- include: test-data-journal.yml - import_playbook: test-data-journal.yml
- hosts: localhost - hosts: localhost
connection: local connection: local
......
--- ---
- include: config.yml # NOTE: Use import_tasks here, since tags are not applied to tasks included via
# include_tasks.
- import_tasks: config.yml
tags: tags:
- config - config
--- ---
- include: install.yml # NOTE: Use import_tasks here, since tags are not applied to tasks included via
# include_tasks.
- import_tasks: install.yml
tags: tags:
- install - install
- include: config.yml - import_tasks: config.yml
tags: tags:
- config - config
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment