]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
teuthology: ensure scheduler user bin exists 603/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Thu, 14 Jan 2021 12:02:37 +0000 (13:02 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Wed, 20 Jan 2021 10:56:31 +0000 (11:56 +0100)
Before copying crontab script we need to ensure the bin directory
exists for scheduler user.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
roles/teuthology/tasks/main.yml

index 1b30777ec2e8e9a06ad6d4dd36cccf30856ae08e..d55f1e81b675ae05a8e6affac456a9afb0c28617 100644 (file)
   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