diff options
| author | Luke Hoersten <[email protected]> | 2026-04-05 15:50:31 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-04-05 15:50:31 -0500 |
| commit | e925453eab7024b5f169bbeef6a281c9952b1d30 (patch) | |
| tree | af53745934dd462930c33a0f38530752d8e1c4fc /git/web/tasks/main.yaml | |
| parent | 55e55db9154e80aec134eef17d9d883d0213d4c4 (diff) | |
Add git/aws-s3-backup and git/web (cgit) roles
Diffstat (limited to 'git/web/tasks/main.yaml')
| -rw-r--r-- | git/web/tasks/main.yaml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/git/web/tasks/main.yaml b/git/web/tasks/main.yaml new file mode 100644 index 0000000..58a2005 --- /dev/null +++ b/git/web/tasks/main.yaml @@ -0,0 +1,33 @@ +--- + +- name: apt install cgit and fcgiwrap + become: yes + apt: name="{{item}}" + loop: + - "cgit" + - "fcgiwrap" + - "git" + - "python3-pygments" + notify: restart fcgiwrap + +- name: configure cgit + become: yes + template: src="cgitrc.j2" dest="/etc/cgitrc" + notify: restart fcgiwrap + +- name: install cgit nginx site + become: yes + template: src="cgit.nginx.conf.j2" dest="/etc/nginx/sites-available/cgit.conf" + notify: restart nginx + +- name: enable cgit nginx site + become: yes + file: + src: "/etc/nginx/sites-available/cgit.conf" + dest: "/etc/nginx/sites-enabled/cgit.conf" + state: "link" + notify: restart nginx + +- name: ensure fcgiwrap service is started + become: yes + systemd: name="fcgiwrap.service" enabled="yes" state="started" |
