Skip to content

Ansible role that removes the Bareos configuration files for a given host to have Bareos quit backing up that system and remove any existing backups

Notifications You must be signed in to change notification settings

stancel/remove-config-from-bareos-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remove-config-from-bareos-server

Removes the Bareos configuration files for a given host/computer as they were setup by my add-job-to-bareos-director Ansible role.

Requirements

Bareos Server and your configuration files setup like those from my add-job-to-bareos-director Ansible role.

Role Variables

The hostname of the machine you are removing

	remove_config_from_bareos_server_host_name: "hostname-of-machine-to-remove"

The Bareos Archive Device location (or file path) where the backups volumes are stored for this host. Make sure you do NOT put a path here that has backup volumes for other hosts. Below is the default value that will be populated if not overridden.

	remove_config_from_bareos_server_archive_device: "/z-storage/backups/{{ host_name }}"

Dependencies

None

Example Playbook

	- hosts: your_bareos_server
	  vars_files:
	    - vars/main.yml
	  roles:
	    - { role: stancel.remove-config-from-bareos-server }

or

	- hosts: your_bareos_server
	  vars:
		remove_config_from_bareos_server_host_name: "hostname-of-machine-to-remove"
		remove_config_from_bareos_server_archive_device: "/path/to/bareos/backup/volumes/for/this/host/only"
	  roles:
	    - stancel.remove-config-from-bareos-server

License

BSD

Author Information

Brad Stancel

About

Ansible role that removes the Bareos configuration files for a given host to have Bareos quit backing up that system and remove any existing backups

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published