Role to setup BareOS server and clients.
Note: More options can be seen in defaults/main.yml
bareos_install_server
- Install packages valid for server (false
). Note that this also installs postgresql!bareos_setup_db
- Check if postgresql DBbareos
exists. If not, create and fill with data (false
)bareos_sensu_postgres_pass
- Set pass for user sensu to postgresqlbareos_director
- If you need to override backup director IP address on your client's /etc/hosts
bareos_director:
ip: 10.0.0.1
name: backup
bareos_clients
- List of clients in following format:
bareos_clients:
- name: hostbill
ansible_delegate_hostname: hostbill
address: 146.255.58.229
password: "{{ vault_bareos_hostbill_password }}"
enable_backup_job: true
state: present
autostart: true
director_ip: 10.8.8.1
director_name: backup
NOTES:
ansible_delegate_hostname
must matchinventory_hostname
in ansible inventory list. Some tasks will be delegated from backup server to this clientenable_backup_job
- Will create backup jobDefaultJobLinux
state
- When set toabsent
, client will be removed from server config (default:present
)autostart
- Schedule first backup right away (default:true
)director_ip
- [Optional] Same asbareos_director
, just different place to setupdirector_name
- [Optional] Same asbareos_director
, just different place to setup
bareos_install_client
- Install packages for client (false
)
---
- hosts: bareos-client
become: true
roles:
- { name: bareos, tags: bareos }
- hosts: bareos-server
become: true
roles:
- { name: bareos, tags: bareos }
BSD