To use those variables, you have to use the templating system of Ansible, which is Jinja.
Since your variable is currently an URL, here would be an example usage:
- ansible.builtin.get_url:
url: "{{ stuff.vendor.url }}"
dest: /tmp/vendor_page_copy
To see the content of the variable, you can:
- use the
debug
module with the var
parameter:
- ansible.builtin.debug:
var: stuff.vendor.url
which outputs something like
ok: [localhost] =>
stuff.vendor.url: https://acme.com
or
- ansible.builtin.debug:
var: stuff
which outputs something like
ok: [localhost] =>
stuff:
vendor:
url: https://acme.com
- use the
debug
module with the msg
parameter, and template the variable:
- ansible.builtin.debug:
msg: "{{ stuff.vendor.url }}"
which outputs something like
ok: [localhost] =>
msg: https://acme.com
The same can be done with msg: "{{ stuff }}"
, as seen above.
- run your playbook with the
-v
option:
ansible-playbook play.yml -v
which outputs something like
ok: [localhost] => changed=false
ansible_facts:
stuff:
vendor:
url: https://acme.com
ansible_included_var_files:
- /usr/local/ansible/stuff.yml
Note: your own output would seem really different that was is displayed here, and be in JSON, in a hard to read one liner. If this is the case, you would greatly benefit from using the YAML callback.