mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Use include/import tasks (#2192)
import_tasks will consume far less memory, so it should be used whenever it is compatible.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: container_download | Make download decision if pull is required by tag or sha256
|
||||
include: set_docker_image_facts.yml
|
||||
include_tasks: set_docker_image_facts.yml
|
||||
delegate_to: "{{ download_delegate if download_run_once or omit }}"
|
||||
delegate_facts: no
|
||||
run_once: "{{ download_run_once }}"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
- include: download_prep.yml
|
||||
- include_tasks: download_prep.yml
|
||||
when:
|
||||
- not skip_downloads|default(false)
|
||||
|
||||
- name: "Download items"
|
||||
include: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
|
||||
include_tasks: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
|
||||
vars:
|
||||
download: "{{ download_defaults | combine(item.value) }}"
|
||||
with_dict: "{{ downloads }}"
|
||||
@@ -13,7 +13,7 @@
|
||||
- item.value.enabled
|
||||
|
||||
- name: "Sync container"
|
||||
include: sync_container.yml
|
||||
include_tasks: sync_container.yml
|
||||
vars:
|
||||
download: "{{ download_defaults | combine(item.value) }}"
|
||||
with_dict: "{{ downloads }}"
|
||||
|
||||
Reference in New Issue
Block a user