From 129c27d50de3f620fc02176debe1b111b4b45569 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 14 Jan 2021 13:02:37 +0100 Subject: [PATCH] teuthology: ensure scheduler user bin exists Before copying crontab script we need to ensure the bin directory exists for scheduler user. Signed-off-by: Kyr Shatskyy --- roles/teuthology/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/teuthology/tasks/main.yml b/roles/teuthology/tasks/main.yml index 1b30777..d55f1e8 100644 --- a/roles/teuthology/tasks/main.yml +++ b/roles/teuthology/tasks/main.yml @@ -28,6 +28,16 @@ tags: - config +- name: Ensure scheduler user binary directory exists + file: + state: directory + owner: "{{ teuthology_scheduler_user }}" + group: "{{ teuthology_scheduler_user }}" + path: "/home/{{ teuthology_scheduler_user }}/bin" + mode: 0755 + tags: + - crontab + - name: Ship teuthology user's crontab update script template: src: update-crontab.sh -- 2.39.5