-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
51 lines (46 loc) · 1.32 KB
/
playbook.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
- name: gghcode env init
hosts: local
connection: local
gather_facts: yes
vars:
user_email: "[email protected]"
main_user: "{{ lookup('env','SUDO_USER') | default(ansible_user_id, true) }}"
roles:
- role: certbot
when:
- lets_encrypt_domain is defined
- lets_encrypt_domain != ''
certbot_create_if_missing: yes
certbot_create_standalone_stop_services: []
certbot_auto_renew: true
certbot_auto_renew_user: "{{ main_user }}"
certbot_auto_renew_options: "--quiet --no-self-upgrade"
certbot_admin_email: "{{ user_email }}"
certbot_certs:
- domains:
- "{{ lets_encrypt_domain }}"
- role: code-server
when: skip_code_server|bool != true
- role: git
git_author_name: "Gyuhwan Kim"
git_author_email: "{{ user_email }}"
- role: oh-my-zsh
users:
- username: "{{ main_user }}"
oh_my_zsh_theme: ""
oh_my_zsh_plugins:
- git
- zsh-autosuggestions
- zsh-syntax-highlighting
- role: asdf
asdf_init_shell: true
asdf_plugins:
- name: "python"
- name: "nodejs"
- name: "golang"
- name: "rclone"
- name: "terraform"
- name: "kubectl"
- role: docker
become: yes
when: skip_docker|bool != true