Ver a proveniência

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.
pull/4457/head
Slavi Pantaleev há 7 meses
ascendente
cometimento
570c4121b7
3 ficheiros alterados com 3 adições e 3 eliminações
  1. +1
    -1
      roles/custom/matrix-bot-chatgpt/tasks/install.yml
  2. +1
    -1
      roles/custom/matrix-bridge-postmoogle/tasks/setup_install.yml
  3. +1
    -1
      roles/custom/matrix-cactus-comments/tasks/setup_install.yml

+ 1
- 1
roles/custom/matrix-bot-chatgpt/tasks/install.yml Ver ficheiro

@@ -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


+ 1
- 1
roles/custom/matrix-bridge-postmoogle/tasks/setup_install.yml Ver ficheiro

@@ -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


+ 1
- 1
roles/custom/matrix-cactus-comments/tasks/setup_install.yml Ver ficheiro

@@ -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


Carregando…
Cancelar
Guardar