diff options
| -rw-r--r-- | configure.yml | 2 | ||||
| -rw-r--r-- | molecule/archlinux-gnome/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/archlinux/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/debian/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/ubuntu/converge.yml | 1 | ||||
| -rw-r--r-- | roles/gnome-planify/meta/argument_specs.yml | 4 | ||||
| -rw-r--r-- | roles/gnome-planify/meta/main.yml | 21 | ||||
| -rw-r--r-- | roles/gnome-planify/tasks/install-archlinux.yml | 8 | ||||
| -rw-r--r-- | roles/gnome-planify/tasks/install-debian.yml | 7 | ||||
| -rw-r--r-- | roles/gnome-planify/tasks/main.yml | 3 |
10 files changed, 49 insertions, 0 deletions
diff --git a/configure.yml b/configure.yml index 955c3733..65d39662 100644 --- a/configure.yml +++ b/configure.yml @@ -30,6 +30,7 @@ - role: "gnome-calendar" - role: "gnome-loupe" - role: "gnome-papers" + - role: "gnome-planify" - role: "gradia" - role: "mpv" - role: "neomutt" @@ -79,6 +80,7 @@ - role: "podman" - role: "ansible" - role: "gnome" + - role: "gnome-planify" - role: "firefox" - role: "obsidian" - role: "microsoft-teams" diff --git a/molecule/archlinux-gnome/converge.yml b/molecule/archlinux-gnome/converge.yml index ac34e824..ad0985ea 100644 --- a/molecule/archlinux-gnome/converge.yml +++ b/molecule/archlinux-gnome/converge.yml @@ -83,6 +83,7 @@ - role: "gnome-calendar" - role: "gnome-loupe" - role: "gnome-papers" + - role: "gnome-planify" - role: "gradia" - role: "mpv" - role: "neomutt" diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index c62de676..ca088c4d 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -82,6 +82,7 @@ - role: "gnome-calendar" - role: "gnome-loupe" - role: "gnome-papers" + - role: "gnome-planify" - role: "gradia" - role: "mpv" - role: "neomutt" diff --git a/molecule/debian/converge.yml b/molecule/debian/converge.yml index fb7e02d1..38dbe651 100644 --- a/molecule/debian/converge.yml +++ b/molecule/debian/converge.yml @@ -94,6 +94,7 @@ - role: "gnome-calendar" - role: "gnome-loupe" - role: "gnome-papers" + - role: "gnome-planify" - role: "gradia" - role: "rsync" - role: "gpg" diff --git a/molecule/ubuntu/converge.yml b/molecule/ubuntu/converge.yml index f6dd66aa..84956007 100644 --- a/molecule/ubuntu/converge.yml +++ b/molecule/ubuntu/converge.yml @@ -83,6 +83,7 @@ - role: "gnome-calendar" - role: "gnome-loupe" - role: "gnome-papers" + - role: "gnome-planify" - role: "gradia" - role: "rsync" - role: "gpg" 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" |
