ソースを参照

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 7ヶ月前
コミット
570c4121b7
3個のファイルの変更3行の追加3行の削除
  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 ファイルの表示

@@ -15,7 +15,7 @@
with_items:
- {path: "{{ matrix_bot_chatgpt_config_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"

- name: Ensure chatgpt environment variables file created


+ 1
- 1
roles/custom/matrix-bridge-postmoogle/tasks/setup_install.yml ファイルの表示

@@ -66,7 +66,7 @@
with_items:
- {path: "{{ matrix_postmoogle_config_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"

- name: Ensure postmoogle environment variables file created


+ 1
- 1
roles/custom/matrix-cactus-comments/tasks/setup_install.yml ファイルの表示

@@ -16,7 +16,7 @@
with_items:
- {path: "{{ matrix_cactus_comments_base_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"

- name: Ensure matrix-cactus-comments environment file created


読み込み中…
キャンセル
保存