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:
Matej Focko 2020-10-11 22:42:35 +02:00
parent 18ea17262c
commit edfdaef321
No known key found for this signature in database
GPG key ID: 707F7C6CBA7A2271
4 changed files with 22 additions and 29 deletions

View file

@ -2,7 +2,7 @@
- name: Fedora bootstrap
hosts: all
roles:
- role: set_dnf
- role: fedora_packages
become: yes
become_method: sudo
- flatpaks

View 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

View file

@ -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

View file

@ -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
become: yes
become_method: sudo