summaryrefslogtreecommitdiff
path: root/roles/rsnapshot.notyet/tasks/main.yml
blob: 81b9d7137807d429701a207b2f6fea39e2791327 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: install rsnapshot
  apt: name=rsnapshot state=latest

- name: create config directory
  file: path=/etc/rsnapshot.d state=directory mode=0755
  
- name: copy parent configuration
  copy: src=rsnapshot.conf dest=/etc/rsnapshot.conf force=true
    
- name: copy child configurations
  template: src=linux.conf.j2 dest="/etc/rsnapshot.d/{{host}}.conf"
  vars:
    host: "{{item}}"
  with_items:
    - muninn
    - jodersky-mbp