diff --git a/playbooks/bootstrap.yml b/playbooks/bootstrap.yml index 8d66340..8fe95e6 100644 --- a/playbooks/bootstrap.yml +++ b/playbooks/bootstrap.yml @@ -10,7 +10,12 @@ # set to "local" or "remote" source: "local" when: ansible_distribution == "Fedora" - - flatpaks + - role: opensuse + become: yes + become_method: sudo + when: ansible_distribution in ("openSUSE Leap", "openSUSE Tumbleweed") + - role: flatpaks + when: ansible_distribution not in ("openSUSE Leap", "openSUSE Tumbleweed") - ssh - shell - role: git diff --git a/playbooks/roles/fedora/packages/tasks/shell.yml b/playbooks/roles/fedora/packages/tasks/shell.yml index b14b3ff..ce34768 100644 --- a/playbooks/roles/fedora/packages/tasks/shell.yml +++ b/playbooks/roles/fedora/packages/tasks/shell.yml @@ -7,4 +7,5 @@ - neovim - emacs - alacritty + - fzf state: present diff --git a/playbooks/roles/opensuse/meta/main.yml b/playbooks/roles/opensuse/meta/main.yml new file mode 100644 index 0000000..6f3629a --- /dev/null +++ b/playbooks/roles/opensuse/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - opensuse/packages diff --git a/playbooks/roles/opensuse/packages/tasks/main.yml b/playbooks/roles/opensuse/packages/tasks/main.yml new file mode 100644 index 0000000..4b4eb30 --- /dev/null +++ b/playbooks/roles/opensuse/packages/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Upgrade all packages + zypper: + name: "*" + state: latest + +- name: Install playerctl and flameshot + zypper: + name: + - playerctl + - flameshot + +- name: Install non-default flatpak + zypper: + name: + - flatpak + +- include: shell.yml diff --git a/playbooks/roles/opensuse/packages/tasks/shell.yml b/playbooks/roles/opensuse/packages/tasks/shell.yml new file mode 100644 index 0000000..46d0a20 --- /dev/null +++ b/playbooks/roles/opensuse/packages/tasks/shell.yml @@ -0,0 +1,11 @@ +--- +- name: Install all packages for shell + zypper: + name: + - zsh + - tmux + - neovim + - emacs + - alacritty + - fzf + state: present