mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
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:
parent
bcf52c7c29
commit
12b1655b6c
7 changed files with 7 additions and 4 deletions
2
.gitmodules
vendored
2
.gitmodules
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'] }
|
||||
|
|
|
|||
3
roles/backitup/tasks/main.yml
Normal file
3
roles/backitup/tasks/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Install backitup
|
||||
copy: src=backitup/backitup.sh dest=/usr/local/bin/backitup mode=0755
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: systemd }
|
||||
- { role: backitup }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -2,3 +2,4 @@
|
|||
dependencies:
|
||||
- { role: virtualenv }
|
||||
- { role: networkmanager }
|
||||
- { role: backitup }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue