Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] Too many "Read vars_file '{{ testing_vars_file | default('../vars/test.yml') }}'" #409

Closed
keirazhang opened this issue Jan 13, 2023 · 0 comments · Fixed by #447
Assignees
Milestone

Comments

@keirazhang
Copy link
Contributor

keirazhang commented Jan 13, 2023

SUMMARY

We need to find some way to reduce multiple times reading vars file:

Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'
Read vars_file '{{ testing_vars_file | default('../../vars/test.yml') }}'

We can put below task into main.yml to see whether it can improve.
ansible.builtin.include_vars:
file: "{{ testing_vars_file | default('../vars/test.yml') }}"

ISSUE TYPE
  • Feature Idea
ENVIRONMENT / OS

Linux/Windows

ADDITIONAL INFORMATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants