diff --git a/installer/roles/image_build/tasks/main.yml b/installer/roles/image_build/tasks/main.yml index c8b1d7d628..1c5b82b958 100644 --- a/installer/roles/image_build/tasks/main.yml +++ b/installer/roles/image_build/tasks/main.yml @@ -223,5 +223,5 @@ file: path: "{{ docker_base_path }}" state: absent - when: cleanup_docker_base|default(True) + when: cleanup_docker_base|default(True)|bool delegate_to: localhost diff --git a/installer/roles/image_push/tasks/main.yml b/installer/roles/image_push/tasks/main.yml index 9e3c76f0ca..24530b0ed8 100644 --- a/installer/roles/image_push/tasks/main.yml +++ b/installer/roles/image_push/tasks/main.yml @@ -25,7 +25,7 @@ tag: "{{ awx_version }}" state: absent delegate_to: localhost - when: docker_remove_local_images|default(False) + when: docker_remove_local_images|default(False)|bool - name: Tag and Push Container Images block: