From 127bbdfab2d79eb5b1032a1d038b9b0b5a6aa8bc Mon Sep 17 00:00:00 2001 From: jhoyt4 Date: Fri, 28 Nov 2025 19:34:49 -0500 Subject: [PATCH] macOS: update qt5/6 logic parsing booleans In 2.20, parsing input strings as booleans is no longer standard behavior. Update the macports and homebrew playbooks to convert any passed in qt5/6 flags to booleans. --- roles/mythtv/tasks/homebrew_macosx.yml | 2 +- roles/mythtv/tasks/macports_macosx.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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