Skip to content
Snippets Groups Projects
apache.yml 892 B
Newer Older
  • Learn to ignore specific revisions
  • jurgenhaas's avatar
    jurgenhaas committed
    ---
    # file: roles/netdata/tasks/apache.yml
    
    
    - name: Enable Apache Status Module
    
    jurgenhaas's avatar
    jurgenhaas committed
      apache2_module:
    
        name: status
        state: present
    
      notify:
        - Restart Apache
    
    jurgenhaas's avatar
    jurgenhaas committed
    
    
    - name: Apache Status Site
    
    jurgenhaas's avatar
    jurgenhaas committed
      template:
    
        src: apache.conf
        dest: /etc/apache2/sites-available/status{{ apache_conf_ext|default(".conf") }}
        owner: root
        group: root
    
      notify:
        - Restart Apache
    
    jurgenhaas's avatar
    jurgenhaas committed
    
    
    - name: Enable Apache Status Site
    
      command: a2ensite status
      args:
        creates: /etc/apache2/sites-enabled/status{{ apache_conf_ext|default('.conf') }}
      notify:
        - Restart Apache
    
    - name: Weblog Module Configuration
    
        src: web_log.conf
        dest: /etc/netdata/python.d/web_log.conf
        owner: netdata
        group: netdata
    
    - name: Install Custom Alerts
    
        src: health/web_log.conf
        dest: /etc/netdata/health.d/web_log.conf
    
        - Restart NetData