You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ---
-
- - name: initiate buildbot-worker
- command: buildbot-worker create-worker buildbot-worker localhost:9989 "{{buildbot_worker_name}}" "{{buildbot_worker_password}}"
- become: true
- become_user: "{{buildbot_worker_user}}"
- args:
- chdir: "{{buildbot_worker_home_directory}}"
- creates: "{{buildbot_worker_directory}}"
- notify: restart buildbot-worker service
-
- - name: buildbot-worker name
- lineinfile:
- path: "{{buildbot_worker_directory}}/buildbot.tac"
- regexp: '^workername *='
- line: workername = '{{buildbot_worker_name}}'
- notify: restart buildbot-worker service
-
- - name: buildbot-worker password
- lineinfile:
- path: "{{buildbot_worker_directory}}/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}}"
- dest: "{{buildbot_worker_directory}}/info/host"
- owner: "{{ buildbot_worker_user }}"
- group: "{{ buildbot_worker_group }}"
- notify: restart buildbot-worker service
-
- - name: buildbot-worker admin info
- copy:
- content: "{{buildbot_worker_admin_info}}"
- dest: "{{buildbot_worker_directory}}/info/admin"
- owner: "{{ buildbot_worker_user }}"
- group: "{{ buildbot_worker_group }}"
- notify: restart buildbot-worker service
-
- - meta: flush_handlers
-
- - name: ensure buildbot-worker service is running
- systemd:
- state: started
- name: buildbot-worker@{{buildbot_worker_name}}.service
|