Ansible tidy-up

This commit is contained in:
Scott Wallace 2019-01-13 18:04:27 +00:00
parent 14584986da
commit fb45407fa5
3 changed files with 30 additions and 28 deletions

View file

@ -1,5 +1,6 @@
- name: Adding repositories - name: Adding repositories
tags: install tags:
- install
apt_repository: apt_repository:
repo: "{{ item }}" repo: "{{ item }}"
state: present state: present
@ -7,7 +8,8 @@
become: true become: true
- name: Installing packages - name: Installing packages
tags: install tags:
- install
package: package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
@ -15,7 +17,8 @@
become: true become: true
- name: Installing Snaps - name: Installing Snaps
tags: install tags:
- install
# snap: # snap:
# name: "{{ item }}" # name: "{{ item }}"
# state: present # state: present
@ -24,18 +27,20 @@
become: true become: true
- name: Checking for Modern Pictogram font - name: Checking for Modern Pictogram font
tags: install tags:
- install
stat: stat:
path: "~/.local/share/fonts/modernpics.otf" path: '~/.local/share/fonts/modernpics.otf'
register: fontfile register: fontfile
- name: Installing fonts - name: Installing fonts
tags: install tags:
- install
block: block:
- name: Create temporary file for Modern Pictograms font - name: Create temporary file for Modern Pictograms font
tempfile: tempfile:
state: file state: file
suffix: ".zip" suffix: '.zip'
register: fontzip register: fontzip
- name: Download Modern Pictograms font - name: Download Modern Pictograms font
@ -48,8 +53,8 @@
- name: Unzip Modern Pictograms font - name: Unzip Modern Pictograms font
unarchive: unarchive:
src: "{{ fontzip.path }}" src: "{{ fontzip.path }}"
dest: "~/.local/share/fonts" dest: '~/.local/share/fonts'
exclude: "*.txt" exclude: '*.txt'
- name: Remove temporary file - name: Remove temporary file
file: file:
@ -57,5 +62,5 @@
state: absent state: absent
- name: Refresh font cache - name: Refresh font cache
command: "fc-cache -f" command: 'fc-cache -f'
when: fontfile.stat.exists == false when: fontfile.stat.exists == false

View file

@ -1,17 +1,14 @@
config_repos: config_repos:
# - name: "dotfiles" - name: 'albert'
# repo: "git@github.com:scottwallacesh/dotfiles.git" repo: 'git@github.com:scottwallacesh/albert.git'
# dest: "~/" dest: '~/.local/share/albert'
- name: "albert"
repo: "git@github.com:scottwallacesh/albert.git"
dest: "~/.local/share/albert"
linux_repos: linux_repos:
- "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" # Visual Studio Code - 'deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main' # Visual Studio Code
- "deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.10/ /" # Albert - 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.10/ /' # Albert
- "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" # Resilio Sync - 'deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free' # Resilio Sync
- "deb http://prerelease.keybase.io/deb stable main" # Keybase - 'deb http://prerelease.keybase.io/deb stable main' # Keybase
- "deb https://apt.enpass.io/ stable main" # Enpass - 'deb https://apt.enpass.io/ stable main' # Enpass
linux_packages: linux_packages:
- albert - albert

View file

@ -19,7 +19,7 @@
user_pref("privacy.window.maxInnerWidth", 1400); user_pref("privacy.window.maxInnerWidth", 1400);
user_pref("privacy.window.maxInnerHeight", 900); user_pref("privacy.window.maxInnerHeight", 900);
dest: "{{ firefox_path }}/{{ profile_path }}/user.js" dest: "{{ firefox_path }}/{{ profile_path }}/user.js"
mode: 0440 mode: '0600'
- name: 'OS X: Dock orientation' - name: 'OS X: Dock orientation'
tags: tags:
@ -37,7 +37,7 @@
domain: com.apple.dock domain: com.apple.dock
type: float type: float
key: tilesize key: tilesize
value: 35 value: '35'
- name: 'OS X: Smart quotes off' - name: 'OS X: Smart quotes off'
tags: tags:
@ -46,7 +46,7 @@
domain: NSGlobalDomain domain: NSGlobalDomain
type: int type: int
key: NSAutomaticQuoteSubstitutionEnabled key: NSAutomaticQuoteSubstitutionEnabled
value: 0 value: '0'
- name: 'OS X: Smart dashes off' - name: 'OS X: Smart dashes off'
tags: tags:
@ -55,7 +55,7 @@
domain: NSGlobalDomain domain: NSGlobalDomain
type: int type: int
key: NSAutomaticDashSubstitutionEnabled key: NSAutomaticDashSubstitutionEnabled
value: 0 value: '0'
- name: 'OS X: Spell correction off' - name: 'OS X: Spell correction off'
tags: tags:
@ -64,7 +64,7 @@
domain: NSGlobalDomain domain: NSGlobalDomain
type: int type: int
key: NSAutomaticSpellingCorrectionEnabled key: NSAutomaticSpellingCorrectionEnabled
value: 0 value: '0'
- name: 'OS X: Web spell correction off' - name: 'OS X: Web spell correction off'
tags: tags:
@ -73,9 +73,9 @@
domain: NSGlobalDomain domain: NSGlobalDomain
type: int type: int
key: WebAutomaticSpellingCorrectionEnabled key: WebAutomaticSpellingCorrectionEnabled
value: 0 value: '0'
- name: 'OS X: Clear preferences cache' - name: 'OS X: Clear preferences cache'
tags: tags:
- config - config
command: pkill -u ${USER} cfprefsd command: 'pkill -u ${USER} cfprefsd'