Added support for Ubuntu
This commit is contained in:
parent
6ee15eadc6
commit
89b0bc552c
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
is_macos: "{{ ansible_facts['os_family'] == 'Darwin' }}"
|
is_macos: "{{ ansible_facts['os_family'] == 'Darwin' }}"
|
||||||
is_arch: "{{ ansible_facts['os_family'] == 'Archlinux' }}"
|
is_arch: "{{ ansible_facts['os_family'] == 'Archlinux' }}"
|
||||||
|
is_ubuntu: "{{ ansible_facts['os_family'] == 'Debian' }}"
|
||||||
|
|
||||||
- name: Get full packages list (macOS)
|
- name: Get full packages list (macOS)
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
@ -59,6 +60,13 @@
|
||||||
become: true
|
become: true
|
||||||
when: is_arch
|
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
|
- name: Install uv packages
|
||||||
ansible.builtin.command: "pipx tool install {{ item }}"
|
ansible.builtin.command: "pipx tool install {{ item }}"
|
||||||
loop: "{{ uv_packages }}"
|
loop: "{{ uv_packages }}"
|
||||||
|
|
Loading…
Reference in a new issue