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
|
||||
|
||||
- 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:
|
||||
path: /srv/git
|
||||
src: /export/git
|
||||
state: link
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: create gitweb config
|
||||
ansible.builtin.copy:
|
||||
|
@ -28,7 +36,7 @@
|
|||
src: gitweb.conf
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: create robots.txt
|
||||
ansible.builtin.copy:
|
||||
|
@ -44,7 +52,7 @@
|
|||
src: "{{ item }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
with_items:
|
||||
- logo.png
|
||||
- gitweb-local.css
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue