Skip to content
Snippets Groups Projects
Unverified Commit dc6a17e0 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Use include/import tasks (#2192)

import_tasks will consume far less memory, so it should be
used whenever it is compatible.
parent f4180503
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
## Userpass based auth method ## Userpass based auth method
- include: gen_userpass.yml - include_tasks: gen_userpass.yml
vars: vars:
gen_userpass_password: "{{ create_role_password }}" gen_userpass_password: "{{ create_role_password }}"
gen_userpass_policies: "{{ create_role_name }}" gen_userpass_policies: "{{ create_role_name }}"
......
--- ---
- include: sync_file.yml - include_tasks: sync_file.yml
vars: vars:
sync_file: "auth-ca.pem" sync_file: "auth-ca.pem"
sync_file_dir: "{{ vault_cert_dir }}" sync_file_dir: "{{ vault_cert_dir }}"
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
set_fact: set_fact:
sync_file_results: "{{ sync_file_results|default([]) + [sync_file_result] }}" 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) when: not (sync_file_no_srcs or sync_file_unneeded)
- name: "Unset local vars to avoid variable bleed into next iteration" - name: "Unset local vars to avoid variable bleed into next iteration"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment