Geek · Things I've Learned

Ansible: Roles, Role Dependencies, and Variables

I just spent some time banging my head against Ansible, and thought I’d share in case anyone else runs across it: I have a Firefox role that allows you to define a Firefox profile with various plugins, config settings, and the like. And I have a work-from-home (WFH) role that, among other things, sets up… Continue reading Ansible: Roles, Role Dependencies, and Variables

Geek · Things I've Learned

Ansible: Running Commands in Dry-Run Mode in Check Mode

Say you have an¬†Ansible¬†playbook that invokes a command. Normally, that command executes when you run ansible normally, and doesn’t execute at all when you run ansible in check mode. But a lot of commands, like rsync have a -n or –dry-run argument that shows what would be done, without actually making any changes. So it… Continue reading Ansible: Running Commands in Dry-Run Mode in Check Mode

Hacking · Things I've Learned

Programming Tip: Open and Close at the Same Time

One useful programming habit I picked up at some point is: if you open or start something, immediately close it or end it. If you open a bracket, immediately write its closing bracket. If you open a file, immediately write the code to close it. These days, development environments take care of the niggling little… Continue reading Programming Tip: Open and Close at the Same Time

Things I've Learned

Da da da

Today is National Grammar Day, but rather than rail against common misuses of the English language like the insufferable language snob that I am, I thought I’d mention a peculiarity of language that I happened to notice. The German word “da” means “there”, as in “Mein Bier ist da” — “My beer is right here”.… Continue reading Da da da

Things I've Learned

Why Is Universalizability a Good Thing?

Back in 2010, Greta Christina wrote about liberal and conservative moral systems. At the core was a set of studies showing that while everyone shares the same core values — fairness, minimizing harm, authority, purity, loyalty, and a few others — that liberals and conservatives prioritize these values differently: liberals tend to put a higher… Continue reading Why Is Universalizability a Good Thing?