initial version: hadoly's
This commit is contained in:
59
README.md
Normal file
59
README.md
Normal file
@@ -0,0 +1,59 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
Install borg software + config file + cronjob
|
||||
|
||||
Todo
|
||||
----
|
||||
|
||||
<del>le script borg.sh devrait être dans un répo à part et ce playbook devrait récupérer une version précise.</del>
|
||||
|
||||
chaque serveur devrait avoir sa propre clé de chiffrement.
|
||||
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
Defaults set in defaults/main.yml
|
||||
|
||||
borg_dirs - list of directories to backup - default to /root and /etc
|
||||
borg_release - default to 1.1.4
|
||||
borg_key - encryption key - définie dans group_vars/all
|
||||
borg_server - default to vm2
|
||||
borg_account - default to backup
|
||||
borg_remote_dir - remote base directory for repos - default to /var/backups/borg
|
||||
borg_passphrase - no default, should be set on a per host basis
|
||||
borg_rotate - num of days of backup we keep - default 15
|
||||
borg_script_dir - defaults to /root/bin/borg/
|
||||
|
||||
Some variables should be set on a per host basis ( key, dir, ...)
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
None
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
---
|
||||
- hosts: leodagan.hadoly.fr
|
||||
become: true
|
||||
remote_user: thomas
|
||||
roles:
|
||||
- borg_client
|
||||
|
||||
ansible-playbook -K test_borg.yml --vault-id=~/.ansible_hadoly.secret
|
||||
|
||||
ansible_hadoly.secret contient la clé de chiffrement
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
Reference in New Issue
Block a user