fix repo
This commit is contained in:
parent
137bd5c416
commit
9471773d04
@ -1,8 +1,5 @@
|
||||
---
|
||||
bareos_version: 19.2
|
||||
bareos_distribution_major_version: '{{ ansible_distribution_major_version }}'
|
||||
bareos_repo: http://download.bareos.org/bareos/release
|
||||
bareos_url: '{{ bareos_repo }}/{{ bareos_version }}/Debian_{{ bareos_distribution_major_version }}'
|
||||
bareos_repo: http://download.bareos.org/current
|
||||
bareos_client: true
|
||||
bareos_client_name: '{{ inventory_hostname_short }}'
|
||||
bareos_client_max_concurrent_jobs: 2
|
||||
@ -23,4 +20,5 @@ bareos_storage: false
|
||||
bareos_storage_name: '{{ inventory_hostname_short }}'
|
||||
bareos_storage_max_concurrent_jobs: 10
|
||||
bareos_storage_devices: {}
|
||||
bareos_storage_droplet: false
|
||||
bareos_web: false
|
||||
|
||||
@ -12,9 +12,14 @@ galaxy_info:
|
||||
- name: Debian
|
||||
versions:
|
||||
- buster
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- focal
|
||||
- jammy
|
||||
|
||||
galaxy_tags:
|
||||
- bacula
|
||||
- bareos
|
||||
- backup
|
||||
|
||||
dependencies: []
|
||||
dependencies:
|
||||
- postgresql
|
||||
|
||||
@ -5,6 +5,17 @@
|
||||
- gnupg
|
||||
tags: bareos
|
||||
|
||||
- name: "Set bareos url based on the OS type"
|
||||
ansible.builtin.include_vars: "{{ lookup('ansible.builtin.first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- '{{ansible_distribution}}.yaml'
|
||||
- '{{ansible_os_family}}.yaml'
|
||||
- default.yaml
|
||||
paths:
|
||||
- 'vars'
|
||||
|
||||
- name: import repo key
|
||||
ansible.builtin.apt_key:
|
||||
url: '{{ bareos_url }}/Release.key'
|
||||
|
||||
@ -5,6 +5,13 @@
|
||||
- bareos-storage
|
||||
tags: bareos
|
||||
|
||||
- name: install droplet storage plugin
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- bareos-storage-droplet
|
||||
when: bareos_storage_droplet
|
||||
tags: bareos
|
||||
|
||||
- name: copy storage configuration 1/3
|
||||
ansible.builtin.template:
|
||||
src: storage-bareos-sd.conf.j2
|
||||
|
||||
1
vars/Debian.yml
Normal file
1
vars/Debian.yml
Normal file
@ -0,0 +1 @@
|
||||
bareos_url: '{{ bareos_repo }}/Debian_{{ ansible_distribution_major_version }}'
|
||||
1
vars/Ubuntu.yml
Normal file
1
vars/Ubuntu.yml
Normal file
@ -0,0 +1 @@
|
||||
bareos_url: '{{ bareos_repo }}/xUbuntu_{{ ansible_distribution_version }}'
|
||||
1
vars/main.yml
Normal file
1
vars/main.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
||||
Loading…
Reference in New Issue
Block a user