What is the expected behaviour if a file lookup fails? I have an authorized_key task:
- name: Key for ansible user
authorized_key: user=ansible key=“{{ lookup(‘file’, ‘./ansible_key.pub’) }}”
but I moved it into a different folder, and the path is no longer correct. I would expect this to explode, but instead I got green (unchanged).
The source suggests there should be an error (I’ve never seen a for…else before, you learn something new every day!), but it seems to be getting swallowed somewhere.