Skip to content

Commit

Permalink
Add flatpak support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaweees committed May 15, 2024
1 parent 6670cf8 commit b9dd627
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 11 deletions.
16 changes: 9 additions & 7 deletions ansible-install
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
11 changes: 7 additions & 4 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
42 changes: 42 additions & 0 deletions tasks/flatpak-setup.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b9dd627

Please sign in to comment.