Sha256: b31a522084b210808eb300ab259cda83c0f244009d4ec636e2554c006a1d9f4d

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

---
  - name: Create collectd configuration dir
    become: true
    file:
      path: /etc/collectd/collectd.conf.d
      state: directory
      mode: 0755

  #required first so that collectd will start even if the FQDN of the host doesnt' resovle
  - name: Create hostname config
    template:
      src: hostname.conf
      dest: /etc/collectd/collectd.conf.d/hostname.conf
    become: true

  - name: Install collectd
    apt:
      pkg: collectd
      state: present
    become: true

  - name: Create graphite config
    template:
      src: graphite.conf
      dest: /etc/collectd/collectd.conf.d/graphite.conf
    become: true
    notify: restart collectd

  - name: Create df config
    template:
      src: df.conf
      dest: /etc/collectd/collectd.conf.d/df.conf
    become: true
    notify: restart collectd

  - name: create delayed_job_postgres config
    template:
      src: delayed_job_postgres.conf
      dest: /etc/collectd/collectd.conf.d/delayed_job_postgres.conf
    become: true
    notify: restart collectd
    when: postgresql_installed is defined and delayed_job_installed is defined

  - name: create apache2 config
    template:
      src: apache2.conf
      dest: /etc/collectd/collectd.conf.d/apache2.conf
    sudo: true
    notify: restart collectd
    when: apache2_installed is defined

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
subspace-0.4.2 ansible/roles/collectd/tasks/main.yml
subspace-0.4.1 ansible/roles/collectd/tasks/main.yml
subspace-0.4.0 ansible/roles/collectd/tasks/main.yml