Passing ansible_user via service catalog item

automate
#1

Hey there,
is there an option to pass the ansible_user variable via service dialog item?
I want to give the user the opportunity to enter the username of his vm on the service dialog to run an ansible playbook.
Many thanks in advance

#2

@moritz_lankes what I did was use the Ansible add_host module (https://docs.ansible.com/ansible/latest/modules/add_host_module.html) and pass in parameters as needed. In your case the ansible_user attribute would set that. I added the host to another group and then added that group as the hosts target later my playbook.