Add the installation of Joplin
This commit is contained in:
parent
08fa8a96c4
commit
a41002d2c7
|
@ -80,15 +80,43 @@
|
||||||
loop: "{{ lookup('vars', lookup('vars', 'ansible_system_vendor') + '_' + lookup('vars', 'ansible_form_factor') + '_packages') }}"
|
loop: "{{ lookup('vars', lookup('vars', 'ansible_system_vendor') + '_' + lookup('vars', 'ansible_form_factor') + '_packages') }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Galaxy role to install Gnome extensions
|
- name: 'Gnome extensions'
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- gnome
|
- gnome
|
||||||
command: ansible-galaxy install jaredhocutt.gnome_extensions
|
block:
|
||||||
|
- name: Galaxy role to install Gnome extensions
|
||||||
|
command: ansible-galaxy install jaredhocutt.gnome_extensions
|
||||||
|
|
||||||
- name: Include jaredhocutt.gnome_extensions
|
- name: Include jaredhocutt.gnome_extensions
|
||||||
|
include_role:
|
||||||
|
name: jaredhocutt.gnome_extensions
|
||||||
|
|
||||||
|
- name: 'Joplin: Check installation'
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- gnome
|
- joplin
|
||||||
include_role:
|
stat:
|
||||||
name: jaredhocutt.gnome_extensions
|
path: "{{ '~/.joplin/Joplin.AppImage' | expanduser }}"
|
||||||
|
register: joplin_app
|
||||||
|
|
||||||
|
- name: 'Joplin'
|
||||||
|
tags:
|
||||||
|
- install
|
||||||
|
- joplin
|
||||||
|
block:
|
||||||
|
- name: 'Joplin: Create directory'
|
||||||
|
file:
|
||||||
|
path: "{{ '~/.joplin' | expanduser }}"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: 'Joplin: Fetch latest version number'
|
||||||
|
shell: 'curl --silent https://api.github.com/repos/laurent22/joplin/releases/latest | grep -Po "\"tag_name\": \"v\K.*?(?=\")"'
|
||||||
|
register: joplin_version
|
||||||
|
|
||||||
|
- name: "Joplin: Fetch latest version ({{ joplin_version.stdout }})"
|
||||||
|
get_url:
|
||||||
|
url: "https://github.com/laurent22/joplin/releases/download/v{{ joplin_version.stdout }}/Joplin-{{ joplin_version.stdout }}-x86_64.AppImage"
|
||||||
|
dest: "{{ '~/.joplin/Joplin.AppImage' | expanduser }}"
|
||||||
|
mode: '0500'
|
||||||
|
when: joplin_app.stat.exists == false
|
||||||
|
|
|
@ -34,6 +34,7 @@ homebrew_cask_items:
|
||||||
- handbrake
|
- handbrake
|
||||||
- iterm2
|
- iterm2
|
||||||
- itsycal
|
- itsycal
|
||||||
|
- joplin
|
||||||
- keybase
|
- keybase
|
||||||
- osxfuse
|
- osxfuse
|
||||||
- resilio-sync
|
- resilio-sync
|
||||||
|
|
Loading…
Reference in a new issue