Add Ansible configuration and remove NixOS #1

Merged
vleeuwenmenno merged 36 commits from ansible into master 2025-01-22 15:30:41 +01:00
Showing only changes of commit d760f00a82 - Show all commits

View File

@@ -4,11 +4,14 @@
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
state: present state: present
- name: Install Flatpak applications - name: Get list of installed Flatpaks
community.general.flatpak: command: flatpak list --app --columns=application
name: "{{ item }}" register: installed_flatpaks
state: present changed_when: false
loop:
- name: Define desired Flatpaks
set_fact:
desired_flatpaks:
- org.fkoehler.KTailctl - org.fkoehler.KTailctl
- org.mozilla.Thunderbird - org.mozilla.Thunderbird
- io.github.kukuruzka165.materialgram - io.github.kukuruzka165.materialgram
@@ -47,3 +50,15 @@
- io.github.nokse22.Exhibit - io.github.nokse22.Exhibit
- net.nokyan.Resources - net.nokyan.Resources
- dev.zed.Zed - dev.zed.Zed
- name: Install desired Flatpak applications
community.general.flatpak:
name: "{{ item }}"
state: present
loop: "{{ desired_flatpaks }}"
- name: Remove undesired Flatpak applications
community.general.flatpak:
name: "{{ item }}"
state: absent
loop: "{{ installed_flatpaks.stdout_lines | difference(desired_flatpaks) }}"