Last active
April 26, 2023 22:43
-
-
Save kensleDev/2625e6fc69bfcc82e7450db06b0e883c to your computer and use it in GitHub Desktop.
Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################## | |
# 1 - Install Ansible dependancies (Python3) and clone dotfiles | |
############################## | |
sudo pacman -Syu | |
yes | sudo pacman -S git | |
git clone https://aur.archlinux.org/yay-git.git ~/tmp/yay | |
cd ~/tmp/yay | |
yes | makepkg -si | |
yay -Syu | |
yes | yay -S ansible | |
############################## | |
# 2 - Clone dotfiles | |
############################## | |
git clone https://github.com/julian-iaquinandi/dotfiles ~/dotfiles | |
########################################## | |
# 3 - Choose playbooks to run | |
########################################## | |
ansible-playbook ~/dotfiles/ansible/playbooks/ssh-keys.yml | |
ansible-galaxy install gantsign.oh-my-zsh | |
ansible-playbook ~/dotfiles/ansible/playbooks/arch_command_line_install.yml --ask-become-pass | |
ansible-playbook ~/dotfiles/ansible/playbooks/nvm_install.yml | |
ansible-playbook ~/dotfiles/ansible/playbooks/neovim_config.yml | |
# Run zsh before installing global npm packages | |
ansible-playbook ~/dotfiles/ansible/playbooks/npm_globals_install.yml | |
############################## | |
# 4 - Setup Github | |
############################## | |
gh auth login | |
cd ~/dotfiles | |
git remote set-url origin [email protected]:julian-iaquinandi/dotfiles.git | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Developer env setup | |
############################## | |
# 1 - Install Ansible dependancies (Python3) and clone dotfiles | |
############################## | |
sudo apt update -y && | |
sudo apt upgrade -y && | |
sudo apt install -y python3 python3-pip git ansible | |
############################## | |
# 2 - Clone dotfiles | |
############################## | |
git clone https://github.com/julian-iaquinandi/dotfiles ~/dotfiles | |
########################################## | |
# 3 - Choose playbooks to run | |
########################################## | |
ansible-playbook ~/dotfiles/ansible/playbooks/ssh-keys.yml | |
ansible-galaxy install gantsign.oh-my-zsh | |
ansible-playbook ~/dotfiles/ansible/playbooks/base_install.yml --ask-become-pass | |
ansible-galaxy collection install community.general | |
ansible-playbook ~/dotfiles/ansible/playbooks/rust_install.yml --ask-become-pass | |
ansible-playbook ~/dotfiles/ansible/playbooks/nvm_install.yml | |
ansible-playbook ~/dotfiles/ansible/playbooks/neovim_install.yml | |
# Run nvim after install, enter command :PackerInstall and restart | |
# Run zsh before installing global npm packages | |
ansible-playbook ~/dotfiles/ansible/playbooks/npm_globals_install.yml | |
############################## | |
# 4 - Setup Github | |
############################## | |
gh auth login | |
cd ~/dotfiles | |
git remote set-url origin [email protected]:julian-iaquinandi/dotfiles.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NVM and GH currently broken for debain