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

@@ -1,10 +1,10 @@
---
- include: check-certs.yml
- import_tasks: check-certs.yml
tags:
- k8s-secrets
- facts
- include: check-tokens.yml
- import_tasks: check-tokens.yml
tags:
- k8s-secrets
- facts
@@ -69,11 +69,11 @@
delegate_to: "{{groups['kube-master'][0]}}"
when: gen_tokens|default(false)
- include: "gen_certs_{{ cert_management }}.yml"
- include_tasks: "gen_certs_{{ cert_management }}.yml"
tags:
- k8s-secrets
- include: upd_ca_trust.yml
- import_tasks: upd_ca_trust.yml
tags:
- k8s-secrets
@@ -111,6 +111,6 @@
kube_proxy_cert_serial: "{{ node_certificate_serials.results[1].stdout|default() }}"
when: inventory_hostname in groups['k8s-cluster']
- include: gen_tokens.yml
- import_tasks: gen_tokens.yml
tags:
- k8s-secrets