amtega.netbackup
Ansible NetBackup Role
This is an Ansible role to install the NetBackup Linux agent.
References:
Role Variables
You can find a list of default variables for this role in defaults/main.yml
.
Usage
Here’s an example playbook:
---
- hosts: all
roles:
- role: amtega.netbackup
vars:
netbackup_state: present
netbackup_server: myserver.acme.com
netbackup_media_servers:
- mymediaserver1.acme.com
- mymediaserver2.acme.com
netbackup_certificate_fingerprint: >-
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
netbackup_authorization_token: xxxxxxxxxxxxxxxxxxxx
Testing
Tests use Molecule with Docker containers.
The tests do not install the NetBackup packages to prevent registering the test servers. To run the tests, provide the variables found in defaults/main.yml
. You can do this by calling the test playbook and passing an extra inventory using these environment variables:
ANSIBLE_INVENTORY
: Path to an inventory fileANSIBLE_VAULT_PASSWORD_FILE
: Path to the file with the vault password needed for the inventory
cd amtega.netbackup
ANSIBLE_INVENTORY=~/myinventory ANSIBLE_VAULT_PASSWORD_FILE=~/myvaultpassword molecule test --all
License
Copyright (C) 2022 AMTEGA - Xunta de Galicia
This role is free software. You can share or modify it under these terms:
GNU General Public License version 3, or any later version; or the European Union Public License, either Version 1.2 or newer versions approved by the European Commission.
This role is provided in the hope that it will be useful, but without any guarantees; without even the implied guarantee of merchantability or fitness for a particular purpose. See the GNU General Public License or European Union Public License for more details.
Author Information
- José Enrique Mourón Regueira
Install and configure netbackup linux client agent
ansible-galaxy install amtega.netbackup