I\'m having difficulty getting Ansible to work with YAML merge keys and node anchors and wondering whether these can work when they are in different files and what might be
Although the merge key document doesn't say anything about multiple documents
But the YAML specification is very explicit about the use of aliases:
It is an error for an alias node to use an anchor that does not previously occur in the document
So an alias is invalid if it is in the same file, but referencing a different document, and you try to reference an anchor in a document in a different file, so that is not valid either.