|
|
@@ -1,5 +1,7 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- import_tasks: local_facts.yaml |
|
|
|
|
|
|
|
- name: pip3 packages for buildbot-worker |
|
|
|
pip: |
|
|
|
name: |
|
|
@@ -49,6 +51,20 @@ |
|
|
|
creates: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker |
|
|
|
notify: restart buildbot-worker service |
|
|
|
|
|
|
|
- name: buildbot-worker name |
|
|
|
lineinfile: |
|
|
|
path: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker/buildbot.tac |
|
|
|
regexp: '^workername *=' |
|
|
|
line: workername = '{{buildbot_worker_name}}' |
|
|
|
notify: restart buildbot-worker service |
|
|
|
|
|
|
|
- name: buildbot-worker password |
|
|
|
lineinfile: |
|
|
|
path: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker/buildbot.tac |
|
|
|
regexp: '^passwd *=' |
|
|
|
line: passwd = '{{buildbot_worker_password}}' |
|
|
|
notify: restart buildbot-worker service |
|
|
|
|
|
|
|
- name: buildbot-worker host info |
|
|
|
copy: |
|
|
|
content: "{{buildbot_worker_host_info}}" |
|
|
|