Add the installation of Joplin

This commit is contained in:
Scott Wallace 2019-02-01 21:22:04 +00:00
parent 08fa8a96c4
commit a41002d2c7
2 changed files with 35 additions and 6 deletions

View file

@ -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
block:
- name: Galaxy role to install Gnome extensions
command: ansible-galaxy install jaredhocutt.gnome_extensions command: ansible-galaxy install jaredhocutt.gnome_extensions
- name: Include jaredhocutt.gnome_extensions - name: Include jaredhocutt.gnome_extensions
tags:
- install
- gnome
include_role: include_role:
name: jaredhocutt.gnome_extensions name: jaredhocutt.gnome_extensions
- name: 'Joplin: Check installation'
tags:
- install
- joplin
stat:
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

View file

@ -34,6 +34,7 @@ homebrew_cask_items:
- handbrake - handbrake
- iterm2 - iterm2
- itsycal - itsycal
- joplin
- keybase - keybase
- osxfuse - osxfuse
- resilio-sync - resilio-sync