2019-02-22 20:45:18 +00:00
|
|
|
- name: Apt public GPG keys
|
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
- repos
|
|
|
|
apt_key:
|
|
|
|
state: present
|
|
|
|
url: "{{ item }}"
|
|
|
|
loop: "{{ linux_repos_keys }}"
|
|
|
|
become: true
|
|
|
|
|
2019-01-12 19:03:34 +00:00
|
|
|
- name: Adding repositories
|
2019-01-13 18:04:27 +00:00
|
|
|
tags:
|
|
|
|
- install
|
2019-01-27 10:24:19 +00:00
|
|
|
- repos
|
2019-01-12 19:03:34 +00:00
|
|
|
apt_repository:
|
|
|
|
repo: "{{ item }}"
|
|
|
|
state: present
|
2019-01-20 10:51:09 +00:00
|
|
|
loop: "{{ linux_repos }}"
|
2019-01-12 19:03:34 +00:00
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Installing packages
|
2019-01-13 18:04:27 +00:00
|
|
|
tags:
|
|
|
|
- install
|
2019-01-27 10:24:19 +00:00
|
|
|
- packages
|
2019-01-12 19:03:34 +00:00
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2019-01-20 10:51:09 +00:00
|
|
|
loop: "{{ linux_packages }}"
|
2019-01-12 19:03:34 +00:00
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Installing Snaps
|
2019-01-13 18:04:27 +00:00
|
|
|
tags:
|
|
|
|
- install
|
2019-01-27 10:24:19 +00:00
|
|
|
- snaps
|
2019-01-12 19:03:34 +00:00
|
|
|
# snap:
|
|
|
|
# name: "{{ item }}"
|
|
|
|
# state: present
|
|
|
|
command: "snap install {{ item }}"
|
2019-01-20 10:51:09 +00:00
|
|
|
loop: "{{ linux_apps }}"
|
2019-01-12 19:03:34 +00:00
|
|
|
become: true
|
2019-01-13 10:44:46 +00:00
|
|
|
|
2019-02-22 20:45:44 +00:00
|
|
|
- name: Ensure shared fonts directory exists
|
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
- fonts
|
|
|
|
file:
|
|
|
|
path: '~/.local/share/fonts'
|
|
|
|
state: directory
|
|
|
|
|
2019-01-13 16:53:08 +00:00
|
|
|
- name: Checking for Modern Pictogram font
|
2019-01-13 18:04:27 +00:00
|
|
|
tags:
|
|
|
|
- install
|
2019-01-27 10:24:19 +00:00
|
|
|
- fonts
|
2019-01-13 16:53:08 +00:00
|
|
|
stat:
|
2019-01-13 18:04:27 +00:00
|
|
|
path: '~/.local/share/fonts/modernpics.otf'
|
2019-01-13 16:53:08 +00:00
|
|
|
register: fontfile
|
|
|
|
|
2019-01-13 10:44:46 +00:00
|
|
|
- name: Installing fonts
|
2019-01-13 18:04:27 +00:00
|
|
|
tags:
|
|
|
|
- install
|
2019-01-27 10:24:19 +00:00
|
|
|
- fonts
|
2019-01-13 10:44:46 +00:00
|
|
|
block:
|
|
|
|
- name: Create temporary file for Modern Pictograms font
|
|
|
|
tempfile:
|
|
|
|
state: file
|
2019-01-13 18:04:27 +00:00
|
|
|
suffix: '.zip'
|
2019-01-13 10:44:46 +00:00
|
|
|
register: fontzip
|
|
|
|
|
|
|
|
- name: Download Modern Pictograms font
|
|
|
|
get_url:
|
|
|
|
url: https://www.fontsquirrel.com/fonts/download/modern-pictograms
|
|
|
|
dest: "{{ fontzip.path }}"
|
|
|
|
force: true
|
|
|
|
register: fetchurl
|
|
|
|
|
|
|
|
- name: Unzip Modern Pictograms font
|
|
|
|
unarchive:
|
|
|
|
src: "{{ fontzip.path }}"
|
2019-01-13 18:04:27 +00:00
|
|
|
dest: '~/.local/share/fonts'
|
|
|
|
exclude: '*.txt'
|
2019-01-13 10:44:46 +00:00
|
|
|
|
|
|
|
- name: Remove temporary file
|
|
|
|
file:
|
|
|
|
path: "{{ fontzip.path }}"
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Refresh font cache
|
2019-01-13 18:04:27 +00:00
|
|
|
command: 'fc-cache -f'
|
2019-01-13 16:53:08 +00:00
|
|
|
when: fontfile.stat.exists == false
|
2019-01-20 11:30:24 +00:00
|
|
|
|
|
|
|
- name: Platform specific packages
|
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
- platform
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
loop: "{{ lookup('vars', lookup('vars', 'ansible_system_vendor') + '_' + lookup('vars', 'ansible_form_factor') + '_packages') }}"
|
|
|
|
become: true
|
2019-01-20 17:35:45 +00:00
|
|
|
|
2019-02-01 21:22:04 +00:00
|
|
|
- name: 'Gnome extensions'
|
2019-01-27 10:24:19 +00:00
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
- gnome
|
2019-02-01 21:22:04 +00:00
|
|
|
block:
|
|
|
|
- name: Galaxy role to install Gnome extensions
|
|
|
|
command: ansible-galaxy install jaredhocutt.gnome_extensions
|
|
|
|
|
|
|
|
- name: Include jaredhocutt.gnome_extensions
|
|
|
|
include_role:
|
|
|
|
name: jaredhocutt.gnome_extensions
|
2019-01-20 17:35:45 +00:00
|
|
|
|
2019-02-01 21:22:04 +00:00
|
|
|
- name: 'Joplin: Check installation'
|
2019-01-27 10:24:19 +00:00
|
|
|
tags:
|
|
|
|
- install
|
2019-02-01 21:22:04 +00:00
|
|
|
- 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
|