From 89b0bc552ca2e923be0bce867b61a4123505039e Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Fri, 10 Jan 2025 14:22:59 +0100 Subject: [PATCH] Added support for Ubuntu --- .local/share/dotfiles/install_dev_tools.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.local/share/dotfiles/install_dev_tools.yml b/.local/share/dotfiles/install_dev_tools.yml index ce286a2..f97859f 100644 --- a/.local/share/dotfiles/install_dev_tools.yml +++ b/.local/share/dotfiles/install_dev_tools.yml @@ -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 }}"