move backitup to its own role

Single task roles are kind of lame, but this lets us set it as a
dependency.
This commit is contained in:
Pig Monkey 2017-07-11 21:04:28 -07:00
parent bcf52c7c29
commit 12b1655b6c
7 changed files with 7 additions and 4 deletions

2
.gitmodules vendored
View file

@ -5,7 +5,7 @@
path = roles/networkmanager/files/nmtrust
url = https://github.com/pigmonkey/nmtrust.git
[submodule "roles/cryptshot/files/backitup"]
path = roles/cryptshot/files/backitup
path = roles/backitup/files/backitup
url = https://github.com/pigmonkey/backitup
[submodule "roles/cryptshot/files/cryptshot"]
path = roles/cryptshot/files/cryptshot

View file

@ -51,6 +51,7 @@
- { role: virtualbox, tags: ['virtualbox'] }
- { role: hashicorp, tags: ['hashicorp'] }
- { role: virtualenv, tags: ['virtualenv'] }
- { role: backitup, tags: ['backitup'] }
- { role: cryptshot, tags: ['cryptshot'], when: "cryptshot is defined" }
- { role: borg, tags: ['borg'] }
- { role: tarsnap, tags: ['tarsnap'] }

View file

@ -0,0 +1,3 @@
---
- name: Install backitup
copy: src=backitup/backitup.sh dest=/usr/local/bin/backitup mode=0755

View file

@ -1,3 +1,4 @@
---
dependencies:
- { role: systemd }
- { role: backitup }

View file

@ -2,9 +2,6 @@
- name: Install rsnapshot
pacman: name=rsnapshot state=present
- name: Install backitup.sh script
copy: src=backitup/backitup.sh dest=/usr/local/bin/backitup mode=0755
- name: Install cryptshot.sh script
copy: src=cryptshot/cryptshot.sh dest=/usr/local/bin/cryptshot mode=0755

View file

@ -2,3 +2,4 @@
dependencies:
- { role: virtualenv }
- { role: networkmanager }
- { role: backitup }