Add playbook which copies the templates to '$HOME/Templates/'.
This commit is contained in:
22
tasks/workstation/shared/settings/templates.yml
Normal file
22
tasks/workstation/shared/settings/templates.yml
Normal file
@@ -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'
|
||||||
Reference in New Issue
Block a user