diff options
-rw-r--r-- | components.yml | 5 | ||||
-rw-r--r-- | roles/vcsworker/tasks/main.yml | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/components.yml b/components.yml index 3159fdd..c316cbd 100644 --- a/components.yml +++ b/components.yml @@ -2,6 +2,7 @@ remote_user: root become: no roles: + - haproxy - vcsworker vars: gitlab_token: "{{ lookup('pipe', 'pass wmf/wmf-gitlab.vm.liw.fi/gitlab_token') }}" @@ -12,3 +13,7 @@ debian_codename: stretch debian_mirror: deb.debian.org + + haproxy_domain: wmf2-api.vm.liw.fi + letsencrypt_email: liw@liw.fi + diff --git a/roles/vcsworker/tasks/main.yml b/roles/vcsworker/tasks/main.yml index 955ae55..a2ca67b 100644 --- a/roles/vcsworker/tasks/main.yml +++ b/roles/vcsworker/tasks/main.yml @@ -71,3 +71,14 @@ owner: _wmf group: _wmf mode: '0600' + +- name: "install vcsworker.service" + copy: + src: vcsworker.service + dest: /lib/systemd/system/vcsworker.service + +- name: "enable and (re)start vcsworker" + systemd: + name: vcsworker.service + enabled: yes + state: restarted |