--- - name: Test secrets.yml hosts: localhost tasks: - name: Import variables from Ansible vault ansible.builtin.include_vars: secrets.yml - name: debug secrets.yml" ansible.builtin.debug: msg="The value of the secret is {{ test_password }}"