diff --git a/tasks/workstation/shared/settings/templates.yml b/tasks/workstation/shared/settings/templates.yml new file mode 100644 index 0000000..1d18812 --- /dev/null +++ b/tasks/workstation/shared/settings/templates.yml @@ -0,0 +1,22 @@ +--- +# Copy everything from PROJECT/files/templates/ to User's home. + +- name: Workstation | Settings | Templates | Variables + set_fact: + user_templates: "{{ user_user.home }}/Templates" + +- name: Workstation | Settings | Templates | Ensure Directory Exists + ansible.builtin.file: + path: "{{ user_templates }}" + state: directory + mode: '0755' + owner: "{{ user }}" + group: "{{ user }}" + +- name: Workstation | Settings | Templates | Copy Files + copy: + src: 'templates/' + dest: "{{ user_templates }}/" + owner: "{{ user }}" + group: "{{ user }}" + mode: '0755'