setup-cockpit/roles/base/tasks/main.yml

40 lines
1,014 B
YAML

---
- name: Install packages (Archlinux)
become: true
community.general.pacman:
name:
- archlinux-keyring
- base-devel
- curl
- pacman-contrib # for checkupdates, paccache, pacdiff...
- pkgfile # get hint on missing package when command not found
- python-pipx
- python-setuptools
- python-wheel
- reflector
- wget
when: ansible_facts['distribution'] == 'Archlinux'
- name: Install packages (Debian)
become: true
ansible.builtin.apt:
name:
- build-essential
- curl
- pipx
- python3-setuptools
- python3-venv
- python3-wheel
- wget
- apt-file
when: ansible_facts['distribution'] == 'Debian'
- name: Update pkgfile (Archlinux)
become: true
ansible.builtin.command: pkgfile -u
when: ansible_facts['distribution'] == 'Archlinux'
- name: Update apt-file database (Debian)
become: true
ansible.builtin.command: apt-file update
when: ansible_facts['distribution'] == 'Debian'