Skip to content

Commit

Permalink
Merge pull request #9 from adfinis/feat/git_submodules
Browse files Browse the repository at this point in the history
feat: manage standalone roles with git submodules
  • Loading branch information
adf-patrickha authored Jun 27, 2024
2 parents a33ebb4 + bf62f4c commit 90e368d
Show file tree
Hide file tree
Showing 103 changed files with 31 additions and 8,169 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Set version in galaxy.yml
run: |
Expand Down
18 changes: 18 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[submodule "roles/bareos_repository"]
path = roles/bareos_repository
url = https://github.com/adfinis/ansible-role-bareos_repository
[submodule "roles/bareos_webui"]
path = roles/bareos_webui
url = https://github.com/adfinis/ansible-role-bareos_webui
[submodule "roles/bareos_dir"]
path = roles/bareos_dir
url = https://github.com/adfinis/ansible-role-bareos_dir
[submodule "roles/bareos_sd"]
path = roles/bareos_sd
url = https://github.com/adfinis/ansible-role-bareos_sd
[submodule "roles/bareos_fd"]
path = roles/bareos_fd
url = https://github.com/adfinis/ansible-role-bareos_fd
[submodule "roles/bareos_console"]
path = roles/bareos_console
url = https://github.com/adfinis/ansible-role-bareos_console
18 changes: 3 additions & 15 deletions UPDATING.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Updating the roles

1. Delete the roles:

```shell
rm -Rf roles/*
```

2. Copy the roles in:

```shell
./UPDATING.sh
```

3. Update galaxy.yml

Bump version.
Roles in collection are managed as [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
* Changes can be fetched with `git fetch`.
* To pull changes for specific role, run: `git submodule update --remote <role name>` (Example: `git submodule update --remote roles/bareos_repository`).
28 changes: 0 additions & 28 deletions UPDATING.sh

This file was deleted.

1 change: 1 addition & 0 deletions roles/bareos_console
Submodule bareos_console added at 82160a
674 changes: 0 additions & 674 deletions roles/bareos_console/LICENSE

This file was deleted.

105 changes: 0 additions & 105 deletions roles/bareos_console/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions roles/bareos_console/defaults/main.yml

This file was deleted.

14 changes: 0 additions & 14 deletions roles/bareos_console/meta/argument_specs.yml

This file was deleted.

42 changes: 0 additions & 42 deletions roles/bareos_console/meta/main.yml

This file was deleted.

4 changes: 0 additions & 4 deletions roles/bareos_console/requirements.yml

This file was deleted.

53 changes: 0 additions & 53 deletions roles/bareos_console/tasks/assert.yml

This file was deleted.

24 changes: 0 additions & 24 deletions roles/bareos_console/tasks/main.yml

This file was deleted.

Empty file.
24 changes: 0 additions & 24 deletions roles/bareos_console/templates/bconsole.conf.j2

This file was deleted.

1 change: 1 addition & 0 deletions roles/bareos_dir
Submodule bareos_dir added at 000759
Loading

0 comments on commit 90e368d

Please sign in to comment.