aboutsummaryrefslogtreecommitdiff
path: root/roles/git/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/git/tasks')
-rw-r--r--roles/git/tasks/main.yaml22
1 files changed, 22 insertions, 0 deletions
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