Oddbean new post about | logout
 Very understandably, not one coworker has volunteered to review my PR so far. One of them glanced at it.  I know this because I heard them say from their office down the hall "Uh oh!  regex with backrefs in Ansible? This can't be good..." and then left no comment on the PR. And you know what - I can't blame them. 
 @39199a26 sometimes you have to protect your own sanity  =P 
 @7c6b9abd I've clearly given up that particular fight 🤪 
 Just in case this doesn't make sense to anyone, #Ansible has a commonly used tool called lineinfile that let's you do things like update server config files.  You can use regex to identify which line up update.  With backrefs, you can do some particularly intricate/powerful things so that the line that is written can be a combination of #regex matches and ansible variables.

https://dev.to/ferricoxide/code-explainer-regex-and-backrefs-in-ansible-code-gn7 
 And in case you're interested in this particular journey of mine:

https://mastodon.online/@vwbusguy/111055116489995750