diff options
Diffstat (limited to 'roles/rsnapshot.notyet/tasks/main.yml')
-rw-r--r-- | roles/rsnapshot.notyet/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/rsnapshot.notyet/tasks/main.yml b/roles/rsnapshot.notyet/tasks/main.yml new file mode 100644 index 0000000..81b9d71 --- /dev/null +++ b/roles/rsnapshot.notyet/tasks/main.yml @@ -0,0 +1,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 |