initial commit

This commit is contained in:
Riedel
2026-08-19 09:51:43 +02:00
commit d777c1e975
79 changed files with 2263 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
# veeam_agent_repo_url: "https://repo.example.corp/veeam/veeam.repo"
# veeam_agent_apt_uri: "https://repo.example.corp/veeam/deb"
# veeam_agent_apt_suite: "stable"
# veeam_agent_apt_components: "main"
# veeam_agent_apt_signed_by: "https://repo.example.corp/veeam/gpg"

View File

@@ -0,0 +1,48 @@
---
- name: Report that backup_agent is disabled for this host
ansible.builtin.debug:
msg: "veeam_agent_enabled is false - skipping backup_agent role for {{ inventory_hostname }}."
when: not veeam_agent_enabled | bool
tags: [backup_agent]
- name: Configure Veeam repository (RedHat family, customer-specific URL required)
ansible.builtin.get_url:
url: "{{ veeam_agent_repo_url }}"
dest: /etc/yum.repos.d/veeam.repo
owner: root
group: root
mode: "0644"
when:
- veeam_agent_enabled | bool
- ansible_facts['os_family'] == "RedHat"
- veeam_agent_repo_url is defined
tags: [backup_agent]
- name: Configure Veeam repository (Debian family, customer-specific values required)
ansible.builtin.deb822_repository:
name: veeam
types: deb
uris: "{{ veeam_agent_apt_uri }}"
suites: "{{ veeam_agent_apt_suite }}"
components: "{{ veeam_agent_apt_components }}"
signed_by: "{{ veeam_agent_apt_signed_by | default(omit) }}"
when:
- veeam_agent_enabled | bool
- ansible_facts['os_family'] == "Debian"
- veeam_agent_apt_uri is defined
tags: [backup_agent]
- name: Install Veeam agent
ansible.builtin.package:
name: veeam
state: present
when: veeam_agent_enabled | bool
tags: [backup_agent]
- name: Enable and start Veeam agent service
ansible.builtin.systemd:
name: veeamservice
enabled: true
state: started
when: veeam_agent_enabled | bool
tags: [backup_agent]