aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Wilk <colin@wilk.cx>2026-07-02 18:28:57 +0200
committerColin Wilk <colin@wilk.cx>2026-07-02 18:28:57 +0200
commitfa137a92e1084a07608a4008ec0cb891baa76774 (patch)
treec79c778c313fe2ba49c32c5dbdf9195c05a7abca
parente0d215ddc8b22e5f16acf40240a7561ee24e4454 (diff)
downloadansible-role-borgbackup-fa137a92e1084a07608a4008ec0cb891baa76774.tar.gz
ansible-role-borgbackup-fa137a92e1084a07608a4008ec0cb891baa76774.zip
Declare community.crypto dependencyHEADmaster
-rw-r--r--.github/workflows/molecule.yml3
-rw-r--r--README.md10
-rw-r--r--meta/main.yml3
3 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml
index 6fa12b5..85362b6 100644
--- a/.github/workflows/molecule.yml
+++ b/.github/workflows/molecule.yml
@@ -38,5 +38,8 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ansible-core docker molecule molecule-plugins[docker] pytest pytest-testinfra requests
+ - name: Install Ansible collections
+ run: ansible-galaxy collection install community.crypto
+
- name: Run Molecule scenario
run: molecule test -s "${{ matrix.scenario }}"
diff --git a/README.md b/README.md
index 9d21794..1eab45d 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,7 @@ via ansible-galaxy
```sh
ansible-galaxy role install kliwniloc.borgbackup
+ansible-galaxy collection install -r collections/requirements.yml
```
```yaml
@@ -38,10 +39,17 @@ ansible-galaxy role install kliwniloc.borgbackup
- src: kliwniloc.borgbackup
```
+```yaml
+# collections/requirements.yml
+collections:
+ - name: community.crypto
+```
+
via git
```sh
ansible-galaxy role install git+https://github.com/kliwniloc/ansible-role-borgbackup.git,master
+ansible-galaxy collection install -r collections/requirements.yml
```
```yaml
@@ -578,7 +586,7 @@ To remove all backup configuration for a host:
## Dependencies
-None.
+This role requires the `community.crypto` collection for ssh key generation.
## License
diff --git a/meta/main.yml b/meta/main.yml
index 790bc41..05916c0 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -1,6 +1,9 @@
---
dependencies: []
+collections:
+ - community.crypto
+
galaxy_info:
role_name: borgbackup
author: kliwniloc