Currently the usage of the `lineinfile` module just makes the configuration of ES somewhat awkward and more difficult than it really needs to be. A better approach would be to use a template.