Skip to content

Commit e600087

Browse files
authored
Merge pull request roles-ansible#50 from JoFo-IT/patch-1
Add DEFAULT_PRIVATE
2 parents 6713941 + 9b5db4c commit e600087

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Either you define exactly which release you install. Or you use the option ``lat
6969
| `gitea_user_repo_limit` | `-1` | Limit how many repos a user can have *(`-1` for unlimited)* |
7070
| `gitea_disable_http_git` | `false` | Disable the ability to interact with repositories over the HTTP protocol. (true/false) |
7171
| `gitea_default_branch` | `main` | Default branch name of all repositories. |
72+
| `gitea_default_private` | `last` | Default private when creating a new repository. [`last`, `private`, `public`] |
7273
| `gitea_repository_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[repository]` section of the config. |
7374
| `gitea_repository_upload_extra_config` | you can use this variable to pass additional config parameters in the `[repository.upload]` section of the config. |
7475

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ gitea_force_private: false
2929
gitea_user_repo_limit: '-1'
3030
gitea_disable_http_git: false
3131
gitea_default_branch: 'main'
32+
gitea_default_private: 'last'
3233
gitea_repository_extra_config: ''
3334
gitea_repository_upload_extra_config: ''
3435

templates/gitea.ini.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }}
1818
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
1919
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
2020
DEFAULT_BRANCH = {{ gitea_default_branch }}
21+
DEFAULT_PRIVATE = {{ gitea_default_private }}
2122
{{ gitea_repository_extra_config }}
2223
;
2324
[repository.upload]

vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ transfer_custom_footer:
5656
- 'files/gitea_footer/extra_links_footer.tmpl'
5757
- 'files/extra_links_footer.tmpl'
5858

59-
playbook_version_number: 23 # should be int
59+
playbook_version_number: 24 # should be int
6060
playbook_version_path: 'do1jlr.gitea.version'

0 commit comments

Comments
 (0)