-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
38 lines (37 loc) · 1.11 KB
/
main.yml
File metadata and controls
38 lines (37 loc) · 1.11 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
- hosts: localhost
become: true
vars:
ansible_user: alecwang
node_version: v18.16.1
python_version: 3.10.12
source_dir: "/home/alecwang/DevMachineSetup"
git_username: alswang18
git_email: alec.sy.wang@gmail.com
pre_tasks:
- name: Update apt cache
apt:
update_cache: yes
tasks:
- name: Install zsh
apt:
name: zsh
state: present
- name: Set Zsh as default shell
ansible.builtin.command:
cmd: chsh -s /usr/bin/zsh "{{ ansible_user }}"
become: true
become_user: root
# sets up github
# - import_tasks: ./tasks/git.yml
# sets up ssh
# - import_tasks: ./tasks/ssh.yml
# installs oh-my-zsh
- import_tasks: ./tasks/install_docker.yml
# Make sure to change the repo your pointing at. We hard code noble Ubuntu.
# - import_tasks: ./tasks/install_oh_my_zsh.yml
# # installs node js stuff
# - import_tasks: ./tasks/install_fnm.yml
# # # installs rust stuff
# - import_tasks: ./tasks/install_cargo_and_crates.yml
# # # installs python stuff
# - import_tasks: ./tasks/install_pyenv.yml