diff --git a/roles/mythtv/tasks/homebrew_macosx.yml b/roles/mythtv/tasks/homebrew_macosx.yml index 53df387..5bde1ff 100644 --- a/roles/mythtv/tasks/homebrew_macosx.yml +++ b/roles/mythtv/tasks/homebrew_macosx.yml @@ -21,7 +21,7 @@ - name: homebrew_macosx | Set qt6 to true set_fact: qt6: true - when: qt5 is undefined + when: not qt5 | default(false) | bool - name: homebrew_macosx | Set cpanm_active to true set_fact: diff --git a/roles/mythtv/tasks/macports_macosx.yml b/roles/mythtv/tasks/macports_macosx.yml index 3453747..b514bab 100644 --- a/roles/mythtv/tasks/macports_macosx.yml +++ b/roles/mythtv/tasks/macports_macosx.yml @@ -18,7 +18,7 @@ - name: macports_macosx | Set qt6 to true set_fact: qt6: true - when: qt5 is undefined + when: not qt5 | default(false) | bool - name: macports_macosx | Set venv_active to true set_fact: @@ -62,12 +62,12 @@ - name: macports_macosx | Set qt_version as qt5 set_fact: qt_version: qt5 - when: qt5 is defined and qt5 + when: qt5 | default(false) | bool - name: macports_macosx | Set qt_version as qt6 set_fact: qt_version: qt6 - when: qt5 is undefined or not qt5 + when: qt5 | default(true) | bool # get the python version specified by user in ansible_python_interpreter or defaulted by the interpreter - name: macports_macosx | Gather specific Python facts