mirror-env/roles/index/tasks/main.yml

31 lines
777 B
YAML

---
- name: Copy over crond job
copy:
src: "{{role_path}}/templates/csc-mirror"
dest: /etc/cron.d/csc-mirror
# restart cron
# make sure that each role can run on its own or in any order (can assume that zfs + users role will run first)
# remove this if useradding with home dir
- name: mirror home
file:
path: /home/mirror
state: directory
# owner: mirror
# group: mirror
mode: 0755
recurse: yes
# user template module instead
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html
- name: Copy index files
copy:
src: "{{role_path}}/templates/mirror-index"
dest: /home/mirror/mirror-index
- name: Copy assets
copy:
src: "{{role_path}}/templates/include"
dest: /mirror/root/include