-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.yml
55 lines (55 loc) · 2.26 KB
/
init.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
- hosts:
- test
- server_nodes
- k8s_nodes
- localhost
vars:
source_key: "./secrets/ssh/id_rsa"
source_key_pub: "./secrets/ssh/id_rsa.pub"
dest_key: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa"
dest_key_pub: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa.pub"
personal: "{{ lookup('env', 'HOME') }}/private"
pre_tasks:
- name: Update Apt
become: true
apt:
force_apt_get: true
update_cache: true
state: present
tags:
- dev
- core
environment:
ANSIBLE_EXECUTABLE: /bin/bash
XDG_CONFIG_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.config"
XDG_CACHE_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.cache"
XDG_DATA_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share"
XDG_STATE_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/state"
ZDOTDIR: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.config/zsh"
ZSH: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.config/zsh/ohmyzsh"
CARGO_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share/cargo"
RUSTUP_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share/rustup"
NVM_DIR: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.config/nvm"
BUN_INSTALL: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share/bun"
GOPATH: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share/go"
DOCKER_CONFIG: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.config/docker"
ANSIBLE_HOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share/ansible"
GNUPGHOME: "{{ ansible_env.HOME | default('/home/{{ ansible_user }}') }}/.local/share/gnupg"
roles:
- debug
- apt
- dirs
- role: ssh
when: inventory_hostname == "localhost"
- zsh
- dotfiles
- neovim
- role: fonts
when: inventory_hostname == "localhost"
- rust
- go
- role: node
when: inventory_hostname == "localhost"
- role: 1password
when: inventory_hostname == "localhost"
- tools