diff options
author | binary <me@rgoncalves.se> | 2020-12-16 22:13:01 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-12-16 22:13:01 +0100 |
commit | 7cb2a0e8ab3d2db6bc74c525f3ba057fbcd537a1 (patch) | |
tree | 24af5d36d16b8733d608960b7c839e02a2373eff | |
parent | d8a329701ca8514eddda202498e21bf6c95a067c (diff) | |
download | infrastructure-7cb2a0e8ab3d2db6bc74c525f3ba057fbcd537a1.tar.gz |
Make cron job silent and expose gitdaemon
-rw-r--r-- | host_vars/vm2.yml | 5 | ||||
-rw-r--r-- | roles/stagit/tasks/main.yml | 2 |
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 |