2019-01-12 19:03:34 +00:00
|
|
|
- name: Adding repositories
|
|
|
|
tags: install
|
|
|
|
apt_repository:
|
|
|
|
repo: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: "{{ linux_repos }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Installing packages
|
|
|
|
tags: install
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: "{{ linux_packages }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Installing Snaps
|
|
|
|
tags: install
|
|
|
|
# snap:
|
|
|
|
# name: "{{ item }}"
|
|
|
|
# state: present
|
|
|
|
command: "snap install {{ item }}"
|
|
|
|
with_items: "{{ linux_apps }}"
|
|
|
|
become: true
|
2019-01-13 10:44:46 +00:00
|
|
|
|
|
|
|
- name: Installing fonts
|
|
|
|
tags: install
|
|
|
|
block:
|
|
|
|
- name: Create temporary file for Modern Pictograms font
|
|
|
|
tempfile:
|
|
|
|
state: file
|
|
|
|
suffix: ".zip"
|
|
|
|
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 }}"
|
|
|
|
dest: "~/.local/share/fonts"
|
|
|
|
exclude: "*.txt"
|
|
|
|
|
|
|
|
- name: Remove temporary file
|
|
|
|
file:
|
|
|
|
path: "{{ fontzip.path }}"
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Refresh font cache
|
|
|
|
command: "fc-cache -f"
|