Skip to content

Instantly share code, notes, and snippets.

@enachb
Created January 28, 2013 18:56
Show Gist options
  • Select an option

  • Save enachb/4658056 to your computer and use it in GitHub Desktop.

Select an option

Save enachb/4658056 to your computer and use it in GitHub Desktop.
---
- hosts: proxmox
user: root
tasks:
- name: Add backports repo
action: lineinfile dest='/etc/apt/sources.list.d/squeeze-backports.list' regexp='deb http://backports.debian.org/debian-backports squeeze-backports main' line='deb http://backports.debian.org/debian-backports squeeze-backports main' state=present create=true
- name: Install collectd 5.1
action: apt pkg=collectd-utils=5.1.0-3~bpo60+2 update-cache=yes state=installed default-release=squeeze-backports
- name: Copy collectd.conf over
action: copy src=qf/files/collectd.conf dest=/etc/collectd/collectd.conf owner=root group=root mode=644 backup=yes
notify: restartd collectd
handlers:
- name: restart collectd
action: service name=collectd state=restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment