--- - hosts: localhost vars: secret: "{{ lookup('rbw', 'Work Laptop') }}" tasks: - debug: msg: the value of the secret is {{ secret.data.public_key }}