Skip to content
Snippets Groups Projects
Select Git revision
  • b8c20c86b51b92b83883d8447591a2980fa2cb63
  • master default protected
  • th/caddy-wip
  • th/caddy
  • th/lego
  • th/acmebot
  • pyzabbix
  • th/keycloak
8 results

redeleitsystem.yml

Blame
  • 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