Selaa lähdekoodia

make config working

covid-videoplattform
vanhempi
commit
26f178b471
3 muutettua tiedostoa jossa 27 lisäystä ja 3 poistoa
  1. +2
    -0
      defaults/main.yaml
  2. +2
    -2
      handlers/main.yaml
  3. +23
    -1
      tasks/main.yaml

+ 2
- 0
defaults/main.yaml Näytä tiedosto

@@ -3,3 +3,5 @@
buildbot_db_name: buildbot
buildbot_db_user: buildbot
buildbot_db_pass: "{{ ansible_local.buildbot.database_password }}"

buildbot_server_name: "{{ inventory_hostname }}"

+ 2
- 2
handlers/main.yaml Näytä tiedosto

@@ -4,7 +4,7 @@
systemd:
daemon_reload: yes

- name: reload buildbot service
- name: restart buildbot service
systemd:
state: reloaded
state: restarted
name: buildbot@master.service

+ 23
- 1
tasks/main.yaml Näytä tiedosto

@@ -23,6 +23,11 @@
name: buildbot_gitea
executable: pip3

- name: install service_identity
pip:
name: service_identity
executable: pip3

- name: buildbot system group
group:
name: buildbot
@@ -65,7 +70,7 @@
template:
src: buildbot/master.cfg.j2
dest: /var/lib/buildbot/master/master.cfg
notify: reload buildbot service
notify: restart buildbot service

- meta: flush_handlers

@@ -73,3 +78,20 @@
systemd:
state: started
name: buildbot@master.service

- include_role:
name: certificate
vars:
certificate_name: buildbot
certificate_directory: /etc/ssl
certificate_key_usage:
- digitalSignature
- keyEncipherment
certificate_extended_key_usage:
- serverAuth
certificate_common_name: "{{ buildbot_server_name }}"

- include_role:
name: nginx
vars:
nginx_vhosts: "{{ buildbot_nginx_vhosts }}"

Loading…
Peruuta
Tallenna