Actions
Task #99
openJinja constant strings should not contain embedded templates
Start date:
10/05/2025
Due date:
% Done:
0%
Estimated time:
Description
TASK [vms : Add remote host key to known_hosts with hostname entry] ***************************************************************************************************************************************************************************
Sunday 05 October 2025 23:15:06 -0400 (0:00:00.508) 0:01:29.054 ********
[WARNING]: Jinja constant strings should not contain embedded templates. This feature will be disabled by default in ansible-core 2.23.
Origin: /ansible/dev/ansible/roles/vms/tasks/known_hosts.yml:21:10
19 ansible.builtin.known_hosts:
20 name: "{{ inventory_hostname }}"
21 key: "{{ lookup('pipe', 'ssh-keyscan -t rsa {{ inventory_hostname }}') }}"
^ column 10
Use inline expressions, for example: `msg: "{{ lookup('env', '{{ a_var }}') }}"` becomes `msg: "{{ lookup('env', a_var) }}"`
changed: [prometheus-0 -> localhost]
TASK [vms : Remove existing known_host ip address entry] **************************************************************************************************************************************************************************************
Sunday 05 October 2025 23:15:06 -0400 (0:00:00.482) 0:01:29.537 ********
changed: [prometheus-0 -> localhost]
TASK [vms : Add remote host key to known_hosts with ip address entry] *************************************************************************************************************************************************************************
Sunday 05 October 2025 23:15:07 -0400 (0:00:00.369) 0:01:29.907 ********
[WARNING]: Jinja constant strings should not contain embedded templates. This feature will be disabled by default in ansible-core 2.23.
Origin: /ansible/dev/ansible/roles/vms/tasks/known_hosts.yml:35:10
33 - name: Add remote host key to known_hosts with ip address entry
34 ansible.builtin.known_hosts:
35 key: "{{ lookup('pipe', 'ssh-keyscan -t rsa {{ global_ip_address }}') }}"
^ column 10
Use inline expressions, for example: `msg: "{{ lookup('env', '{{ a_var }}') }}"` becomes `msg: "{{ lookup('env', a_var) }}"`
changed: [prometheus-0 -> localhost]
No data to display
Actions