--- # tasks file for generic_test - name: Display message based on prefix variable ansible.builtin.debug: msg: "{{ lookup('vars', my_role ~ '_text') }}"