Skip to content
Snippets Groups Projects
Commit 4ee3d1a2 authored by nimrod's avatar nimrod
Browse files

Rename variable git_directory to cgit_directory for consistency.

parent bcea4562
No related branches found
No related tags found
No related merge requests found
...@@ -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. cgit_directory: /srv/git #The directory to be created and used for all git repositories served.
Dependencies Dependencies
------------ ------------
......
--- ---
# defaults file for ansible-cgit # defaults file for ansible-cgit
git_directory: /srv/git
cgit_directory: /srv/git
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
- name: Create git repostories directory - name: Create git repostories directory
file: file:
path: '{{ git_directory }}' path: '{{ cgit_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={{ cgit_directory }}'
regexp: 'scan-path=' regexp: 'scan-path='
- line: 'css=/cgit/css/cgit.css' - line: 'css=/cgit/css/cgit.css'
regexp: '^css=' regexp: '^css='
......
#!/bin/sh -e #!/bin/sh -e
cd {{ git_directory|dirname }} cd {{ cgit_directory|dirname }}
tar -cf /var/backups/git.tar.gz {{ git_directory|basename }} tar -cf /var/backups/git.tar.gz {{ cgit_directory|basename }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment