From 53b30b0f3d0be56d088b0431560a9f4ae1da341b Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Tue, 4 Aug 2026 15:20:43 +0100 Subject: [PATCH 1/4] issue #codio-17872. install software on ubuntu 2604. --- r-studio/playbook.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/r-studio/playbook.yaml b/r-studio/playbook.yaml index e197efa..6bf3eef 100644 --- a/r-studio/playbook.yaml +++ b/r-studio/playbook.yaml @@ -3,10 +3,10 @@ become: yes become_user: root tasks: - - name: Fail if not running on Ubuntu 22.04 + - name: Fail if running on Ubuntu < 22.04 fail: - msg: "These tasks should only be run on Ubuntu 22.04" - when: ansible_distribution != "Ubuntu" or ansible_distribution_version != "22.04" + msg: "These tasks should only be run on Ubuntu 22.04 or later" + when: ansible_distribution != "Ubuntu" or ansible_distribution_version is version('22.04', '<') - name: Install essential packages ansible.builtin.apt: From 613273376a190dec75788db2523d750cf56f358e Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Tue, 4 Aug 2026 16:16:26 +0100 Subject: [PATCH 2/4] install pyodbc --- helper_mssql/playbook.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/helper_mssql/playbook.yaml b/helper_mssql/playbook.yaml index ee9a90e..204df19 100644 --- a/helper_mssql/playbook.yaml +++ b/helper_mssql/playbook.yaml @@ -29,6 +29,16 @@ become_user: codio pip: name: pyodbc + when: ansible_facts['distribution_major_version'] | int < 26 + + - name: Install pyodbc + become_user: codio + apt: + pkg: + - python3-pyodbc + state: present + update_cache: true + when: ansible_facts['distribution_major_version'] | int >= 26 - name: Creates directory become_user: codio From ee766ad4e19697129aeb6cbc1eb113c6c25b03f4 Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Tue, 4 Aug 2026 16:27:44 +0100 Subject: [PATCH 3/4] fix --- helper_mssql/playbook.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/helper_mssql/playbook.yaml b/helper_mssql/playbook.yaml index 204df19..b45e4b3 100644 --- a/helper_mssql/playbook.yaml +++ b/helper_mssql/playbook.yaml @@ -32,7 +32,6 @@ when: ansible_facts['distribution_major_version'] | int < 26 - name: Install pyodbc - become_user: codio apt: pkg: - python3-pyodbc From 871515914f236adf52b63c81e6c118a725de345b Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Tue, 4 Aug 2026 16:42:38 +0100 Subject: [PATCH 4/4] install pyodbc via apt for ubuntu >= 22 --- helper_mssql/playbook.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper_mssql/playbook.yaml b/helper_mssql/playbook.yaml index b45e4b3..68adc42 100644 --- a/helper_mssql/playbook.yaml +++ b/helper_mssql/playbook.yaml @@ -29,7 +29,7 @@ become_user: codio pip: name: pyodbc - when: ansible_facts['distribution_major_version'] | int < 26 + when: ansible_facts['distribution_major_version'] | int < 22 - name: Install pyodbc apt: @@ -37,7 +37,7 @@ - python3-pyodbc state: present update_cache: true - when: ansible_facts['distribution_major_version'] | int >= 26 + when: ansible_facts['distribution_major_version'] | int >= 22 - name: Creates directory become_user: codio