From c09ad93ad89f2ab724c8a598e614b73e71215253 Mon Sep 17 00:00:00 2001 From: Benjamin Gilby Date: Mon, 20 Nov 2023 11:27:19 +0900 Subject: [PATCH] give root privilege to download-models --- ansible/roles/download_models/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/download_models/tasks/main.yaml b/ansible/roles/download_models/tasks/main.yaml index 661c2c3..d7a9e5e 100644 --- a/ansible/roles/download_models/tasks/main.yaml +++ b/ansible/roles/download_models/tasks/main.yaml @@ -1,9 +1,11 @@ - name: Create data directory + become: true ansible.builtin.file: path: "{{ data_dir }}" state: directory - name: Create tensorrt_yolox directory inside {{ data_dir }} + become: true ansible.builtin.file: path: "{{ data_dir }}/tensorrt_yolox" mode: "755"