-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
43 lines (38 loc) · 1.2 KB
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
- hosts: localhost
pre_tasks:
- name: Check Homebrew Installation
stat:
path: /usr/local/bin/brew
register: homebrew_check
- name: Installing Homebrew
shell: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
when:
- not homebrew_check.stat.exists
- name: Create inventory file
shell: touch inventory && echo "[localhost\]" > inventory && echo "$(hostname)" >> inventory
vars_prompt:
- name: user
private: false
prompt: "What is your username?"
salt_size: 8
vars:
dotfiles_repo: "https://github.com/camerow/dotfiles.git"
neovim_config_repo: "https://github.com/camerow/nvim.git"
ssh_key: ".ssh/id_rsa"
source_key: "./.ssh/id_rsa"
dest_key: "$HOME/.ssh/id_rsa"
personal: "$HOME/personal"
tasks:
- import_tasks: tasks/ssh.yml
tags: ["ssh"]
- import_tasks: tasks/node-setup.yml
tags: ["node"]
- import_tasks: tasks/zsh-setup.yml
tags: ["zsh"]
- import_tasks: tasks/dotfiles.yml
tags: ["dotfiles"]
- import_tasks: tasks/neovim.yml
tags: ["neovim"]
- import_tasks: tasks/git-config.yml
tags: ["git-config"]