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