From 96e26da3dde19b492f7455437ea26e6c0df62442 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 26 Aug 2020 15:22:10 +0200 Subject: borg. --- ansible/borg/borg-clients.yml | 29 ++++++++++++++++++++++++ ansible/borg/borg-target.yml | 21 ++++++++++++++++++ ansible/borg/borg.yml | 51 ------------------------------------------- 3 files changed, 50 insertions(+), 51 deletions(-) create mode 100644 ansible/borg/borg-clients.yml create mode 100644 ansible/borg/borg-target.yml delete mode 100644 ansible/borg/borg.yml (limited to 'ansible/borg') diff --git a/ansible/borg/borg-clients.yml b/ansible/borg/borg-clients.yml new file mode 100644 index 0000000..a155bb7 --- /dev/null +++ b/ansible/borg/borg-clients.yml @@ -0,0 +1,29 @@ +- hosts: + - conflatorio + - birgitte + - arius + roles: + - role: borg-client + tags: borg-client,never + become: yes + +- hosts: + - conflatorio + - birgitte + - arius + roles: + - role: borg-job + tags: borg-job + become: yes + vars: + borg_job__target: malabaricus.vpn.trygvis.io + borg_job__username: borg + borg_job__name: home + borg_job__on_calendar: daily + borg_job__settings: + patterns: | + P sh + R / + + /home + - /home/*/ownCloud + - /home/*/Nextcloud diff --git a/ansible/borg/borg-target.yml b/ansible/borg/borg-target.yml new file mode 100644 index 0000000..ac3c5a9 --- /dev/null +++ b/ansible/borg/borg-target.yml @@ -0,0 +1,21 @@ +- hosts: + - malabaricus + roles: + - role: borg-target + tags: borg-target + become: yes + vars: + borg_target__clients: + conflatorio: + state: present + repos: + home: + db: + birgitte: + state: present + repos: + home: + arius: + state: present + repos: + home: diff --git a/ansible/borg/borg.yml b/ansible/borg/borg.yml deleted file mode 100644 index 86b01eb..0000000 --- a/ansible/borg/borg.yml +++ /dev/null @@ -1,51 +0,0 @@ -- hosts: - - malabaricus - roles: - - role: borg-target - tags: borg-target - become: yes - vars: - borg_target__clients: - conflatorio: - state: present - repos: - home: - db: - birgitte: - state: present - repos: - home: - arius: - state: present - repos: - home: - -- hosts: - - conflatorio - - birgitte - - arius - roles: - - role: borg-client - tags: borg-client - become: yes - -- hosts: - - conflatorio - - birgitte - - arius - roles: - - role: borg-job - tags: borg-job - become: yes - vars: - borg_job__target: malabaricus.trygvis.io - borg_job__username: borg - borg_job__name: home - borg_job__on_calendar: daily - borg_job__settings: - patterns: | - P sh - R / - + /home - - /home/*/ownCloud - - /home/*/Nextcloud -- cgit v1.2.3