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

main.yml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.yml 707 B
    ---
    # file: uwsgi-python/tasks/main.yml
    
    
    - name: ensure uwsgi is installed
      apt:
        name: uwsgi
        state: installed
      tags:
        - uwsgi
        - webservices
    
    - name: ensure we have archlinux's systemd-service file
      copy: 
        src: uwsgi@.service
        dest: /etc/systemd/system/uwsgi@.service
        owner: root
        group: root
        mode: 0644
      notify: 
        - reload systemd service files
      tags:
        - uwsgi
        - webservices
    
    - name: ensure the uwsgi app folder is present
      file: 
        path: /etc/uwsgi/apps/
        state: directory
        owner: root
        group: root
        mode: 0755
      tags:
        - uwsgi
        - webservices
    
    - include_tasks: app.yml  
      with_items: "{{ webapps }}"
      loop_control:
        loop_var: app