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

Add example of yaml file with --extra-vars #79521

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

mjmayer
Copy link
Contributor

@mjmayer mjmayer commented Dec 2, 2022

SUMMARY

Add example in docs for using a yaml file with --extra-vars. From the docs it is not obvious that when using --extra-vars with a file the filename argument needs to be prefixed with @

This is already documented in the code. https://github.com/ansible/ansible/blob/devel/lib/ansible/cli/arguments/option_helpers.py#L363-L367

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

docs, playbook_variables.rst

@ansibot
Copy link
Contributor

ansibot commented Dec 2, 2022

Thanks for your Ansible docs contribution! We talk about Ansible documentation on matrix at #docs:ansible.im and on libera IRC at #ansible-docs if you ever want to join us and chat about the docs! We meet there on Tuesdays (see the Ansible calendar) and welcome additions to our weekly agenda items - scroll down to find the upcoming agenda and add a comment to put something new on that agenda.

click here for bot help

@ansibot ansibot added affects_2.15 docs This issue/PR relates to or includes documentation. docs_only All changes are to files within the docs/docsite/ directory needs_triage Needs a first human triage before being processed. small_patch labels Dec 2, 2022
@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label Dec 6, 2022
@samccann samccann merged commit aa268b8 into ansible:devel Dec 13, 2022
@samccann
Copy link
Contributor

Thanks @mjmayer for the Ansible docs fix!

samccann pushed a commit to samccann/ansible that referenced this pull request Dec 15, 2022
@ansible ansible locked and limited conversation to collaborators Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.15 docs_only All changes are to files within the docs/docsite/ directory docs This issue/PR relates to or includes documentation. small_patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants