-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
54 lines (46 loc) · 1.11 KB
/
local.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
44
45
46
47
48
49
50
51
52
53
54
- hosts: localhost
become: false
pre_tasks:
- name: Ensuring Homebrew Is Installed
stat:
path: /usr/local/bin/brew
register: homebrew_check
when: ansible_facts['os_family'] == "Darwin"
tags:
- always
tasks:
- name: Updating Homebrew
homebrew:
update_homebrew: true
when:
- ansible_facts['os_family'] == "Darwin"
tags:
- always
- name: Updating apt
become: true
apt:
force_apt_get: true
update_cache: true
state: present
when:
- ansible_facts['os_family'] == "Debian"
tags:
- always
- name: Include Child Task
import_tasks: tasks/zsh.yml
- name: Include Child Task
import_tasks: tasks/utils.yml
- name: Include Child Task
import_tasks: tasks/node.yml
- name: Install stow (Darwin)
homebrew:
name: stow
state: present
when:
- ansible_facts['os_family'] == "Darwin"
tags:
- dotfiles
- name: Link dotfiles with GNU stow
shell: ./install-dotfiles
tags:
- dotfiles