From b9dd627326837343b54cd3f48c500348c55dc16b Mon Sep 17 00:00:00 2001 From: Miguel Villa Floran Date: Wed, 15 May 2024 10:22:47 -0700 Subject: [PATCH] Add flatpak support --- ansible-install | 16 +++++++++------- local.yml | 11 +++++++---- tasks/flatpak-setup.yml | 42 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 11 deletions(-) create mode 100644 tasks/flatpak-setup.yml diff --git a/ansible-install b/ansible-install index 7165aac..4ae7d21 100644 --- a/ansible-install +++ b/ansible-install @@ -1,8 +1,8 @@ #!/usr/bin/env bash # # Title: Kaweees's Ansible Playbook -# Description: A bash script to install Kaweee's Ansible playbook and run it. -# Author: Your Name +# Description: A bash script to install Kaweees's Ansible playbook and run it. +# Author: Miguel Villa Floran title() { local color='\033[1;37m' @@ -16,9 +16,11 @@ title "Greetings, $USER. Let's install Kaweees's Ansible Playbook." sudo apt update -y && sudo apt upgrade -y sudo apt install -y software-properties-common sudo add-apt-repository --yes --update ppa:ansible/ansible -sudo apt install -y ansible git +sudo apt install -y ansible git cowsay -# Execute Ansible playbook -ansible-pull -K -U https://github.com/Kaweees/ansible.git -t install local.yml -# Or run locally -# ansible-playbook -K local.yml -t install +# Execute Ansible playbook remotely +# ansible-pull -K -U https://github.com/Kaweees/ansible.git local.yml --ask-become-pass --tags minimal-install + +# Clone and execute Ansible playbook locally +git clone https://github.com/Kaweees/ansible.git ~/Documents/GitHub/Projects/ansible --recusive && cd ~/Documents/GitHub/Projects/ansible +ansible-playbook -K local.yml --ask-become-pass --tags minimal-install diff --git a/local.yml b/local.yml index da3730a..8a62cc7 100644 --- a/local.yml +++ b/local.yml @@ -26,8 +26,11 @@ tasks: - include: tasks/ssh.yml - include: tasks/core-setup.yml - - include: tasks/node-setup.yml - - include: tasks/zsh-setup.yml - - include: tasks/slack-setup.yml + - include: tasks/gui-setup.yml - include: tasks/dotfiles.yml - - include: tasks/git-setup.yml + - include: tasks/suckless-setup.yml + - include: tasks/flatpak-setup.yml + # - include: tasks/node-setup.yml + # - include: tasks/zsh-setup.yml + # - include: tasks/slack-setup.yml + # - include: tasks/git-setup.yml diff --git a/tasks/flatpak-setup.yml b/tasks/flatpak-setup.yml new file mode 100644 index 0000000..ad58ad2 --- /dev/null +++ b/tasks/flatpak-setup.yml @@ -0,0 +1,42 @@ +- name: Install flatpak + become: true + package: + name: + - flatpak + tags: + - minimal-install + - install + - flatpak + +- name: Add flathub repo + become: true + shell: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + tags: + - minimal-install + - install + - flatpak + +- name: Install flatpak core utilities + flatpak: + name: + - com.github.tchx84.Flatseal + - com.vivaldi.Vivaldi + + tags: + - minimal-install + - install + - flatpak + +- name: Install flatpak GUI extras + flatpak: + name: + - camp.nook.nookdesktop + - com.axosoft.GitKraken + - com.slack.Slack + - com.spotify.Client + - io.github.shiftey.Desktop + - org.signal.Signal + - org.qbittorrent.qBittorrent + tags: + - install + - flatpak