-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
103 lines (97 loc) · 3.12 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
- hosts: localhost
connection: local
vars_files:
- "vars/common.yml"
- "vars/{{ ansible_facts['os_family'] }}.yml"
vars:
source_key: "./ssh_keys/id_local"
dest_key: "{{ lookup('env', 'HOME') }}/.local/share/ssh/id_local"
github_key: "./ssh_keys/id_github"
github_dest_key: "{{ lookup('env', 'HOME') }}/.local/share/ssh/id_github"
gitlab_key: "./ssh_keys/id_gitlab"
gitlab_dest_key: "{{ lookup('env', 'HOME') }}/.local/share/ssh/id_gitlab"
personal: "{{ lookup('env', 'HOME') }}/personal"
environment:
N_PREFIX: "{{ lookup('env', 'HOME') }}/.local/share/n"
PATH: "{{ lookup('env', 'HOME') }}/.local/share/npm-global/bin:{{ lookup('env', 'HOME') }}/.local/share/n/bin:{{ lookup('env', 'PATH') }}"
pre_tasks:
- name: Update Apt
when: ansible_facts['os_family'] == "Debian"
become: true
apt:
force_apt_get: true
update_cache: true
state: present
tags: ["always"]
- name: Update Homebrew
when: ansible_facts['os_family'] == "Darwin"
community.general.homebrew:
update_homebrew: true
upgrade_all: true
tags: ["always"]
tasks:
- name: Include SSH
ansible.builtin.include_tasks:
file: tasks/ssh.yml
apply:
tags: ["always", "ssh", "node", "zsh", "neovim", "emacs", "dotfiles", "misc", "fonts"]
- name: Include Core
ansible.builtin.include_tasks:
file: tasks/core.yml
apply:
tags: ["always", "node", "zsh", "neovim", "emacs", "dotfiles", "misc"]
- name: Include Dotfiles
ansible.builtin.include_tasks:
file: tasks/dotfiles.yml
apply:
tags: ["always", "dotfiles", "neovim", "emacs", "fonts"]
- name: Include Node
ansible.builtin.include_tasks:
file: tasks/node.yml
apply:
tags: ["always", "node"]
- name: Include Python
ansible.builtin.include_tasks:
file: tasks/python.yml
apply:
tags: ["always", "python"]
- name: Include Ruby
ansible.builtin.include_tasks:
file: tasks/ruby.yml
apply:
tags: ["always", "ruby"]
- name: Include Swift
ansible.builtin.include_tasks:
file: tasks/swift.yml
apply:
tags: ["always", "swift"]
- name: Include Zsh
ansible.builtin.include_tasks:
file: tasks/zsh.yml
apply:
tags: ["always", "zsh"]
- name: Include Neovim
ansible.builtin.include_tasks:
file: tasks/neovim.yml
apply:
tags: ["always", "neovim"]
- name: Include Emacs
ansible.builtin.include_tasks:
file: tasks/emacs.yml
apply:
tags: ["always", "emacs"]
- name: Include Kitty
ansible.builtin.include_tasks:
file: tasks/kitty.yml
apply:
tags: ["always", "kitty"]
- name: Include Misc
ansible.builtin.include_tasks:
file: tasks/misc.yml
apply:
tags: ["always", "misc"]
- name: Include Fonts
ansible.builtin.include_tasks:
file: tasks/fonts.yml
apply:
tags: ["always", "fonts", "dotfiles", "emacs"]