Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions helper_mssql/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
become_user: codio
pip:
name: pyodbc
when: ansible_facts['distribution_major_version'] | int < 22

- name: Install pyodbc
apt:
pkg:
- python3-pyodbc
state: present
update_cache: true
when: ansible_facts['distribution_major_version'] | int >= 22

- name: Creates directory
become_user: codio
Expand Down
6 changes: 3 additions & 3 deletions r-studio/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down