Skip to content

alexanderbazhenoff/ansible-collection-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An ansible collection with linux-related roles to perform various setups.

Project content.

Roles:

  • bareos - Installs and configures Bareos and third-party components, adds Bareos file daemons to Bareos server, create or revoke user profiles and uploads Bareos configs to the host (e.g. if you have already installed Bareos server, storage daemon(s) etc).

  • lxcfs: Installs lxc or lxcfs on linux system.

  • postgresql: Installs and configures specified version(s) of PostgreSQL database instance(s), manage users, databases, schemas, privileges and replication slots.

  • zabbix_agent - Installs zabbix agent and configures them for services, apps and platform autodiscovery on Zabbix Server side.

Installation.

Install from ansible galaxy:

  1. Set-up collection from ansible galaxy:
ansible-galaxy collection install alexanderbazhenoff.linux

If you need to use a custom installation path, e.g.

ansible-galaxy collection install alexanderbazhenoff.linux -p /your/path

then edit ansible.cfg. Use ansible --version command to find the path of config file. Check docs.ansible.com for more info.

Install from sources:

  1. Clone via ssh:
git clone [email protected]:alexanderbazhenoff/ansible-collection-linux.git

or clone via https:

git clone https://github.com/alexanderbazhenoff/ansible-collection-linux.git
  1. Enter the project directory:
cd ansible-collection-linux

and build tar.gz archive of a collection:

ansible-galaxy collection build
  1. Install a collection from created tar.gz archive:
ansible-galaxy collection install $(ls -1 | grep ".tar.gz")

Usage.

Create inventory and create playbook files. Include these roles into your playbook. These roles include example playbooks and inventory files already. You can also find usage examples in readme files or /example sub-folders.

If you like it, please vote on ansible galaxy page.