From f59c9aa8d896d7318db04fe1de04e148ff3b4ee5 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 18 Aug 2022 00:12:43 +0200 Subject: [PATCH 1/3] feat(suse): add opensuse tasks Signed-off-by: Matej Focko --- playbooks/roles/opensuse/meta/main.yml | 3 +++ .../roles/opensuse/packages/tasks/main.yml | 18 ++++++++++++++++++ .../roles/opensuse/packages/tasks/shell.yml | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100644 playbooks/roles/opensuse/meta/main.yml create mode 100644 playbooks/roles/opensuse/packages/tasks/main.yml create mode 100644 playbooks/roles/opensuse/packages/tasks/shell.yml 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..9ff7b7c --- /dev/null +++ b/playbooks/roles/opensuse/packages/tasks/shell.yml @@ -0,0 +1,10 @@ +--- +- name: Install all packages for shell + zypper: + name: + - zsh + - tmux + - neovim + - emacs + - alacritty + state: present -- 2.45.2 From 2383d1536f39c1b7f07047addb2f0383bfccc4e4 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 18 Aug 2022 00:13:02 +0200 Subject: [PATCH 2/3] feat(shell): add fzf to packages Signed-off-by: Matej Focko --- playbooks/roles/fedora/packages/tasks/shell.yml | 1 + playbooks/roles/opensuse/packages/tasks/shell.yml | 1 + 2 files changed, 2 insertions(+) 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/packages/tasks/shell.yml b/playbooks/roles/opensuse/packages/tasks/shell.yml index 9ff7b7c..46d0a20 100644 --- a/playbooks/roles/opensuse/packages/tasks/shell.yml +++ b/playbooks/roles/opensuse/packages/tasks/shell.yml @@ -7,4 +7,5 @@ - neovim - emacs - alacritty + - fzf state: present -- 2.45.2 From 7016137fa4f02371720b784394b507f8e4c48ac6 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 18 Aug 2022 00:13:37 +0200 Subject: [PATCH 3/3] feat(suse): add openSUSE to bootstrap playbook Signed-off-by: Matej Focko --- playbooks/bootstrap.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.45.2