From d35e4a5a5e3e8f958973bcaf61572b1e5e2789c4 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Tue, 5 May 2020 10:04:31 +0200 Subject: [PATCH] worker base setup --- tasks/main.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index ed97d53..67b9f6d 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -1 +1,26 @@ --- + +- name: pip3 packages for buildbot-worker + pip: + name: + - buildbot-worker + executable: pip3 + +- name: buildbot-worker group + group: + name: "{{ buildbot_worker_group }}" + +- name: buildbot-worker user + user: + name: "{{ buildbot_worker_user }}" + group: "{{ buildbot_worker_group }}" + home: "{{ ez_directory }}" + shell: /usr/bin/fish + +- 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=rwx,o=