Skip to content

Commit

Permalink
update package list
Browse files Browse the repository at this point in the history
  • Loading branch information
IamLunchbox committed Jun 1, 2024
1 parent a4e8f13 commit c37ea10
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible/roles/base/tasks/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,18 @@
- name: Define package list to install
ansible.builtin.set_fact:
package_selection: "pkgs_vm_{{ ansible_facts['virtualization_role'] }}"
dist_specific_packages: "pkgs_vm_{{ ansible_distribution | lower }}"

- name: Install packages
ansible.builtin.apt:
name: "{{ lookup('vars', package_selection) }}"
state: present

- name: Install dist_specific_packages
ansible.builtin.apt:
name: "{{ lookup('vars', dist_specific_packages) }}"
state: present

# - name: Setup flatpak
# community.general.flatpak_remote:
# name: flathub
Expand Down Expand Up @@ -112,7 +118,7 @@
value: '65535'
sysctl_set: true
reload: true
when: "{{ namespaces.stdout | regex_search('[\\d]{1,5}') | int }} > 0"
when: namespaces.stdout is not search('[\\d]{1,5}')

- name: Create podman config file
ansible.builtin.file:
Expand Down
7 changes: 7 additions & 0 deletions ansible/roles/base/vars/packages_install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ pkgs_vm_guest:
- exa
- duf
- tree
- pnmixer
- unattended-upgrades

pkgs_vm_debian:
- firefox-esr
pkgs_vm_ubuntu:
- firefox

pkgs_vm_host:
- zsh
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/base/vars/packages_remove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ rmv_vm_guest:
- file-roller
- totem
- printer-driver-*
- zutty

rmv_vm_host:
- byobu
Expand Down

0 comments on commit c37ea10

Please sign in to comment.