-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
181 lines (181 loc) · 5.59 KB
/
playbook.yml
File metadata and controls
181 lines (181 loc) · 5.59 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
---
- name: Setup development environment
hosts: localhost
become: true
vars_files:
- secrets.yml
tasks:
- name: Setup git
ansible.builtin.import_tasks:
file: ansible/git/tasks/main.ansible.yml
vars:
git_dir: "/home/{{ local_user }}"
git_name: "{{ name }}"
git_email: "{{ email }}"
- name: Setup oh-my-zsh
ansible.builtin.import_tasks:
file: ansible/oh_my_zsh/tasks/main.ansible.yml
vars:
oh_my_zsh_users: "{{ local_users }}"
oh_my_zsh_theme: robbyrussell
oh_my_zsh_plugins:
- docker
- docker-compose
- git
- terraform
- vscode
oh_my_zsh_exports:
- name: PATH
value: $PATH:/usr/local/go/bin
oh_my_zsh_aliases:
- name: ll
command: ls --all --human-readable -l
- name: tf
command: terraform
- name: tfc
command: terraform apply
- name: tfcal
command: terraform apply --auto-approve
- name: tfd
command: terraform destroy
- name: tfdal
command: terraform destroy --auto-approve
- name: tfi
command: terraform init
- name:
- tfp
- tfplan
command: terraform plan
- name:
- tfr
- tfrefresh
command: terraform refresh
- name:
- tfs
- tfshow
command: terraform show
- name: tfdebug
command: export "TF_LOG"=DEBUG
- name: tftrace
command: export "TF_LOG"=TRACE
- name: tfwarn
command: export "TF_LOG"=WARN
- name: tfinfo
command: export "TF_LOG"=INFO
- name:
- gc
- gitc
command: git clone
- name:
- gp
- gpull
command: git pull
- name:
- goc
- goclean
command: go clean -testcache
- name:
- gocover
- gocoverage
command: go test -coverprofile=_coverage.out ./...&&go tool cover -html=_coverage.out -o _coverage.html
- name:
- gomodtidy
- gomodt
- gomt
- gmt
command: go mod tidy
- name:
- gog
- goget
command: go get
- name: x
command: export
- name: nano
command: code
- name: Set system locales
ansible.builtin.import_tasks:
file: ansible/locales/tasks/main.ansible.yml
vars:
locales:
- "en_US.UTF-8 UTF-8"
- name: Install ansible lint
ansible.builtin.import_tasks:
file: ansible/ansible_lint/tasks/main.ansible.yml
- name: Install inkscape
ansible.builtin.apt:
name: inkscape
state: present
cache_valid_time: 900
- name: Install influxdb2-client
ansible.builtin.import_tasks:
file: ansible/influxdb/tasks/main.ansible.yml
- name: Install Docker
ansible.builtin.include_role:
name: geerlingguy.docker
vars:
docker_install_compose_plugin: true
docker_users: "{{ local_users }}"
- name: Install Terraform
ansible.builtin.import_tasks:
file: ansible/terraform/tasks/main.ansible.yml
- name: Install GO
ansible.builtin.include_role:
name: tinyblargon.go
vars:
go_version: "1.24.5"
go_checksum: sha256:10ad9e86233e74c0f6590fe5426895de6bf388964210eac34a6d83f38918ecdc
- name: Install GO tools
ansible.builtin.import_tasks:
file: ansible/go_tools/tasks/main.ansible.yml
vars:
go_root: "/usr/local/go"
go_modules:
- name: github.com/go-delve/delve/cmd/dlv
- name: golang.org/x/tools/cmd/goimports
- name: golang.org/x/tools/gopls
- name: honnef.co/go/tools/cmd/staticcheck
- name: Install VSCode extensions
ansible.builtin.import_tasks:
file: ansible/vscode/tasks/main.ansible.yml
vars:
vscode_machine_config: >-
{{ lookup('file', './vscode/server/machine.json') }}
vscode_workspaces:
- path: "~"
config: >-
{{ lookup('file', './vscode/server/workspace-home.json') }}
vscode_extensions:
- redhat.ansible
- mads-hartmann.bash-ide-vscode
- alefragnani.bookmarks
- streetsidesoftware.code-spell-checker
- github.copilot
- usernamehw.errorlens
- zokugun.explicit-folding
- golang.go
- eamodio.gitlens
- george-alisson.html-preview-vscode
- jeremyfunk.hidefiles
- oderwat.indent-rainbow
- meezilla.json
- samuelcolvin.jinjahtml
- jeff-hykin.polacode-2019
- esbenp.prettier-vscode
- gurumukhi.selected-lines-count
- tyriar.sort-lines
- jock.svg
- hashicorp.terraform
- gruntfuggly.todo-tree
- leonardssh.vscord
- vivaxy.vscode-conventional-commits
- ms-azuretools.vscode-docker
- hediet.vscode-drawio
- 42crunch.vscode-openapi
- davidanson.vscode-markdownlint
- hangxingliu.vscode-systemd-support
- ahmadalli.vscode-nginx-conf
- yandeu.five-server
- patriciodiaz.go-struct-analyzer
- janisdd.vscode-edit-csv
- mechatroner.rainbow-csv
- wix.vscode-import-cost