Why is this task giving such a strage result? - name: Replace the old API keys with the…
- User
Why is this task giving such a strage result?
- name: Replace the old API keys with the new ones ansible.builtin.blockinfile: path: "{{ jellyfin_tmp_vault }}" marker: "# Compiled by Ansible" insertafter: '(?m)vm_data:[\s\S]?test-lxc:[\s\S]?jellyfin:[\S\s]api_keys:\n(?:#.?\n)?' # (?:(?:\s*[ \t]+.|\s)\n)* block: | {% for user, key in relevant_keys.items() %} {{ ' ' * 8 }}{{ user }}: {{ key }} {% endfor %} delegate_to: localhost
Original text: vm_data: lancache-vm: docker_compose_processes_secrets: owncloud: test-lxc: jellyfin: admin_user: "admin" admin_pass: "admin" api_keys: jellyadmin: "" jellyseer: ""
Result text: vm_data: test-lxc: jellyfin: admin_user: "admin" admin_pass: "admin" api_keys: jellyadmin: ""
Compiled by Ansible
codejellyadmin: 1d3dc80997b54d318e9eba7dfd7741b4 jellyseer: 994475ed5b3c491fb388db0f6489f962Compiled by Ansible
codejellyseer: "" Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.