dotfiles/.config/yadm/bootstrap
Sergio Laín d25ee1dfda
feat(yadm): yadm bootstrap and ansible scripts
first setup to use in the future ansible and yadm. this is made to automatized the installation
process in a new machine
2023-10-01 21:41:21 +02:00

16 lines
549 B
Bash

#!/bin/sh
# Because Git submodule commands cannot operate without a work tree, they must
# be run from within $HOME (assuming this is the root of your dotfiles)
cd "$HOME"
echo "Init submodules"
yadm submodule update --recursive --init
system_type=$(lsb_release -s -d | tr -d '"')
if [[ $system_type == "Arch Linux" ]]; then
# Install System Tools and Configurations
ansible-galaxy collection install kewlfft.aur
ansible-playbook -v -u $USER -K playbook_system_arch.yml
ansible-playbook -v -u $USER -K playbook_packages_arch.yml