diff --git a/tasks/main.yml b/tasks/main.yml index a8b3262..69ef048 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,7 +19,6 @@ - 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 e460eaa..d1f5c25 100644 --- a/tasks/python_venv_wheel_build.yml +++ b/tasks/python_venv_wheel_build.yml @@ -16,6 +16,8 @@ - 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: