Append list variable to another list in Ansible
问题 is it possible to append a variable list to a static list in ansible? I can define the whole list as a variable: my_list: - 1 - 2 - 3 and then use it in a playbook as something: {{my_list}} But I cannot seem to find how to do this (pseudo code): list_to_append: - 3 - 4 and then in the playbook: something: - 1 - 2 - {{append: list_to_append}} If that is in fact impossible, what would you suggest for my use case? I have a list of items in a parameter, but some of them are optional and should be