Skip to content

Commit

Permalink
feat(setup): move package manager install and package update to setup…
Browse files Browse the repository at this point in the history
… role
  • Loading branch information
smoyer64 committed Nov 2, 2024
1 parent 7b8c466 commit 25f80f2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 19 deletions.
19 changes: 0 additions & 19 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
---
# File: roles/common/tasks/main.yml

- name: "upgrade existing apt packages"
apt:
upgrade: "yes"
update_cache: "yes"
autoclean: "yes"
autoremove: "yes"
state: "latest"

- name: "add the PIP package manager"
apt:
name: "{{ packages }}"
state: "latest"
vars:
packages:
- "python3-setuptools"
- "python3-pip"
tags:
- "python"

- name: install basic Linux tools
apt:
pkg:
Expand Down
32 changes: 32 additions & 0 deletions roles/setup/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

- name: "upgrade existing apt packages"
apt:
upgrade: "yes"
update_cache: "yes"
autoclean: "yes"
autoremove: "yes"
state: "latest"

- name: "add the PIP package manager"
apt:
pkg:
- "python3-setuptools"
- "python3-pip"
tags:
- "python"
- "packaging"

- name: "add the flatpak package manager"
apt:
pkg:
- "flatpak"
tags:
- "flatpak"
- "packaging"

- name: "upgrade existing flatpak applications"
command: "flatpak update --noninteractive"
tags:
- "flatpak"
- "packaging"
2 changes: 2 additions & 0 deletions workstation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
- config.yaml
- versions.yml
roles:
- "setup"
- "common"
- "browser"
- "communication"
- "multimedia"
- "development"
# - containerization
# - networking
Expand Down

0 comments on commit 25f80f2

Please sign in to comment.