We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some include-commands need variables. currently it is necessary to use setvar to set global vars that can be used in include-playbooks.
The text was updated successfully, but these errors were encountered:
Is this already implemented? the code below both works, no matter if the variable is defined in the main.yml playbook or in the included playbook?
# main.yml: vars: FOO: "hello world" commands: - type: debug cmd: Loading commands from another file - type: include local_path: do_work.yml - type: debug cmd: Finished run from another file # do_work.yml: commands: - type: debug cmd: $FOO
# main.yml: commands: - type: debug cmd: Loading commands from another file - type: include local_path: do_work.yml - type: debug cmd: Finished run from another file # do_work.yml: vars: FOO: "hello world" commands: - type: debug cmd: $FOO
Sorry, something went wrong.
We need to brainstorm about that a little about the scope of variables.
whotwagner
No branches or pull requests
Some include-commands need variables. currently it is necessary to use setvar to set global vars that can be used in include-playbooks.
The text was updated successfully, but these errors were encountered: