aboutsummaryrefslogtreecommitdiff
path: root/roles/git/tasks/main.yaml
blob: b80989ed25bbaa50ea7ef3d779cf05a943013be9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- name: Install Git, Nginx, and Fcgiwrap
  ansible.builtin.dnf:
    name:
      - cgit
      - nginx
      - fcgiwrap
    state: present

- name: Deploy Git Nginx configuration
  ansible.builtin.template:
    src: git_nginx.conf.j2
    dest: /etc/nginx/conf.d/default.conf
  notify: Restart Git Services

- name: Ensure Git Web Services are Enabled and Running
  ansible.builtin.systemd:
    name: "{{ item }}"
    state: started
    enabled: yes
  loop:
    - nginx
    - fcgiwrap@nginx.socket