Skip to content

Commit

Permalink
Merge pull request #546 from ripleymj/spring2024-cleanup
Browse files Browse the repository at this point in the history
Spring2024 cleanup
  • Loading branch information
ripleymj authored Feb 7, 2024
2 parents fff9541 + bd54b90 commit a39b1f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packer/mint-beta.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
semester = "Fa23"
semester = "Sp24"

mint_version = {
version = "21.3"
Expand Down
2 changes: 1 addition & 1 deletion packer/variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ variable "headless" {

variable "semester" {
type = string
default = "Fa23"
default = "Sp24"
}

variable "ssh_pass" {
Expand Down
9 changes: 8 additions & 1 deletion roles/oem/tasks/vm_only_pre.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
---

# Tasks for the oem role to run at the beginning of playbook execution
- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto
- name: Find unneeded backgrounds
ansible.builtin.set_fact:
obsolete_backgrounds: "{{ ansible_facts.packages | select('search', 'mint-background') | reject('search', ansible_distribution_release) | list }}"

- name: Remove unneeded stock packages
ansible.builtin.apt:
name: '{{ oem_packages_to_remove }}'
name: '{{ oem_packages_to_remove + obsolete_backgrounds }}'
state: absent
purge: yes
- name: Remove i386 architecture
Expand Down
9 changes: 0 additions & 9 deletions roles/oem/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ oem_packages_to_remove:
- hyphen-ru
- libreoffice*
- mint-artwork-mate
- mint-backgrounds-sarah
- mint-backgrounds-serena
- mint-backgrounds-sonya
- mint-backgrounds-tara
- mint-backgrounds-tessa
- mint-backgrounds-tina
- mint-backgrounds-ulyana
- mint-backgrounds-ulyssa
- mint-backgrounds-vanessa
- mono-*
- myspell-*
- mythes-de
Expand Down

1 comment on commit a39b1f4

@Jonathing
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok but you could be using arch btw

Please sign in to comment.