git_server: Create missing data directory
This commit is contained in:
parent
a58644b60c
commit
ce09f1519b
1 changed files with 11 additions and 3 deletions
|
@ -15,12 +15,20 @@
|
||||||
setype: git_sys_content_t
|
setype: git_sys_content_t
|
||||||
|
|
||||||
- name: create git directory
|
- name: create git directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /export/git
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
|
- name: link git directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /srv/git
|
path: /srv/git
|
||||||
src: /export/git
|
src: /export/git
|
||||||
state: link
|
state: link
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: create gitweb config
|
- name: create gitweb config
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
@ -28,7 +36,7 @@
|
||||||
src: gitweb.conf
|
src: gitweb.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: create robots.txt
|
- name: create robots.txt
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
@ -44,7 +52,7 @@
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: "{{ ansible_wheel }}"
|
||||||
with_items:
|
with_items:
|
||||||
- logo.png
|
- logo.png
|
||||||
- gitweb-local.css
|
- gitweb-local.css
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue