dotfiles
Requirements
Ubuntu
sudo apt update \
&& sudo apt install -y software-properties-common \
&& sudo apt-add-repository -y --update ppa:ansible/ansible \
&& sudo apt install -y ansible git
macOS
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
xcode-select --install
brew update && brew install caskroom/cask/brew-cask ansible git
Generate ssh key to establish connection with GitHub. Connecting to GitHub with SSH. You may need to add some lines of configuration to ~/.ssh/config
. See here
To use HTTPS for authentication, set up credential helper(now macOS only).
git config --global credential.helper osxkeychain
See here for details.
Generate Personal Access Token with repo
and workflow
permission.
Run Playbook
git clone https://github.com/ikanago/dotfiles.git
cd dotfiles
ansible-playbook main.yml -K
ansible-playbook main.yml --tags dotfiles # dotfiles only