All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
adds pano extension alpha
37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
- name: Check if Pano - Clipboard Manager is installed
|
|
ansible.builtin.stat:
|
|
path: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/pano@elhan.io"
|
|
register: pano_check
|
|
|
|
- name: Create Pano - Clipboard Manager directory
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/pano@elhan.io"
|
|
state: directory
|
|
mode: '0755'
|
|
when: pano_check.stat.exists == False
|
|
|
|
# To update Pano, delete the existing directory and re-download the latest release
|
|
# Replace the URL with the latest release URL and rerun the playbook/dotf update
|
|
- name: Download Pano - Clipboard Manager
|
|
ansible.builtin.get_url:
|
|
url: https://github.com/oae/gnome-shell-pano/releases/download/v23-alpha3/pano@elhan.io.zip
|
|
dest: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/pano@elhan.io/release.zip"
|
|
when: pano_check.stat.exists == False
|
|
|
|
- name: Extract Pano - Clipboard Manager
|
|
ansible.builtin.unarchive:
|
|
src: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/pano@elhan.io/release.zip"
|
|
dest: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/pano@elhan.io/"
|
|
when: pano_check.stat.exists == False
|
|
|
|
- name: Cleanup post Pan - Clipboard Manager installation
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/pano@elhan.io/release.zip"
|
|
state: absent
|
|
when: pano_check.stat.exists == False
|
|
|
|
- name: Enable Pano - Clipboard Manager
|
|
ansible.builtin.command: gnome-extensions enable pano@elhan.io
|
|
when: pano_check.stat.exists == False
|
|
|