Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible
cgit
Commits
4ee3d1a2
Commit
4ee3d1a2
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Rename variable git_directory to cgit_directory for consistency.
parent
bcea4562
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.rst
+1
-1
1 addition, 1 deletion
README.rst
defaults/main.yml
+2
-1
2 additions, 1 deletion
defaults/main.yml
tasks/main.yml
+2
-2
2 additions, 2 deletions
tasks/main.yml
templates/cgit.j2
+2
-2
2 additions, 2 deletions
templates/cgit.j2
with
7 additions
and
6 deletions
README.rst
+
1
−
1
View file @
4ee3d1a2
...
@@ -12,7 +12,7 @@ Role Variables
...
@@ -12,7 +12,7 @@ Role Variables
--------------
--------------
::
::
git_directory: /srv/git #The directory to be created and used for all git repositories served.
c
git_directory: /srv/git #The directory to be created and used for all git repositories served.
Dependencies
Dependencies
------------
------------
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
2
−
1
View file @
4ee3d1a2
---
---
# defaults file for ansible-cgit
# defaults file for ansible-cgit
git_directory
:
/srv/git
cgit_directory
:
/srv/git
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
2
View file @
4ee3d1a2
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
-
name
:
Create git repostories directory
-
name
:
Create git repostories directory
file
:
file
:
path
:
'
{{
git_directory
}}'
path
:
'
{{
c
git_directory
}}'
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
'
0777'
mode
:
'
0777'
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
regexp
:
'
{{
item.regexp|default(omit)
}}'
regexp
:
'
{{
item.regexp|default(omit)
}}'
insertbefore
:
'
{{
item.insertbefore|default(omit)
}}'
insertbefore
:
'
{{
item.insertbefore|default(omit)
}}'
with_items
:
with_items
:
-
line
:
'
scan-path={{
git_directory
}}'
-
line
:
'
scan-path={{
c
git_directory
}}'
regexp
:
'
scan-path='
regexp
:
'
scan-path='
-
line
:
'
css=/cgit/css/cgit.css'
-
line
:
'
css=/cgit/css/cgit.css'
regexp
:
'
^css='
regexp
:
'
^css='
...
...
This diff is collapsed.
Click to expand it.
templates/cgit.j2
+
2
−
2
View file @
4ee3d1a2
#!/bin/sh -e
#!/bin/sh -e
cd
{{
git_directory|dirname
}}
cd
{{
c
git_directory|dirname
}}
tar
-cf
/var/backups/git.tar.gz
{{
git_directory|basename
}}
tar
-cf
/var/backups/git.tar.gz
{{
c
git_directory|basename
}}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment