- 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: Notify user of required GNOME Shell extension reload ansible.builtin.debug: msg: "Please reload GNOME Shell by pressing Alt + F2, typing 'r' and pressing Enter. Then enable the Pano - Clipboard Manager extension in GNOME Tweaks. Or on Wayland, log out and back in." when: pano_check.stat.exists == False