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
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
with_items:
|
||||
|
@ -10,12 +10,12 @@
|
|||
- perl-Digest-MD5
|
||||
|
||||
- name: fix selinux context from data directory
|
||||
sefcontext:
|
||||
community.general.sefcontext:
|
||||
path: /export/git(/.*)?
|
||||
setype: git_sys_content_t
|
||||
|
||||
- name: create git directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: /srv/git
|
||||
src: /export/git
|
||||
state: link
|
||||
|
@ -23,7 +23,7 @@
|
|||
group: root
|
||||
|
||||
- name: create gitweb config
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/gitweb.conf
|
||||
src: gitweb.conf
|
||||
mode: 0644
|
||||
|
@ -31,7 +31,7 @@
|
|||
group: root
|
||||
|
||||
- name: create robots.txt
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /var/www/git/robots.txt
|
||||
content: "User-agent: *\nDisallow:\n"
|
||||
mode: 0644
|
||||
|
@ -39,7 +39,7 @@
|
|||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: copy local layout files
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: "/var/www/git/static/{{ item }}"
|
||||
src: "{{ item }}"
|
||||
mode: 0644
|
||||
|
@ -50,7 +50,7 @@
|
|||
- gitweb-local.css
|
||||
|
||||
- name: create apache git config
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/httpd/conf.local.d/git.conf
|
||||
src: git.conf
|
||||
mode: 0644
|
||||
|
|
Loading…
Add table
Reference in a new issue