mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-18 09:27:34 -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:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- include: ../shared/pki_mount.yml
|
||||
- include_tasks: ../shared/pki_mount.yml
|
||||
vars:
|
||||
pki_mount_path: auth-pki
|
||||
pki_mount_options:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- include: ../shared/pki_mount.yml
|
||||
- include_tasks: ../shared/pki_mount.yml
|
||||
vars:
|
||||
pki_mount_path: "{{ create_mount_path }}"
|
||||
pki_mount_options:
|
||||
@@ -8,7 +8,7 @@
|
||||
max_lease_ttl: "{{ create_mount_max_lease_ttl }}"
|
||||
description: "{{ create_mount_description }}"
|
||||
|
||||
- include: ../shared/config_ca.yml
|
||||
- include_tasks: ../shared/config_ca.yml
|
||||
vars:
|
||||
config_ca_ca_pem: "{{ create_mount_cert_dir }}/ca.pem"
|
||||
config_ca_ca_key: "{{ create_mount_cert_dir }}/ca-key.pem"
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
## Userpass based auth method
|
||||
|
||||
- include: gen_userpass.yml
|
||||
- include_tasks: gen_userpass.yml
|
||||
vars:
|
||||
gen_userpass_password: "{{ create_role_password }}"
|
||||
gen_userpass_policies: "{{ create_role_name }}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- include: sync_file.yml
|
||||
- include_tasks: sync_file.yml
|
||||
vars:
|
||||
sync_file: "auth-ca.pem"
|
||||
sync_file_dir: "{{ vault_cert_dir }}"
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
set_fact:
|
||||
sync_file_results: "{{ sync_file_results|default([]) + [sync_file_result] }}"
|
||||
|
||||
- include: sync.yml
|
||||
- include_tasks: sync.yml
|
||||
when: not (sync_file_no_srcs or sync_file_unneeded)
|
||||
|
||||
- name: "Unset local vars to avoid variable bleed into next iteration"
|
||||
|
||||
Reference in New Issue
Block a user