Split variables into different files

This commit is contained in:
Oliver Davies 2016-06-30 22:54:44 +01:00
parent bfab532419
commit f7c32b20ac
4 changed files with 31 additions and 32 deletions

View file

@ -2,14 +2,16 @@
- hosts: all
vars_files:
- vars/main.yml
- vars/dotfiles.yml
- vars/homebrew.yml
- vars/misc.yml
tasks:
- { include: tasks/sudoers.yml, tags: ['base', 'sudoers'] }
roles:
- { role: geerlingguy.dotfiles, tags: ['dotfiles'] }
- { role: geerlingguy.homebrew, tags: ['brew'] }
- { role: geerlingguy.homebrew, tags: ['brew', 'homebrew'] }
- { role: dotstrap.fish, tags: ['fish'] }
- { role: sublime, tags: ['sublime'] }
- { role: osx, tags: ['osx'] }

15
vars/dotfiles.yml Normal file
View file

@ -0,0 +1,15 @@
---
dotfiles_repo: "https://github.com/opdavies/dotfiles.git"
dotfiles_repo_local_destination: "~/Code/Personal/github/dotfiles"
dotfiles_files:
# - .composer/composer.json
# - .composer/composer.lock
- .config/fish/functions/ga.fish
- .config/fish/functions/gc.fish
- .config/fish/functions/gs.fish
- .config/fish/functions/l.fish
- .config/fish/functions/v.fish
- .gitconfig
- .gitignore-global
- .ideavimrc
- .vimrc

View file

@ -1,19 +1,4 @@
---
dotfiles_repo: "https://github.com/opdavies/dotfiles.git"
dotfiles_repo_local_destination: "~/Code/Personal/github/dotfiles"
dotfiles_files:
# - .composer/composer.json
# - .composer/composer.lock
- .config/fish/functions/ga.fish
- .config/fish/functions/gc.fish
- .config/fish/functions/gs.fish
- .config/fish/functions/l.fish
- .config/fish/functions/v.fish
- .gitconfig
- .gitignore-global
- .ideavimrc
- .vimrc
homebrew_taps:
- caskroom/cask
- caskroom/fonts
@ -30,11 +15,10 @@ homebrew_installed_packages:
- git-sh
- htop
- hub
- mas
- myrepos
- mysql
- peco
# - php56
# - php56-xdebug
- phpmd
- phpunit
- python
@ -83,16 +67,3 @@ homebrew_cask_apps:
- vagrant
- virtualbox
- vlc
homebrew_upgrade_all_packages: yes
ruby_install_gems:
- grunt
- jekyll
nodejs_forever: false
nodejs_npm_global_packages:
- name: grunt-cli
- name: gulp
sublime_path: "~/Library/Application Support/Sublime Text 2"

11
vars/misc.yml Normal file
View file

@ -0,0 +1,11 @@
---
ruby_install_gems:
- grunt
- jekyll
nodejs_forever: false
nodejs_npm_global_packages:
- name: grunt-cli
- name: gulp
sublime_path: "~/Library/Application Support/Sublime Text 2"