dotfiles/.ansible/roles/desktop/tasks/linux/00_software.yaml

84 lines
1.8 KiB
YAML
Raw Normal View History

- name: Adding repositories
2019-01-13 18:04:27 +00:00
tags:
- install
apt_repository:
repo: "{{ item }}"
state: present
2019-01-20 10:51:09 +00:00
loop: "{{ linux_repos }}"
become: true
- name: Installing packages
2019-01-13 18:04:27 +00:00
tags:
- install
package:
name: "{{ item }}"
state: present
2019-01-20 10:51:09 +00:00
loop: "{{ linux_packages }}"
become: true
- name: Installing Snaps
2019-01-13 18:04:27 +00:00
tags:
- install
# snap:
# name: "{{ item }}"
# state: present
command: "snap install {{ item }}"
2019-01-20 10:51:09 +00:00
loop: "{{ linux_apps }}"
become: true
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-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
- name: Installing fonts
2019-01-13 18:04:27 +00:00
tags:
- install
block:
- name: Create temporary file for Modern Pictograms font
tempfile:
state: file
2019-01-13 18:04:27 +00:00
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 }}"
2019-01-13 18:04:27 +00:00
dest: '~/.local/share/fonts'
exclude: '*.txt'
- 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
- 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
- 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