2021-10-30 07:18:46 +00:00
|
|
|
---
|
2021-12-14 11:20:38 +00:00
|
|
|
- name: Installing packages
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- flatpak
|
|
|
|
state: present
|
|
|
|
|
2021-10-30 07:18:46 +00:00
|
|
|
- name: Add the flathub flatpak repository remote
|
|
|
|
community.general.flatpak_remote:
|
|
|
|
name: flathub
|
|
|
|
state: present
|
|
|
|
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
|
|
|
|
|
|
- name: Install multiple packages
|
|
|
|
community.general.flatpak:
|
|
|
|
name:
|
|
|
|
- org.gimp.GIMP
|
|
|
|
- org.telegram.desktop
|
|
|
|
- net.christianbeier.Gromit-MPX
|
2022-02-03 08:37:51 +00:00
|
|
|
- com.logseq.Logseq
|
2021-10-30 07:18:46 +00:00
|
|
|
- com.bitwarden.desktop
|
|
|
|
- com.github.tchx84.Flatseal
|
|
|
|
- com.github.alexr4535.siglo
|
|
|
|
- com.nextcloud.desktopclient.nextcloud
|
|
|
|
- com.github.unrud.VideoDownloader
|
2022-04-03 09:08:41 +00:00
|
|
|
- com.github.liferooter.textpieces
|
2021-10-30 07:18:46 +00:00
|
|
|
- nl.hjdskes.gcolor3
|
2021-11-24 10:19:49 +00:00
|
|
|
- re.sonny.Junction
|
|
|
|
- org.gnome.DejaDup
|
2021-10-30 07:18:46 +00:00
|
|
|
state: present
|
2021-11-25 10:59:22 +00:00
|
|
|
|
|
|
|
- name: Check if open function is set
|
|
|
|
shell: grep -c "^function open" ~/.shellconfig/functions.sh || true
|
|
|
|
register: open_test
|
2022-01-18 09:19:19 +00:00
|
|
|
changed_when: false
|
2021-11-25 10:59:22 +00:00
|
|
|
|
|
|
|
- name: "Adding 'open' shell function"
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
name: ~/.shellconfig/functions.sh
|
|
|
|
line: |
|
|
|
|
# Open files from CLI via Junction flatpak
|
|
|
|
function open() { if [[ -f $@ || -d $@ ]]; then flatpak run re.sonny.Junction $@ &>/dev/null; else echo "❌No such file or directory '$@'"; false; fi}
|
|
|
|
state: present
|
|
|
|
when: open_test.stdout|int == 0
|