]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/debian/gitweb/tasks/main.yml
Feat(debian/gitweb): Install and configure `gitweb`
[ansible.git] / playbooks / roles / debian / gitweb / tasks / main.yml
diff --git a/playbooks/roles/debian/gitweb/tasks/main.yml b/playbooks/roles/debian/gitweb/tasks/main.yml
new file mode 100644 (file)
index 0000000..2b273dd
--- /dev/null
@@ -0,0 +1,22 @@
+- name: Install gitweb
+  become: true
+  local_action:
+    module: apt
+    autoclean: yes
+    autoremove: yes
+    cache_valid_time: 3600
+    install_recommends: no
+    name: gitweb
+    state: latest
+    update_cache: yes
+
+- name: Setup gitweb
+  become: true
+  copy:
+    src: git.phdru.name.perl
+    dest: /etc/apache2/sites-available
+    owner: root
+    group: root
+    directory_mode: '0755'
+    mode: '0644'
+