[mythtv-users] libbluray-dev needs to be added to ansible

Bill Meek keemllib at gmail.com
Sat Dec 25 02:01:21 UTC 2021


On 12/20/21 5:14 AM, James Abernathy wrote:
> PopOS has become a version of Ubuntu that is gaining popularity and I moved my test system to it for a while to play with it. 
> 
> I decided to test Build from Source for Mythtv to check out dependencies.  Ansible ran clean but the build was missing the usual libbluray-dev
> that was missing in Linux Mint 20.2 back in November.
> 
> $ ansible localhost --module-name=setup --args='filter=ansible_distribution'
> [WARNING]: No inventory was parsed, only implicit localhost is available
> localhost | SUCCESS => {
>     "ansible_facts": {
>         "ansible_distribution": "Pop!_OS"
>     },
>     "changed": false
> }

I'm assuming the ansible_lsb.major_release is still 20+. Please test this change:

diff --git a/roles/mythtv-deb/tasks/main.yml b/roles/mythtv-deb/tasks/main.yml
index 95039d2..e797ea5 100644
--- a/roles/mythtv-deb/tasks/main.yml
+++ b/roles/mythtv-deb/tasks/main.yml
@@ -158,7 +158,7 @@
       - '{{ deb_pkg_lst }}'
       - libbluray-dev
   when:
-    - ansible_distribution == "Linux Mint"
+    - (ansible_distribution == "Linux Mint" or ansible_distribution == "Pop!_OS")
     - (ansible_lsb.major_release|int >= 20)

 - name: add mythtv extra build libraries (Ubuntu 16.04 and later, not aarch64)

-- 
Bill


More information about the mythtv-users mailing list