From f6d95218652349dd58ad7d36152bfc6b0facf7ca Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 26 May 2026 15:34:38 -0700 Subject: [PATCH] Add playbook which copies the templates to '$HOME/Templates/'. --- .../workstation/shared/settings/templates.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tasks/workstation/shared/settings/templates.yml 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'