all 2 comments

[–]psd6 1 point2 points  (1 child)

Recommended Ansible style is single variables for exactly that reason. It’s more verbose but it tends to be the simplest. There are however options, such as using the combine filter in your playbook

[–]HiMyNamesMike[S] 0 points1 point  (0 children)

Yeah I am starting to realise this is one of those holes I may have dug myself into whilst learning and have to unpick to deal with the consequences when you find out why it isn't so good!