Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbazhenoff committed Mar 31, 2024
1 parent 413fc2f commit 94076c4
Showing 1 changed file with 55 additions and 37 deletions.
92 changes: 55 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
<!-- markdownlint-disable MD033 MD001 MD041 -->
An ansible collection with linux-related roles to perform various setups.
<!-- docs-ci-cut-begin -->
<div align='center'>
<!-- markdown-link-check-disable -->
[![MegaLinter](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/mega-linter.yml/badge.svg?branch=main)](https://megalinter.io/)
<!-- markdown-link-check-enable -->
</div>
<!-- docs-ci-cut-end -->

## Project content.
##### Ansible Roles

#### Roles:

- [**bareos**](roles/bareos/README.md) - Installs and configures [Bareos](https://www.bareos.com/) 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).
- [**bareos**](roles/bareos/README.md) - Installs/configures [Bareos](https://www.bareos.com/) and third-party
components, adds Bareos file daemon(s) to Bareos server, create or revoke user profiles, and uploads Bareos configs to
the host (e.g. if you have already installed Bareos server and storage daemon(s)).

- [**lxcfs**](roles/lxcfs/README.md): Installs [lxc](https://linuxcontainers.org/lxc/introduction/) or
[**lxcfs**](https://linuxcontainers.org/lxcfs/introduction/) on linux system.
[**lxcfs**](https://linuxcontainers.org/lxcfs/introduction/) on linux system.

- [**postgresql**](roles/postgresql/README.md): Installs and configures specified version(s) of PostgreSQL database
instance(s), manage users, databases, schemas, privileges and replication slots.
instance(s), manage users, databases, schemas, privileges and replication slots.

- [**zabbix_agent**](roles/zabbix_agent/README.md) - Installs zabbix agent and configures them for services,
apps and platform autodiscovery on
[Zabbix Server side](https://github.com/alexanderbazhenoff/ansible-collection-linux/tree/main/roles/zabbix_agent#setup-on-zabbix-server-side).
apps and platform autodiscovery on
[Zabbix Server side](https://github.com/alexanderbazhenoff/ansible-collection-linux/tree/main/roles/zabbix_agent#setup-on-zabbix-server-side).



Expand All @@ -27,39 +32,52 @@ apps and platform autodiscovery on
#### Install from ansible galaxy:

1. Set-up collection from ansible galaxy:
```bash
ansible-galaxy collection install alexanderbazhenoff.linux
```
If you need to use a custom installation path, e.g.
```bash
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](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#installing-collections-with-ansible-galaxy)
for more info.

```bash
ansible-galaxy collection install alexanderbazhenoff.linux
```

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

```bash
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](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#installing-collections-with-ansible-galaxy)
for more info.

#### Install from sources:

1. Clone via ssh:
```bash
git clone git@github.com:alexanderbazhenoff/ansible-collection-linux.git
```
or clone via https:
```bash
git clone https://github.com/alexanderbazhenoff/ansible-collection-linux.git
```

```bash
git clone git@github.com:alexanderbazhenoff/ansible-collection-linux.git
```

or clone via https:

```bash
git clone https://github.com/alexanderbazhenoff/ansible-collection-linux.git
```

2. Enter the project directory:
```bash
cd ansible-collection-linux
```
and build tar.gz archive of a collection:
```bash
ansible-galaxy collection build
```

```bash
cd ansible-collection-linux
```

and build tar.gz archive of a collection:

```bash
ansible-galaxy collection build
```

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

```bash
ansible-galaxy collection install $(ls -1 | grep ".tar.gz")
```


## Usage.
Expand Down

0 comments on commit 94076c4

Please sign in to comment.