-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
54 lines (52 loc) · 1.36 KB
/
main.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
connection: local
vars_files:
- default.config.yml
pre_tasks:
- name: Create folder for .config
command: mkdir -p ~/.config
- name: dotfiles_files_common
when: ansible_os_family != 'Darwin'
set_fact:
dotfiles_files: "{{ dotfiles_files_common }}"
- name: dotfiles_files_common - MacOS
when: ansible_os_family == 'Darwin'
set_fact:
dotfiles_files: "{{ dotfiles_files_common + dotfiles_files_darwin }}"
roles:
- role: geerlingguy.mac.homebrew
when: ansible_os_family == 'Darwin'
tags: ["homebrew"]
- role: elliotweiser.osx-command-line-tools
when: ansible_os_family == 'Darwin'
- role: geerlingguy.dotfiles
tasks:
- name: "add homebrew tools"
homebrew: name={{ item }} state=present
with_items:
- age
- kubectl
- krew
- yamllint
- starship
- neovim
- fd
- eza
- bat
- jq
- fzf
- vimpager
- git-filter-repo
- thefuck
- tldr
- zig
- btop
- zoxide
- name: Install Krew plugins
shell: "kubectl krew install {{ item }}"
with_items: "{{ krew_plugins }}"
when: krew_plugins is defined
- name: MacOS Tasks
when: ansible_os_family == 'Darwin'
import_tasks: ./tasks/osx.yml