Skip to content

Commit

Permalink
Merge branch 'feat/installFromSource'
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvoxia committed Nov 29, 2024
2 parents dddca75 + 081c0a4 commit 7abaf94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
name: Ansible Lint
name: CI
'on':
pull_request:
push:
paths-ignore:
- 'README.md'

Check failure on line 7 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Lint

7:5 [indentation] wrong indentation: expected 6 but found 4
branches:
- main

Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ __Key Features:__
- Switch between specific versions installed from source
- Switch between installation from package manager and source (or vice versa)

__Dependencies:__
- [ansible.utils](https://galaxy.ansible.com/ui/repo/published/ansible/utils/)

Install dependencies with
```shell
ansible-galaxy install -r requirements.yml
```
## Installing from Source

By default the role will install NUT using the package manager as determined by the package manager. If the system's package manager comes with an older NUT package, it is possible to install NUT from source. The role will automatically install all build dependencies, check out the desired source version, compile and install NUT from source.
By default the role will install NUT using the package manager. If the system's package manager comes with an older NUT package, it is possible to install NUT from source. The role will automatically install all build dependencies, check out the desired source version, compile and install NUT from source.
It is also possible to use this role for updating NUT installed from source to a newer version (or downgrade to an older version). It is not a 'real' upgrade, but the old version is uninstalled before the new version is installed.
The role supports switching between NUT installed by package manager and installed from source.
The role supports switching between NUT installed by package manager and installed from source (and vice versa).

The following variables control installation from source:
<table>
Expand Down Expand Up @@ -453,7 +460,7 @@ Additional content to append to the `upsmon.conf` file
```yaml
- hosts: all
roles:
- role: ntd.nut
- role: salvoxia.nut
nut_users:
- name: monitor
password: changeme
Expand All @@ -466,7 +473,9 @@ Additional content to append to the `upsmon.conf` file
description: iPlug 800
```

For more examples, please see `tests/test.yml`.
For more examples, please see `molecule/*/converge.yml` and `molecule/*/prepare.yml`.


## Cheat Sheet

Run a Docker container with systemd:
Expand Down

0 comments on commit 7abaf94

Please sign in to comment.