mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-07 01:17:39 -02:30
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:
@@ -91,13 +91,13 @@
|
||||
- dnsmasq
|
||||
|
||||
- name: Kubernetes Apps | Netchecker
|
||||
include: tasks/netchecker.yml
|
||||
import_tasks: tasks/netchecker.yml
|
||||
when: deploy_netchecker
|
||||
tags:
|
||||
- netchecker
|
||||
|
||||
- name: Kubernetes Apps | Dashboard
|
||||
include: tasks/dashboard.yml
|
||||
import_tasks: tasks/dashboard.yml
|
||||
when: dashboard_enabled
|
||||
tags:
|
||||
- dashboard
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
file: path={{ helm_home_dir }} state=directory
|
||||
|
||||
- name: Helm | Set up helm launcher
|
||||
include: "install_{{ helm_deployment_type }}.yml"
|
||||
include_tasks: "install_{{ helm_deployment_type }}.yml"
|
||||
|
||||
- name: Helm | Lay Down Helm Manifests (RBAC)
|
||||
template:
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||
run_once: true
|
||||
|
||||
- include: configure.yml
|
||||
- import_tasks: configure.yml
|
||||
|
||||
Reference in New Issue
Block a user