All Projects → vMarkusK → Ansible-Veeam

vMarkusK / Ansible-Veeam

Licence: LGPL-3.0 license
My Ansible Playbooks, Roles and Modules for Veeam

Projects that are alternatives of or similar to Ansible-Veeam

ansible-palybooks
Ansible Palybooks Written and Published by www.server-computer.com. NO WARRANTY for any damages and loss of data.
Stars: ✭ 24 (+14.29%)
Mutual labels:  ansible-playbook, ansible-role, ansible-modules
aws-lab-guide
Amazon Web Services Practice Lab Guide. Absolute beginners can try this lab practice guide.
Stars: ✭ 25 (+19.05%)
Mutual labels:  ansible-playbook, ansible-role
Nagios Nrpe Server
Nagios NRPE Server Role for Ansible
Stars: ✭ 27 (+28.57%)
Mutual labels:  ansible-playbook, ansible-role
Ansible In Action
Ansible playbook to deploy your Laravel code base to VPS
Stars: ✭ 61 (+190.48%)
Mutual labels:  ansible-playbook, ansible-role
RHEL7-CIS
Ansible RHEL 7 - CIS Benchmark Hardening Script
Stars: ✭ 28 (+33.33%)
Mutual labels:  ansible-playbook, ansible-role
lykops
lykops是一套web可视化的运维自动化项目,基于python3+django开发的。可视化、简化执行ansible任务,并提供详细的任务执行报告。
Stars: ✭ 129 (+514.29%)
Mutual labels:  ansible-playbook, ansible-role
Ansible Restic
Deploy restic backup program
Stars: ✭ 29 (+38.1%)
Mutual labels:  ansible-playbook, ansible-role
Centos7 Cis
Ansible CentOS 7 - CIS Benchmark Hardening Script
Stars: ✭ 64 (+204.76%)
Mutual labels:  ansible-playbook, ansible-role
Matrix Docker Ansible Deploy
Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
Stars: ✭ 2,541 (+12000%)
Mutual labels:  ansible-playbook, ansible-role
Graylog Ansible Role
Ansible role which installs and configures Graylog
Stars: ✭ 173 (+723.81%)
Mutual labels:  ansible-playbook, ansible-role
Ansible Playbook Grapher
A command line tool to create a graph representing your Ansible playbook tasks and roles
Stars: ✭ 234 (+1014.29%)
Mutual labels:  ansible-playbook, ansible-role
UBUNTU20-CIS
Ansible role for Ubuntu 2004 CIS Baseline
Stars: ✭ 136 (+547.62%)
Mutual labels:  ansible-playbook, ansible-role
ansible-playbook-volumio-bluetooth
Pair your phone and stream audio to a Raspberry Pi running Volumio
Stars: ✭ 13 (-38.1%)
Mutual labels:  ansible-playbook, ansible-role
ansible-role-win updates
Install Windows updates using Ansible.
Stars: ✭ 24 (+14.29%)
Mutual labels:  ansible-role
ansible-galaxy-pyenv
Ansible Galaxy role for pyenv
Stars: ✭ 56 (+166.67%)
Mutual labels:  ansible-role
useful-playbooks
🚚 Useful Ansible playbooks for easily deploy your website or webapp to absolutely fresh remote virtual server and automation many processes. Only 3 minutes from the playbook run to complete setup server and start it.
Stars: ✭ 52 (+147.62%)
Mutual labels:  ansible-playbook
ansible-avd-cloudvision-demo
A demo to run Arista Validated Design with CloudVision deployment - From Powerup to EVPN Fabric
Stars: ✭ 21 (+0%)
Mutual labels:  ansible-playbook
ansible-role-zerotier
Ansible role to install Zerotier-One and join a Zerotier network
Stars: ✭ 64 (+204.76%)
Mutual labels:  ansible-role
ovirt-ansible-collection
Ansible collection with official oVirt modules and roles
Stars: ✭ 53 (+152.38%)
Mutual labels:  ansible-modules
ansible-docker
Enter description of Ansible role
Stars: ✭ 14 (-33.33%)
Mutual labels:  ansible-role

Ansible Veeam Playbooks, Roles and Modules

About

Ansible Veeam

Besides an Ansible Playbook for the unattended installation of Veeam Backup & Replication servers, this repository contains my Ansible modules for the management of Veeam Backup & Replication.

The Veeam modules are based on the Veeam PowerShell cmdlets (Veeam PowerShell Reference). All modules are designed to be executed on a Veeam Veeam Backup & Replication server with installed console and PowerShell Snapin, no remote connection.

Project Owner

Markus Kraus @vMarkus_K

MY CLOUD-(R)EVOLUTION mycloudrevolution.com

Project Content

The Ansible Veeam Modules of this Repository are shipped as a Ansible Role now. The Ansible Veeam Role is a GIT submodule of this Repository and is also published on the Ansible Galaxy.

Installation of the Role:

ansible-galaxy install mycloudrevolution.veeam 

To display the documentation of the "non-default" Ansible modules you can use this syntax:

ansible-doc veeam_credential -M /<path to the project root folder>/roles/veeam/library/

Module - veeam_facts

Collect configuration details from your Veeam Backup & Replication Server.

Playbook tasks:

  roles:
  - veeam
  tasks:
  - name: Get Veeam Facts
    veeam_connection_facts:
    register: my_facts
  - name: Debug Veeam Facts
    debug:
        var: my_facts

Return (Example):

ok: [10.0.2.16] => {
    "my_facts": {
        "changed": false,
        "failed": false,
        "veeam_facts": {
            "veeam_connection": [
                {
                    "port": 9392,
                    "server": "localhost",
                    "user": "VEEAM01\\Administrator"
                }
            ],
            "veeam_credentials": [
                {
                    "description": "Lab User for Standalone Host",
                    "encryptedpassword": null,
                    "id": "ae0fa0f8-d0ed-4014-9e0c-b84d56bc9084",
                    "name": "root",
                    "username": "root"
                }
            ],
            "veeam_repositories": [
                {
                    "description": "Created by Veeam Backup",
                    "friendlypath": "C:\\Backup",
                    "host": "Veeam01",
                    "name": "Default Backup Repository",
                    "type": "Windows"
                }
            ],
            "veeam_servers": [
                {
                    "description": "Backup server",
                    "id": "6745a759-2205-4cd2-b172-8ec8f7e60ef8",
                    "name": "Veeam01",
                    "type": "Microsoft Windows Server"
                },
                {
                    "description": "Created by Powershell at 25.06.2019 22:39:24.",
                    "id": "aedd0693-657c-4384-9e53-cd6bb605a637",
                    "name": "192.168.234.101",
                    "type": "VMware ESXi Server"
                }
            ]
        }
    }
}

Module - veeam_credential

Add and remove credentials on your Veeam Backup & Replication Server.

Add, debug and remove credentials

Veeam Add Credentials

  roles:
  - veeam
  tasks:
  - name: Add Credential
    veeam_credential:
        state: present
        type: windows
        username: Administrator
        password: "{{ my_password }}"
        description: My dummy description
    register: my_cred
  - name: Debug Veeam Credentials
    debug:
        var: my_cred
  - name: Get Veeam Facts
    veeam_connection_facts:
    register: my_facts
  - name: Debug Veeam Credential Facts
    debug:
        var: my_facts  | json_query(query)
  - name: Remove Credential
    veeam_credential:
        state: absent
        id: "{{ my_cred.id }}"

Module - veeam_server

Add and remove Servers (VMware ESXi, VMware vCenter, etc. ) on your Veeam Backup & Replication Server.

Add VMware ESXi Server

Veeam Add ESXi

  roles:
  - veeam
  tasks:
  - name: Add root credential
    veeam_credential:
        state: present
        type: standard
        username: root
        password: "{{ root_password }}"
        description: "Lab User for Standalone Host"
    register: root_cred
  - name: Debug root credential
    debug:
        var: root_cred
  - name: Add esxi server
    veeam_server:
        state: present
        type: esxi
        credential_id: "{{ root_cred.id }}"
        name: 192.168.1.10
    register: esxi_server
  - name: Get Veeam Facts
    veeam_connection_facts:
    register: my_facts
  - name: Debug Veeam Servers from Facts
    debug:
        var: my_facts.veeam_facts.veeam_servers

Add VMware vCenter Server

Veeam Add vCenter

 roles:
 - veeam
 tasks:
 - name: Add vCenter credential
   veeam_credential:
       state: present
       type: standard
       username: [email protected]
       password: "{{ vcenter_password }}"
       description: "Lab User for vCenter Server"
   register: vcenter_cred
 - name: Debug vcenter credential
   debug:
       var: vcenter_cred
 - name: Add vCenter server
   veeam_server:
       state: present
       type: vcenter
       credential_id: "{{ vcenter_cred.id }}"
       name: 192.168.234.100
   register: vcenter_server
 - name: Get Veeam Facts
   veeam_connection_facts:
   register: my_facts
 - name: Debug Veeam Servers from Facts
   debug:
       var: my_facts.veeam_facts.veeam_servers

Module - veeam_backup

Add and remove Veeam Backup Jobs (Based on various entities).

Add VMware Backup Job Based on Tags

Veeam Add Tag Backup

Playbook - Veeam_setup.yml

Install Veeam Backup & Replication 9.5 Update 4a in the unattended mode with Ansible.

Test / Dev Environment:

  • Ansible 2.8
  • CentOS 7
  • Windows Server 2019

Veeam Setup

Playbook - Veeam_get_facts.yml

Playbook for gather Veeam Backup & Replication facts.

Test / Dev Environment:

  • Ansible 2.8
  • CentOS 7
  • Windows Server 2019
  • Veeam Backup & Replication 9.5 Update 4a

Playbook - Veeam_add_esxi.yml

Playbook to add a new VMware ESXi Server to the Veeam Backup & Replication server.

Test / Dev Environment:

  • Ansible 2.8
  • CentOS 7
  • Windows Server 2019
  • Veeam Backup & Replication 9.5 Update 4a
  • VMware ESXi 6.7 Update 1

Playbook - Veeam_add_vcenter.yml

Playbook to add a new VMware vCenter Server to the Veeam Backup & Replication server.

Test / Dev Environment:

  • Ansible 2.8
  • CentOS 7
  • Windows Server 2019
  • Veeam Backup & Replication 9.5 Update 4a
  • VMware vCenter 6.7 Update 1

Playbook - Veeam_add_cred.yml

Playbook to add and remove new credentials to the Veeam Backup & Replication server.

Test / Dev Environment:

  • Ansible 2.8
  • CentOS 7
  • Windows Server 2019
  • Veeam Backup & Replication 9.5 Update 4a
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].