See https://github.com/nodejs/node/pull/6654#issuecomment-218395029 for more info. Thinking a combo of ansible's `lineinfile` and `/etc/hosts`.