Tag Archives: system administration

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 … Continue reading

Posted in Geek, Things I've Learned | Tagged , | Leave a comment

Removing Magic

So this was one of those real-life mysteries. I like crossword puzzles. And in particular, I like indie crossword puzzles, because they tend to be more inventive and less censored than ones that run in newspapers. So I follow several … Continue reading

Posted in Geek | Tagged , , , , | 4 Comments

If You Use Unix, Use Version Control

If you’ve used Unix (or Linux. This applies to Linux, and MacOS X, and probably various flavors of Windows as well), you’ve no doubt found yourself editing configuration files with a text editor. This is especially true if you’ve been … Continue reading

Posted in Hacking | Tagged , , , , | Leave a comment

Disk Hack

One of the things I enjoy about Unix system administration is the McGyver aspect of it: when something goes pear-shaped, and your preferred tools aren’t available because they’re on the disk that just died, or on the other side of … Continue reading

Posted in Geek | Tagged , , , , | Leave a comment

Bourne Shell Introspection

So I was thinking about how to refactor our custom Linux and Solaris init scripts at work. The way FreeBSD does it is to have the scripts in /etc/rc.d define variables with the commands to execute, e.g., start_cmd=’/usr/sbin/foobard’ stop_cmd=’kill `cat … Continue reading

Posted in Hacking, Things I've Learned | Tagged , , , , , | Leave a comment