git_server: Use FQCN for module calls
This commit is contained in:
parent
c073c795d3
commit
a58644b60c
1 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install git server packages
|
- name: install git server packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: installed
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -10,12 +10,12 @@
|
||||||
- perl-Digest-MD5
|
- perl-Digest-MD5
|
||||||
|
|
||||||
- name: fix selinux context from data directory
|
- name: fix selinux context from data directory
|
||||||
sefcontext:
|
community.general.sefcontext:
|
||||||
path: /export/git(/.*)?
|
path: /export/git(/.*)?
|
||||||
setype: git_sys_content_t
|
setype: git_sys_content_t
|
||||||
|
|
||||||
- name: create git directory
|
- name: create git directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /srv/git
|
path: /srv/git
|
||||||
src: /export/git
|
src: /export/git
|
||||||
state: link
|
state: link
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: create gitweb config
|
- name: create gitweb config
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/gitweb.conf
|
dest: /etc/gitweb.conf
|
||||||
src: gitweb.conf
|
src: gitweb.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: create robots.txt
|
- name: create robots.txt
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /var/www/git/robots.txt
|
dest: /var/www/git/robots.txt
|
||||||
content: "User-agent: *\nDisallow:\n"
|
content: "User-agent: *\nDisallow:\n"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: copy local layout files
|
- name: copy local layout files
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: "/var/www/git/static/{{ item }}"
|
dest: "/var/www/git/static/{{ item }}"
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
- gitweb-local.css
|
- gitweb-local.css
|
||||||
|
|
||||||
- name: create apache git config
|
- name: create apache git config
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/httpd/conf.local.d/git.conf
|
dest: /etc/httpd/conf.local.d/git.conf
|
||||||
src: git.conf
|
src: git.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
Loading…
Add table
Reference in a new issue