Ansible templating with dictionaries unable to find the key
I’m using following code: – name: Find cert file ansible.builtin.find: file_type: file paths: /etc/ilmaotus patterns: ‘*_X509.pem’ register: cert_files – name: Set cert based facts ansible.builtin.set_fact: device_id: "{{ cert_files[‘files’] | first | attr(‘path’) }}" I’m getting the file names (should always be only one file) from the targeted host and early part works fine including getting… Read More Ansible templating with dictionaries unable to find the key