aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-12-16 22:13:01 +0100
committerbinary <me@rgoncalves.se>2020-12-16 22:13:01 +0100
commit7cb2a0e8ab3d2db6bc74c525f3ba057fbcd537a1 (patch)
tree24af5d36d16b8733d608960b7c839e02a2373eff
parentd8a329701ca8514eddda202498e21bf6c95a067c (diff)
downloadinfrastructure-7cb2a0e8ab3d2db6bc74c525f3ba057fbcd537a1.tar.gz
Make cron job silent and expose gitdaemon
-rw-r--r--host_vars/vm2.yml5
-rw-r--r--roles/stagit/tasks/main.yml2
2 files changed, 6 insertions, 1 deletions
diff --git a/host_vars/vm2.yml b/host_vars/vm2.yml
index 969359c..cef4ac3 100644
--- a/host_vars/vm2.yml
+++ b/host_vars/vm2.yml
@@ -15,3 +15,8 @@ services:
proto: "tcp"
port: "1234"
domain: "git"
+
+ - name: "gitdeamon"
+ proto: "tcp"
+ port: "9418"
+ public: true
diff --git a/roles/stagit/tasks/main.yml b/roles/stagit/tasks/main.yml
index 9144d81..33a26be 100644
--- a/roles/stagit/tasks/main.yml
+++ b/roles/stagit/tasks/main.yml
@@ -57,7 +57,7 @@
cron:
name: "Static git-page generation"
minute: "*/5"
- job: "cd /var/www/htdocs/stagit && ./generate-static-git.sh"
+ job: "cd /var/www/htdocs/stagit && ./generate-static-git.sh >/dev/null 2>&1"
- name: execute static-page generation script once
shell: ./generate-static-git.sh
remember that computers suck.