Move all packages to separate role
- Merge playerctl and flameshot into one - Move shell packages to separate role Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
parent
18ea17262c
commit
edfdaef321
4 changed files with 22 additions and 29 deletions
|
@ -2,7 +2,7 @@
|
||||||
- name: Fedora bootstrap
|
- name: Fedora bootstrap
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- role: set_dnf
|
- role: fedora_packages
|
||||||
become: yes
|
become: yes
|
||||||
become_method: sudo
|
become_method: sudo
|
||||||
- flatpaks
|
- flatpaks
|
||||||
|
|
21
playbooks/roles/fedora_packages/tasks/main.yml
Normal file
21
playbooks/roles/fedora_packages/tasks/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
- name: Upgrade all packages
|
||||||
|
dnf:
|
||||||
|
name: '*'
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Install playerctl and flameshot
|
||||||
|
dnf:
|
||||||
|
name:
|
||||||
|
- playerctl
|
||||||
|
- flameshot
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install all packages for shell
|
||||||
|
dnf:
|
||||||
|
name:
|
||||||
|
- zsh
|
||||||
|
- tmux
|
||||||
|
- neovim
|
||||||
|
- emacs
|
||||||
|
state: present
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
# TODO: Set up repos
|
|
||||||
|
|
||||||
- name: Upgrade all packages
|
|
||||||
dnf:
|
|
||||||
name: '*'
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install playerctl for spotify
|
|
||||||
dnf:
|
|
||||||
name: playerctl
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Install flameshot for screenshots
|
|
||||||
dnf:
|
|
||||||
name: flameshot
|
|
||||||
state: present
|
|
|
@ -1,15 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: Install all packages for shell
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
dnf:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- tmux
|
|
||||||
- neovim
|
|
||||||
- emacs
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Set default shell and generate SSH key
|
- name: Set default shell and generate SSH key
|
||||||
become: yes
|
become: yes
|
||||||
become_method: sudo
|
become_method: sudo
|
||||||
|
|
Loading…
Reference in a new issue