From e833b5dad1b158450ea6a96041e9ee614a9c0ccd Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 12 Mar 2022 00:55:19 +0300 Subject: [PATCH] Feat(debian/gitweb): Install and configure `gitweb` --- playbooks/roles/debian/gitweb/README.txt | 1 + .../debian/gitweb/files/git.phdru.name.perl | 3 +++ playbooks/roles/debian/gitweb/meta/main.yml | 1 + playbooks/roles/debian/gitweb/tasks/main.yml | 22 +++++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 playbooks/roles/debian/gitweb/README.txt create mode 100644 playbooks/roles/debian/gitweb/files/git.phdru.name.perl create mode 100644 playbooks/roles/debian/gitweb/meta/main.yml create mode 100644 playbooks/roles/debian/gitweb/tasks/main.yml diff --git a/playbooks/roles/debian/gitweb/README.txt b/playbooks/roles/debian/gitweb/README.txt new file mode 100644 index 0000000..bb23fc0 --- /dev/null +++ b/playbooks/roles/debian/gitweb/README.txt @@ -0,0 +1 @@ +Install gitweb. diff --git a/playbooks/roles/debian/gitweb/files/git.phdru.name.perl b/playbooks/roles/debian/gitweb/files/git.phdru.name.perl new file mode 100644 index 0000000..5549d9e --- /dev/null +++ b/playbooks/roles/debian/gitweb/files/git.phdru.name.perl @@ -0,0 +1,3 @@ +$projectroot = "/home/phd/Internet/WWW/htdocs/git.phdru.name"; +$default_text_plain_charset = "koi8-r"; +$fallback_encoding = "koi8-r"; diff --git a/playbooks/roles/debian/gitweb/meta/main.yml b/playbooks/roles/debian/gitweb/meta/main.yml new file mode 100644 index 0000000..eed76b7 --- /dev/null +++ b/playbooks/roles/debian/gitweb/meta/main.yml @@ -0,0 +1 @@ +dependencies: ['debian/apache'] diff --git a/playbooks/roles/debian/gitweb/tasks/main.yml b/playbooks/roles/debian/gitweb/tasks/main.yml new file mode 100644 index 0000000..2b273dd --- /dev/null +++ b/playbooks/roles/debian/gitweb/tasks/main.yml @@ -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' + -- 2.39.5