2023-02-17 14:29:25 +01:00
|
|
|
---
|
2023-02-17 16:27:56 +01:00
|
|
|
- name: Ansible-borg-server-playbook
|
2023-02-17 14:29:25 +01:00
|
|
|
hosts: nodes
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
- name: Load secrets
|
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: "{{ inventory_dir }}/secrets/{{ inventory_hostname }}.yml"
|
|
|
|
tags:
|
|
|
|
- always
|
2023-02-17 16:27:56 +01:00
|
|
|
- name: Install nfs-common
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: nfs-common
|
|
|
|
- name: Add repo mount
|
|
|
|
ansible.posix.mount:
|
|
|
|
src: 10.23.0.11:/media/big_data/Infra/borg
|
|
|
|
path: "{{ pool }}"
|
|
|
|
opts: rw,sync,hard
|
|
|
|
state: mounted
|
|
|
|
fstype: nfs
|
2023-02-17 14:29:25 +01:00
|
|
|
|
2023-02-17 16:27:56 +01:00
|
|
|
roles:
|
|
|
|
- role: ansible-borg-server-role
|