Browse Source

creating Downloads if missing

Grega Bremec 2 năm trước cách đây
mục cha
commit
068a16b097
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      roles/pull-tools/tasks/main.yml

+ 8 - 0
roles/pull-tools/tasks/main.yml

@@ -13,6 +13,14 @@
 #   - mirror.openshift.com for a specific ocp_z version, if only download_filename is set
 #   - arbitrary location, download_url + download_filename if both are set
 #
+- name: Make sure Downloads exists
+  file:
+    path: "{{ ansible_facts['user_dir'] }}/Downloads"
+    state: directory
+    owner: student
+    group: student
+    mode: 0775
+
 - name: Check whether the tool archive is there
   stat:
     path: "{{ ansible_facts['user_dir'] }}/Downloads/{{ tools[item].download_filename }}"