aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/meta
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-18 21:06:21 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-04-02 11:45:09 +0200
commit1cdb3d7f5aa68be5d90cfbbbc69918ac7823a8ae (patch)
treefe3c16ac9c525e1be9ff61b8ff450c2b3346bfbc /roles/git/meta
parentcb6189507ab4f6c6db960105c69b69e92f7710c0 (diff)
downloadrules-1cdb3d7f5aa68be5d90cfbbbc69918ac7823a8ae.tar.gz
feat(roles/git): add argument specs
Diffstat (limited to 'roles/git/meta')
-rw-r--r--roles/git/meta/main.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/roles/git/meta/main.yml b/roles/git/meta/main.yml
new file mode 100644
index 0000000..1117027
--- /dev/null
+++ b/roles/git/meta/main.yml
@@ -0,0 +1,41 @@
+---
+
+dependencies:
+ - role: sshd_keys
+ sshd_keys_users:
+ - "{{ git_user }}"
+
+argument_specs:
+ main:
+ short_description: git main entrypoint.
+ options:
+
+ git_user:
+ type: str
+ required: true
+ description: Git user
+
+ git_group:
+ type: str
+ required: true
+ description: Git group
+
+ git_dir:
+ type: path
+ required: true
+ description: Git directory
+
+ git_shell:
+ type: path
+ required: true
+ description: Shell of the git user
+
+ git_default_branch:
+ type: str
+ required: true
+ description: Default branch when creating a git repository
+
+ git_allow_ssh_login:
+ type: bool
+ required: true
+ description: Allow user to login with ssh
remember that computers suck.