Fix ansible-lint E305 (#6459)

This commit is contained in:
Maxime Guyot
2020-07-28 10:39:08 +02:00
committed by GitHub
parent 8bd3b50e31
commit 214e08f8c9
22 changed files with 59 additions and 61 deletions

View File

@@ -63,8 +63,8 @@
- pull_required or download_run_once
- not image_is_cached
- name: download_container | Save and compress image # noqa 305
shell: "{{ image_save_command_on_localhost if download_localhost else image_save_command }}"
- name: download_container | Save and compress image
shell: "{{ image_save_command_on_localhost if download_localhost else image_save_command }}" # noqa 305 image_save_command_on_localhost contains a pipe, therefore requires shell
delegate_to: "{{ download_delegate }}"
delegate_facts: no
register: container_save_status
@@ -103,8 +103,8 @@
- pull_required
- download_force_cache
- name: download_container | Load image into docker # noqa 305
shell: "{{ image_load_command }}"
- name: download_container | Load image into docker
shell: "{{ image_load_command }}" # noqa 305 image_load_command uses pipes, therefore requires shell
register: container_load_status
failed_when: container_load_status is failed
when: