1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2025-08-04 21:43:06 +02:00

Make sure remaining when dict keys do not refer to variables directly, but open a Jinja block

Most `when` dict keys already were done correctly, but these few weren't.

ansible-core 2.19.0 reported the following errors for them:

> [WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
> [DEPRECATION WARNING]: The `bool` filter coerced invalid value 'variable_name' (str) to False. This feature will be removed from ansible-core version 2.23.
This commit is contained in:
Slavi Pantaleev
2025-07-26 18:46:42 +03:00
parent 90813b3739
commit 570c4121b7
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
with_items: with_items:
- {path: "{{ matrix_bot_chatgpt_config_path }}", when: true} - {path: "{{ matrix_bot_chatgpt_config_path }}", when: true}
- {path: "{{ matrix_bot_chatgpt_data_path }}", when: true} - {path: "{{ matrix_bot_chatgpt_data_path }}", when: true}
- {path: "{{ matrix_bot_chatgpt_container_src_path }}", when: matrix_bot_chatgpt_container_image_self_build} - {path: "{{ matrix_bot_chatgpt_container_src_path }}", when: "{{ matrix_bot_chatgpt_container_image_self_build }}"}
when: "item.when | bool" when: "item.when | bool"
- name: Ensure chatgpt environment variables file created - name: Ensure chatgpt environment variables file created

View File

@ -66,7 +66,7 @@
with_items: with_items:
- {path: "{{ matrix_postmoogle_config_path }}", when: true} - {path: "{{ matrix_postmoogle_config_path }}", when: true}
- {path: "{{ matrix_postmoogle_data_path }}", when: true} - {path: "{{ matrix_postmoogle_data_path }}", when: true}
- {path: "{{ matrix_postmoogle_docker_src_files_path }}", when: matrix_postmoogle_container_image_self_build} - {path: "{{ matrix_postmoogle_docker_src_files_path }}", when: "{{ matrix_postmoogle_container_image_self_build }}"}
when: "item.when | bool" when: "item.when | bool"
- name: Ensure postmoogle environment variables file created - name: Ensure postmoogle environment variables file created

View File

@ -16,7 +16,7 @@
with_items: with_items:
- {path: "{{ matrix_cactus_comments_base_path }}", when: true} - {path: "{{ matrix_cactus_comments_base_path }}", when: true}
- {path: "{{ matrix_cactus_comments_container_tmp_path }}", when: true} - {path: "{{ matrix_cactus_comments_container_tmp_path }}", when: true}
- {path: "{{ matrix_cactus_comments_docker_src_files_path }}", when: matrix_cactus_comments_container_image_self_build} - {path: "{{ matrix_cactus_comments_docker_src_files_path }}", when: "{{ matrix_cactus_comments_container_image_self_build }}"}
when: "item.when | bool" when: "item.when | bool"
- name: Ensure matrix-cactus-comments environment file created - name: Ensure matrix-cactus-comments environment file created