I currently have a YAML file which defines several variables:
variable_a: some_value_1
variable_b: some_value_2
variable_c: some_value_3
Is there any ad hoc command I can run from the terminal that will allow me to selectively print the value of each of these variables? E.g.
ansible --file=my_file.yml --print-var=variable_a
would print
some_value_1
I need to access these variables inside a bash script, so I can't just use include_vars.