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

@@ -37,7 +37,7 @@
tags:
- kubeadm
- include: "install_{{ kubelet_deployment_type }}.yml"
- include_tasks: "install_{{ kubelet_deployment_type }}.yml"
- name: install | Write kubelet systemd init file
template:

View File

@@ -1,9 +1,9 @@
---
- include: facts.yml
- import_tasks: facts.yml
tags:
- facts
- include: pre_upgrade.yml
- import_tasks: pre_upgrade.yml
tags:
- kubelet
@@ -13,11 +13,11 @@
state: directory
mode: 0755
- include: install.yml
- import_tasks: install.yml
tags:
- kubelet
- include: nginx-proxy.yml
- import_tasks: nginx-proxy.yml
when: is_kube_master == false and loadbalancer_apiserver_localhost
tags:
- nginx