GithubHelp home page GithubHelp logo

dotfiles-ansible's Introduction

Dotfiles via Ansible

I used to use Puppet for this. I had a good excuse to start fresh recently, and am migrating to Ansible.

Getting started

  • Log into LastPass to get Dropbox password.
  • Log into Dropbox and download sheldonh-gpg.tar and sheldonh-ssh.tar.enc.
  • Place sheldonh-gpg.tar and sheldonh-ssh.tar.enc in this directory.
  • Then do this:
sudo yum remove PackageKit -y && sudo yum install git ansible -y
ansible-playbook -i hosts setup.yml
ssh-agent bash
ssh-add ~/.ssh/id_rsa
sudo ansible-playbook -i hosts google-chrome.yml

Once Google Chrome is installed, I log it into my Google account and it installs LastPass, and then we're off to the races.

Additional playbooks

Miscellaneous playbooks, messily organized for now:

sudo ansible-playbook -i hosts hetzner.yml
sudo ansible-playbook -i hosts konsole.yml
sudo ansible-playbook -i hosts vim.yml

This one pops up a graphical configuration wizard. This demonstrates the need to run at least part of the initial desktop setup playbook from within the graphical environment (since I can't figure out how to configure Dropbox programmatically:

sudo ansible-playbook -i hosts dropbox.yml

This one takes ages:

sudo ansible-playbook -i hosts rvm.yml

This one doesn't check for change:

sudo ansible-playbook -i hosts konversation.yml

Configuring konversation is interesting. KDE and Ansible don't agree about with an ini file looks like, and it's a pain in the butt to write a playbook that checks with kreadconfig before changing with kwriteconfig.

This is also interesting. When you want to restart the KDE kickoff to pick up your config changes, sudo removes environment variables that qdbus needs to interact with KDE. So you have to mess with sudo config or run the playbook as the target user. This irregularity has convinced me that my initial desktop configuration playbook should just end up saying "okay, log out and log back in please".

# Note: no sudo
ansible-playbook -i hosts kickoff.yml

I'm not sure generalized "dotfiles" and "packages" playbooks are a good idea, but here they are:

sudo ansible-playbook -i hosts dotfiles.yml
sudo ansible-playbook -i hosts packages.yml
sudo ansible-playbook -i hosts emacs.yml
sudo ansible-playbook -i hosts fedorautils.yml

dotfiles-ansible's People

Contributors

sheldonh avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.