diff --git a/tasks/main.yml b/tasks/main.yml index 69ef048..a8b3262 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,6 +19,7 @@ - import_tasks: "python_venv_wheel_build.yml" run_once: yes + when: venv_wheel_build_enable | bool tags: - build diff --git a/tasks/python_venv_wheel_build.yml b/tasks/python_venv_wheel_build.yml index d1f5c25..e460eaa 100644 --- a/tasks/python_venv_wheel_build.yml +++ b/tasks/python_venv_wheel_build.yml @@ -16,8 +16,6 @@ - name: Build the wheels on the build host delegate_to: "{{ venv_build_host }}" become: "{{ venv_build_host == 'localhost' }}" - when: - - venv_wheel_build_enable | bool block: - name: Install distro packages for wheel build package: