ansible-role-bareos/molecule/default/converge.yml

74 lines
1.7 KiB
YAML
Raw Normal View History

2021-09-12 09:55:41 +00:00
---
- name: Converge
hosts: all
roles:
- ansible-role-bareos
vars:
bareos_web: true
bareos_server: true
bareos_server_console_password: superSecr3t!
bareos_server_password: secr3t
bareos_server_database_type: sqlite3
bareos_server_storages:
default:
address: 127.0.0.1
password: secr3t
device: default
options:
Port: 9103
bareos_server_filesets:
config_in_etc:
path: /etc
excludes:
- /proc
bareos_server_schedules:
one_hour:
- Level=Full weekly at 0:05
bareos_server_clients:
localhost:
address: localhost
password: secr3t
retention: '14 days'
jobs:
restore:
name: Restore
type: Restore
storage: default
fileset: config_in_etc
full:
level: Full
schedule: one_hour
storage: default
fileset: config_in_etc
maximum_bandwidth: 5Mb/s
bareos_server_users:
admin:
password: secret
profile: sysadmin
bareos_server_profiles:
sysadmin:
Command: all
Job: all
Schedule: all
Catalog: all
Pool: all
Storage: all
Client: all
FileSet: all
Where: all
bareos_storage: true
bareos_storage_name: bareos-sd
bareos_storage_devices:
default:
MediaType: File
ArchiveDevice: /var/lib/bareos/storage
AutomaticMount: 'yes'
RandomAccess: 'yes'
AlwaysOpen: 'yes'
LabelMedia: 'yes'
pre_tasks:
- name: update apt cache
ansible.builtin.apt:
update_cache: true