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:
Matthew Mosesohn
2018-01-29 14:37:48 +03:00
committed by GitHub
parent f4180503c8
commit dc6a17e092
43 changed files with 117 additions and 117 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -12,4 +12,4 @@
delegate_to: "{{ groups['kube-master'][0] }}"
run_once: true
- include: configure.yml
- import_tasks: configure.yml