From 5e4bf1268c266e63d0e92e845ad910a2103b86ff Mon Sep 17 00:00:00 2001 From: Roman Ilin Date: Mon, 15 Jun 2026 12:59:09 +0300 Subject: --- roles/git/tasks/main.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/git/tasks/main.yaml (limited to 'roles/git/tasks/main.yaml') diff --git a/roles/git/tasks/main.yaml b/roles/git/tasks/main.yaml new file mode 100644 index 0000000..b80989e --- /dev/null +++ b/roles/git/tasks/main.yaml @@ -0,0 +1,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 -- cgit