-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotfiles.yaml
More file actions
73 lines (71 loc) · 2.45 KB
/
dotfiles.yaml
File metadata and controls
73 lines (71 loc) · 2.45 KB
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
- name: Configure
hosts: localhost
vars_files:
- vars/default.yaml
- "vars/{{ ansible_facts['hostname'] }}.yaml"
tasks:
- name: Ensure Directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: "0755"
loop:
- ~/.config/mypy
- ~/.config/yapf
- name: Copy Configs
when: item.src is exists
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "0644"
loop:
- src: etc/starship/starship.toml
dest: ~/.config/starship.toml
- src: etc/fish/config.fish
dest: ~/.config/fish/config.fish
- src: etc/fish/completions/aws.fish
dest: ~/.config/fish/completions/aws.fish
- src: etc/fish/completions/cobra-cli.fish
dest: ~/.config/fish/completions/cobra-cli.fish
- src: etc/fish/completions/docker.fish
dest: ~/.config/fish/completions/docker.fish
- src: etc/fish/completions/oc.fish
dest: ~/.config/fish/completions/oc.fish
- src: etc/fish/completions/rosa.fish
dest: ~/.config/fish/completions/rosa.fish
- src: etc/fish/functions/mkcd.fish
dest: ~/.config/fish/functions/mkcd.fish
- src: etc/fish/functions/kubeconfig-set-token.fish
dest: ~/.config/fish/functions/kubeconfig-set-token.fish
- src: etc/fish/functions/k8s-groups-of.fish
dest: ~/.config/fish/functions/k8s-groups-of.fish
- src: etc/fish/functions/vault-kv-walk.fish
dest: ~/.config/fish/functions/vault-kv-walk.fish
- src: etc/bash/bash_aliases
dest: ~/.bash_aliases
- src: etc/bash/bashrc
dest: ~/.bashrc
- src: etc/vim/vimrc
dest: ~/.vimrc
- src: etc/flake8/flake8
dest: ~/.config/flake8
- src: etc/mypy/config
dest: ~/.config/mypy/config
- src: etc/yapf/style
dest: ~/.config/yapf/style
- src: "etc/ssh/config"
dest: ~/.ssh/config
mode: "400"
- src: etc/git/config
dest: ~/.gitconfig
- src: etc/tmux/tmux.conf
dest: ~/.tmux.conf
- src: etc/gnupg/gpg-agent.conf
dest: ~/.gnupg/gpg-agent.conf
- name: Delete Configs
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- ~/.config/fish/functions/k8s-node-ip.fish
- ~/.config/fish/functions/k8s-node-ssh.fish