|
@@ -6,19 +6,19 @@ |
|
|
become_user: "{{buildbot_worker_user}}" |
|
|
become_user: "{{buildbot_worker_user}}" |
|
|
args: |
|
|
args: |
|
|
chdir: "{{buildbot_worker_home_directory}}" |
|
|
chdir: "{{buildbot_worker_home_directory}}" |
|
|
creates: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker |
|
|
|
|
|
|
|
|
creates: "{{buildbot_worker_directory}}" |
|
|
notify: restart buildbot-worker service |
|
|
notify: restart buildbot-worker service |
|
|
|
|
|
|
|
|
- name: buildbot-worker name |
|
|
- name: buildbot-worker name |
|
|
lineinfile: |
|
|
lineinfile: |
|
|
path: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker/buildbot.tac |
|
|
|
|
|
|
|
|
path: "{{buildbot_worker_directory}}/buildbot.tac" |
|
|
regexp: '^workername *=' |
|
|
regexp: '^workername *=' |
|
|
line: workername = '{{buildbot_worker_name}}' |
|
|
line: workername = '{{buildbot_worker_name}}' |
|
|
notify: restart buildbot-worker service |
|
|
notify: restart buildbot-worker service |
|
|
|
|
|
|
|
|
- name: buildbot-worker password |
|
|
- name: buildbot-worker password |
|
|
lineinfile: |
|
|
lineinfile: |
|
|
path: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker/buildbot.tac |
|
|
|
|
|
|
|
|
path: "{{buildbot_worker_directory}}/buildbot.tac" |
|
|
regexp: '^passwd *=' |
|
|
regexp: '^passwd *=' |
|
|
line: passwd = '{{buildbot_worker_password}}' |
|
|
line: passwd = '{{buildbot_worker_password}}' |
|
|
notify: restart buildbot-worker service |
|
|
notify: restart buildbot-worker service |
|
@@ -26,7 +26,7 @@ |
|
|
- name: buildbot-worker host info |
|
|
- name: buildbot-worker host info |
|
|
copy: |
|
|
copy: |
|
|
content: "{{buildbot_worker_host_info}}" |
|
|
content: "{{buildbot_worker_host_info}}" |
|
|
dest: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker/info/host |
|
|
|
|
|
|
|
|
dest: "{{buildbot_worker_directory}}/info/host" |
|
|
owner: "{{ buildbot_worker_user }}" |
|
|
owner: "{{ buildbot_worker_user }}" |
|
|
group: "{{ buildbot_worker_group }}" |
|
|
group: "{{ buildbot_worker_group }}" |
|
|
notify: restart buildbot-worker service |
|
|
notify: restart buildbot-worker service |
|
@@ -34,7 +34,7 @@ |
|
|
- name: buildbot-worker admin info |
|
|
- name: buildbot-worker admin info |
|
|
copy: |
|
|
copy: |
|
|
content: "{{buildbot_worker_admin_info}}" |
|
|
content: "{{buildbot_worker_admin_info}}" |
|
|
dest: /var/lib/buildbot-worker/{{buildbot_worker_name}}/worker/info/admin |
|
|
|
|
|
|
|
|
dest: "{{buildbot_worker_directory}}/info/admin" |
|
|
owner: "{{ buildbot_worker_user }}" |
|
|
owner: "{{ buildbot_worker_user }}" |
|
|
group: "{{ buildbot_worker_group }}" |
|
|
group: "{{ buildbot_worker_group }}" |
|
|
notify: restart buildbot-worker service |
|
|
notify: restart buildbot-worker service |
|
|