Cleaner output
This commit is contained in:
parent
5322305dea
commit
0fecc9c13e
|
@ -12,7 +12,7 @@
|
||||||
uri:
|
uri:
|
||||||
url: https://extensions.gnome.org/extension-info/?pk={{ item }}&shell_version={{ gnome_shell_version }}
|
url: https://extensions.gnome.org/extension-info/?pk={{ item }}&shell_version={{ gnome_shell_version }}
|
||||||
return_content: yes
|
return_content: yes
|
||||||
with_items: '{{ gnome_extension_ids }}'
|
loop: '{{ gnome_extension_ids }}'
|
||||||
register: gnome_shell_extension_info
|
register: gnome_shell_extension_info
|
||||||
|
|
||||||
- name: Create temporary download directory
|
- name: Create temporary download directory
|
||||||
|
@ -27,13 +27,17 @@
|
||||||
stat:
|
stat:
|
||||||
path: ~/.local/share/gnome-shell/extensions/{{ item.json.uuid }}
|
path: ~/.local/share/gnome-shell/extensions/{{ item.json.uuid }}
|
||||||
register: st_existing_extensions
|
register: st_existing_extensions
|
||||||
with_items: "{{ gnome_shell_extension_info.results }}"
|
loop: "{{ gnome_shell_extension_info.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.json.name }}"
|
||||||
|
|
||||||
- name: Download Gnome Shell extensions
|
- name: Download Gnome Shell extensions
|
||||||
get_url:
|
get_url:
|
||||||
url: https://extensions.gnome.org{{ item.item.json.download_url }}
|
url: https://extensions.gnome.org{{ item.item.json.download_url }}
|
||||||
dest: "{{ gnome_extension_download_dir.path }}/{{ item.item.json.uuid }}.zip"
|
dest: "{{ gnome_extension_download_dir.path }}/{{ item.item.json.uuid }}.zip"
|
||||||
with_items: "{{ st_existing_extensions.results }}"
|
loop: "{{ st_existing_extensions.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.json.name }}"
|
||||||
when: item.stat.exists == False
|
when: item.stat.exists == False
|
||||||
register: download_gnome_shell_extensions
|
register: download_gnome_shell_extensions
|
||||||
|
|
||||||
|
@ -44,20 +48,26 @@
|
||||||
owner: "{{ ansible_user_uid }}"
|
owner: "{{ ansible_user_uid }}"
|
||||||
group: "{{ ansible_user_gid }}"
|
group: "{{ ansible_user_gid }}"
|
||||||
mode: 0775
|
mode: 0775
|
||||||
with_items: "{{ download_gnome_shell_extensions.results }}"
|
loop: "{{ download_gnome_shell_extensions.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.item.json.name }}"
|
||||||
when: not item|skipped
|
when: not item|skipped
|
||||||
|
|
||||||
- name: Install Gnome Shell extensions
|
- name: Install Gnome Shell extensions
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ item.dest }}"
|
src: "{{ item.dest }}"
|
||||||
dest: ~/.local/share/gnome-shell/extensions/{{ item.item.item.json.uuid }}
|
dest: ~/.local/share/gnome-shell/extensions/{{ item.item.item.json.uuid }}
|
||||||
with_items: "{{ download_gnome_shell_extensions.results }}"
|
loop: "{{ download_gnome_shell_extensions.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.item.json.name }}"
|
||||||
when: not item|skipped
|
when: not item|skipped
|
||||||
|
|
||||||
- name: Enable Gnome Shell extensions
|
- name: Enable Gnome Shell extensions
|
||||||
command: gnome-shell-extension-tool --enable-extension {{ item.item.item.json.uuid }}
|
command: gnome-shell-extension-tool --enable-extension {{ item.item.item.json.uuid }}
|
||||||
register: enable_gnome_shell_extensions
|
register: enable_gnome_shell_extensions
|
||||||
with_items: "{{ download_gnome_shell_extensions.results }}"
|
loop: "{{ download_gnome_shell_extensions.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.item.json.name }}"
|
||||||
when: not item|skipped
|
when: not item|skipped
|
||||||
always:
|
always:
|
||||||
- name: Delete temporary download directory
|
- name: Delete temporary download directory
|
||||||
|
|
Loading…
Reference in a new issue