mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +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,5 +1,5 @@
|
||||
---
|
||||
- include: verify-settings.yml
|
||||
- import_tasks: verify-settings.yml
|
||||
tags:
|
||||
- asserts
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
tags:
|
||||
- bootstrap-os
|
||||
|
||||
- include: set_facts.yml
|
||||
- import_tasks: set_facts.yml
|
||||
tags:
|
||||
- facts
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
- cloud-provider
|
||||
- facts
|
||||
|
||||
- include: "{{ cloud_provider }}-credential-check.yml"
|
||||
- include_tasks: "{{ cloud_provider }}-credential-check.yml"
|
||||
when:
|
||||
- cloud_provider is defined
|
||||
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ]
|
||||
@@ -99,7 +99,7 @@
|
||||
- contiv
|
||||
- bootstrap-os
|
||||
|
||||
- include: resolvconf.yml
|
||||
- import_tasks: resolvconf.yml
|
||||
when:
|
||||
- dns_mode != 'none'
|
||||
- resolvconf_mode == 'host_resolvconf'
|
||||
@@ -276,12 +276,12 @@
|
||||
tags:
|
||||
- cloud-provider
|
||||
|
||||
- include: etchosts.yml
|
||||
- import_tasks: etchosts.yml
|
||||
tags:
|
||||
- bootstrap-os
|
||||
- etchosts
|
||||
|
||||
- include: dhclient-hooks.yml
|
||||
- import_tasks: dhclient-hooks.yml
|
||||
when:
|
||||
- dns_mode != 'none'
|
||||
- resolvconf_mode == 'host_resolvconf'
|
||||
@@ -290,7 +290,7 @@
|
||||
- bootstrap-os
|
||||
- resolvconf
|
||||
|
||||
- include: dhclient-hooks-undo.yml
|
||||
- import_tasks: dhclient-hooks-undo.yml
|
||||
when:
|
||||
- dns_mode != 'none'
|
||||
- resolvconf_mode != 'host_resolvconf'
|
||||
@@ -306,7 +306,7 @@
|
||||
tags:
|
||||
- bootstrap-os
|
||||
|
||||
- include: growpart-azure-centos-7.yml
|
||||
- import_tasks: growpart-azure-centos-7.yml
|
||||
when:
|
||||
- azure_check.stat.exists
|
||||
- ansible_distribution in ["CentOS","RedHat"]
|
||||
|
||||
Reference in New Issue
Block a user