diff --git a/tasks/main.yml b/tasks/main.yml index 7326db454bfe186a0ca2fc0ad7eb00b8482fa869..2713845633160131edb9a552073b7a447fd554e3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,12 +20,11 @@ path: /srv/AKPlanning/AKPlanning/settings_production.py register: akplanning_settings -- name: Set the original db host so we can update +- name: Set the original db host so we can update # noqa 208 lineinfile: path: /srv/AKPlanning/AKPlanning/settings_production.py line: " 'HOST': 'localhost'," regexp: "^ 'HOST':" - mode: preserve when: akplanning_settings.stat.exists notify: restart akplanning @@ -49,13 +48,12 @@ home: /srv/AKPlanning/ system: yes -- name: Give akplanning to user django +- name: Give akplanning to user django # noqa 208 file: path: /srv/AKPlanning/ state: directory owner: django group: django - mode: preserve recurse: yes - name: Install python dependencies @@ -85,12 +83,11 @@ group: django notify: restart akplanning -- name: Set the correct db host +- name: Set the correct db host # noqa 208 lineinfile: path: /srv/AKPlanning/AKPlanning/settings_production.py line: " 'HOST': 'instance'," regexp: "^ 'HOST':" - mode: preserve notify: restart akplanning - name: AKPlanning migrate and stuff