Added support for Ubuntu

This commit is contained in:
Ivan Golikov 2025-01-10 14:22:59 +01:00
parent 6ee15eadc6
commit 89b0bc552c

View file

@ -35,6 +35,7 @@
ansible.builtin.set_fact:
is_macos: "{{ ansible_facts['os_family'] == 'Darwin' }}"
is_arch: "{{ ansible_facts['os_family'] == 'Archlinux' }}"
is_ubuntu: "{{ ansible_facts['os_family'] == 'Debian' }}"
- name: Get full packages list (macOS)
ansible.builtin.set_fact:
@ -59,6 +60,13 @@
become: true
when: is_arch
- name: Install packages (Ubuntu)
when: is_ubuntu
become: true
ansible.builtin.apt:
pkg: common_packages
cache_valid_time: 3600
- name: Install uv packages
ansible.builtin.command: "pipx tool install {{ item }}"
loop: "{{ uv_packages }}"