Skip to content
Snippets Groups Projects
Select Git revision
  • 9b87d1ff065613b0fd75a52b7e4afa215f521b8a
  • master default protected
  • intros
  • live_sources
  • bootstrap4
  • modules
6 results

importer.py

Blame
  • Forked from Video AG Infrastruktur / website
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    redeleitsystem.yml 606 B
    ---
    
    # https://github.com/ansible/ansible/issues/42983
    - name: ensure there exists a .ansible folder
      file:
        path: "{{app_path}}/.ansible"
        state: directory
        owner: "{{app_user}}"
        group: "{{app_group}}"
    
    - name: ensure data model upgrades are applied  # noqa 301
      command: "{{app_venv}}/bin/python {{app_path}}/server.py db upgrade"
      args:
        chdir: "{{app_path}}"
      become: true
      become_user: "{{app_user}}"
      notify:
        - "restart uwsgi instance {{app.instance}}"
    
    - name: ensure the folder from above is not present anymore
      file:
        path: "{{app_path}}/.ansible"
        state: absent