|
|
@@ -1,36 +1,7 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- name: buildbot-worker group |
|
|
|
group: |
|
|
|
name: "{{ buildbot_worker_group }}" |
|
|
|
|
|
|
|
- name: buildbot-worker user |
|
|
|
user: |
|
|
|
name: "{{ buildbot_worker_user }}" |
|
|
|
group: "{{ buildbot_worker_group }}" |
|
|
|
home: "{{ buildbot_worker_home_directory }}" |
|
|
|
shell: /usr/bin/fish |
|
|
|
password_lock: true |
|
|
|
|
|
|
|
- name: buildbot-worker home directory |
|
|
|
file: |
|
|
|
path: "{{ buildbot_worker_home_directory }}" |
|
|
|
owner: "{{ buildbot_worker_user }}" |
|
|
|
group: "{{ buildbot_worker_group }}" |
|
|
|
state: directory |
|
|
|
mode: u=rwx,g=rx,o= |
|
|
|
|
|
|
|
# source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/worker/contrib/systemd/buildbot-worker%40.service |
|
|
|
- name: buildbot-worker systemd service unit |
|
|
|
copy: |
|
|
|
src: systemd/buildbot-worker@.service |
|
|
|
dest: /etc/systemd/system/buildbot-worker@.service |
|
|
|
notify: |
|
|
|
- systemd daemon reload |
|
|
|
- restart buildbot-worker service |
|
|
|
|
|
|
|
- name: initiate buildbot-worker |
|
|
|
command: buildbot-worker create-worker worker localhost:9989 "{{buildbot_worker_name}}" "{{buildbot_worker_password}}" |
|
|
|
command: buildbot-worker create-worker buildbot-worker localhost:9989 "{{buildbot_worker_name}}" "{{buildbot_worker_password}}" |
|
|
|
become: true |
|
|
|
become_user: "{{buildbot_worker_user}}" |
|
|
|
args: |
|
|
|