template out settings.py instead of using lineinfile