diff options
| -rw-r--r-- | .github/workflows/molecule.yml | 3 | ||||
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | meta/main.yml | 3 |
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 }}" @@ -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 |