├── LICENSE ├── README.md ├── all.yml ├── ansible.cfg ├── hosts └── roles ├── .gitkeep ├── hub ├── meta │ └── main.yml └── tasks │ └── main.yml └── legit ├── meta └── main.yml └── tasks └── main.yml /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 osxc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | xc-custom 2 | ========= 3 | 4 | Your custom roles & Configuration 5 | -------------------------------------------------------------------------------- /all.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | 5 | # osx config 6 | - role: dock 7 | apps: 8 | - /Applications/Firefox.app 9 | - /Applications/Airmail.app 10 | - /Applications/Dashlane.app 11 | - /Applications/Spotify.app 12 | - /Applications/Airmail.app 13 | - "/Applications/Adobe Photoshop CC/Adobe Photoshop CC.app" 14 | - "/Applications/Adobe Illustrator CC/Adobe Illustrator.app" 15 | - /Applications/Atom.app 16 | - /Applications/iTerm.app 17 | - /Applications/Dash.app 18 | folders: 19 | - path: ~/ 20 | - path: ~/Documents 21 | - path: ~/Downloads 22 | sort: datemodified 23 | - role: cask_package 24 | package_name: asepsis 25 | - role: dashboard 26 | disabled: YES 27 | 28 | # fonts 29 | - role: cask_package 30 | tap: caskroom/fonts 31 | package_name: font-source-code-pro 32 | - role: cask_package 33 | tap: caskroom/fonts 34 | package_name: font-sauce-code-powerline 35 | 36 | # cli 37 | # shell tooling 38 | - role: git_config 39 | git_user_name: Bob Bob 40 | git_user_email: bob.bob@example.com 41 | - role: legit 42 | - role: hub 43 | - role: brew_package 44 | package_name: vim 45 | ## languages 46 | - role: brew_package 47 | package_name: node 48 | - role: rbenv 49 | - role: npm_package 50 | package_name: grunt 51 | - role: npm_package 52 | package_name: bower 53 | - role: cask_package 54 | package_name: java 55 | - role: brew_package 56 | package_name: android-sdk 57 | ## databases 58 | - role: brew_package 59 | package_name: postgres 60 | - role: brew_package 61 | package_name: mongodb 62 | ## deployment 63 | - role: brew_package 64 | package_name: heroku-toolbelt 65 | # - role: brew_package 66 | # package_name: ansible # Hey ! Already there ! 67 | 68 | # gui 69 | ## text editors 70 | - role: cask_package 71 | package_name: atom 72 | -------------------------------------------------------------------------------- /ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | 3 | hostfile = ./hosts 4 | roles_path = ~/src/github.com/osxc/xc-common/roles 5 | -------------------------------------------------------------------------------- /hosts: -------------------------------------------------------------------------------- 1 | localhost ansible_connection=local 2 | -------------------------------------------------------------------------------- /roles/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osxc/legacy-custom/d7b731c98336f1be3230916dcef18d4e5b5f143b/roles/.gitkeep -------------------------------------------------------------------------------- /roles/hub/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - role: brew_package 4 | package_name: hub 5 | -------------------------------------------------------------------------------- /roles/hub/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # shim hub 3 | 4 | - name: ensure bash_profile presence 5 | ignore_errors: True 6 | file: path=~/.bash_profile state=touch 7 | 8 | - name: ensure zshenv presence 9 | ignore_errors: True 10 | file: path=~/.zshenv state=touch 11 | 12 | - name: add shim to bash 13 | lineinfile: dest=~/.bash_profile regexp="hub" line="eval \"$(hub alias -s)\"" state=present 14 | 15 | - name: add shim to zsh 16 | lineinfile: dest=~/.zshenv regexp="hub" line="eval \"$(hub alias -s)\"" state=present 17 | -------------------------------------------------------------------------------- /roles/legit/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - role: brew_package 4 | package_name: legit 5 | -------------------------------------------------------------------------------- /roles/legit/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # links legit to git 3 | 4 | - name: legit link 5 | command: legit install 6 | --------------------------------------------------------------------------------