Revert "lineinfile is messy; replace rules | the rest of the codebase"

This reverts commit 7e211f14484f352cb3b23b7b4f2df633fd906635.