44 lines
1,003 B
YAML
44 lines
1,003 B
YAML
|
---
|
||
|
- name: install bareos storage
|
||
|
ansible.builtin.package:
|
||
|
name:
|
||
|
- bareos-storage
|
||
|
tags: bareos
|
||
|
|
||
|
- name: copy storage configuration 1/3
|
||
|
ansible.builtin.template:
|
||
|
src: storage-bareos-sd.conf.j2
|
||
|
dest: /etc/bareos/bareos-sd.d/storage/bareos-sd.conf
|
||
|
owner: root
|
||
|
group: bareos
|
||
|
mode: 0640
|
||
|
notify: restart bareos-sd
|
||
|
tags: bareos
|
||
|
|
||
|
- name: copy storage configuration 2/3
|
||
|
ansible.builtin.template:
|
||
|
src: storage-device.conf.j2
|
||
|
dest: /etc/bareos/bareos-sd.d/device/ansible.conf
|
||
|
owner: root
|
||
|
group: bareos
|
||
|
mode: 0640
|
||
|
notify: restart bareos-sd
|
||
|
tags: bareos
|
||
|
|
||
|
- name: copy storage configuration 3/3
|
||
|
ansible.builtin.template:
|
||
|
src: bareos-dir.conf.j2
|
||
|
dest: /etc/bareos/bareos-sd.d/director/bareos-dir.conf
|
||
|
owner: root
|
||
|
group: bareos
|
||
|
mode: 0640
|
||
|
notify: restart bareos-sd
|
||
|
tags: bareos
|
||
|
|
||
|
- name: enable and start bareos storage service
|
||
|
ansible.builtin.service:
|
||
|
name: bareos-sd
|
||
|
state: started
|
||
|
enabled: true
|
||
|
tags: bareos
|