Search code examples
gitansiblezshoh-my-zshdotfiles

How do I automate dotfiles setup / management with ansible?


Bootstrapping dotfiles setup via scripts (bash, zsh) eventually gets complicated. How can Ansible be leveraged to automate setup?


Solution

  • Steps:

    • Clone the repo: ellaqezi/dotfiles on github into $dotfiles_dir
    • Install Ansible
    • Run the playbook (the become password is your user's password)

      cd $dotfiles_dir/ansible
      ansible-playbook -i hosts setup-dotfiles.yml --ask-become-pass
      

    Do also check out the dotfiles utilities listed in https://dotfiles.github.io/