From 62f9f9445cf691eedb87f6d04c3d76b9b058f7ef Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 5 Mar 2026 20:55:18 +0100 Subject: Add planify gnome app --- roles/gnome-planify/meta/argument_specs.yml | 4 ++++ roles/gnome-planify/meta/main.yml | 21 +++++++++++++++++++++ roles/gnome-planify/tasks/install-archlinux.yml | 8 ++++++++ roles/gnome-planify/tasks/install-debian.yml | 7 +++++++ roles/gnome-planify/tasks/main.yml | 3 +++ 5 files changed, 43 insertions(+) create mode 100644 roles/gnome-planify/meta/argument_specs.yml create mode 100644 roles/gnome-planify/meta/main.yml create mode 100644 roles/gnome-planify/tasks/install-archlinux.yml create mode 100644 roles/gnome-planify/tasks/install-debian.yml create mode 100644 roles/gnome-planify/tasks/main.yml (limited to 'roles/gnome-planify') diff --git a/roles/gnome-planify/meta/argument_specs.yml b/roles/gnome-planify/meta/argument_specs.yml new file mode 100644 index 00000000..5af49897 --- /dev/null +++ b/roles/gnome-planify/meta/argument_specs.yml @@ -0,0 +1,4 @@ +--- +argument_specs: + main: + options: {} diff --git a/roles/gnome-planify/meta/main.yml b/roles/gnome-planify/meta/main.yml new file mode 100644 index 00000000..1029febd --- /dev/null +++ b/roles/gnome-planify/meta/main.yml @@ -0,0 +1,21 @@ +--- +dependencies: + - role: "yay" + when: ansible_facts['os_family'] == "Archlinux" + - role: "flatpak" + when: ansible_facts['os_family'] == "Debian" +galaxy_info: + author: "a14m" + description: "Install gnome-planify" + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" diff --git a/roles/gnome-planify/tasks/install-archlinux.yml b/roles/gnome-planify/tasks/install-archlinux.yml new file mode 100644 index 00000000..48c7bc64 --- /dev/null +++ b/roles/gnome-planify/tasks/install-archlinux.yml @@ -0,0 +1,8 @@ +--- +- name: "Ensure gnome-planify is installed" + become: true + become_user: "aur_builder" + kewlfft.aur.aur: + name: "planify" + state: "present" + use: "yay" diff --git a/roles/gnome-planify/tasks/install-debian.yml b/roles/gnome-planify/tasks/install-debian.yml new file mode 100644 index 00000000..066af6ba --- /dev/null +++ b/roles/gnome-planify/tasks/install-debian.yml @@ -0,0 +1,7 @@ +--- +- name: "Ensure gnome-planify is installed via flathub" + community.general.flatpak: + name: "io.github.alainm23.planify" + remote: "flathub" + state: "present" + method: "user" diff --git a/roles/gnome-planify/tasks/main.yml b/roles/gnome-planify/tasks/main.yml new file mode 100644 index 00000000..71bcbd0d --- /dev/null +++ b/roles/gnome-planify/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- name: "Include OS-specific tasks" + ansible.builtin.include_tasks: "install-{{ ansible_facts['os_family'] | lower }}.yml" -- cgit v1.2.3