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

58 lines
1.3 KiB
YAML

- name: copy cron job
copy:
src: "{{ role_path }}/templates/cron/csc-mirror"
dest: /etc/cron.d/csc-mirror
owner: root
group: root
mode: "0644"
# TODO: start/restart cron
- name: copy mirror home
copy:
src: "{{ role_path }}/templates/mirror/"
dest: /home/mirror
owner: mirror
group: mirror
mode: preserve
- name: copy include
copy:
src: "{{ role_path }}/templates/root/root/include/"
dest: /mirror/root/include
owner: root
group: csc-mirror
mode: preserve
- name: copy merlin
copy:
src: "{{ role_path }}/templates/root/merlin/"
dest: /mirror/merlin
owner: root
group: root
mode: "0755"
- name: set /mirror/merlin/run permissions
file:
path: /mirror/merlin/run
state: directory
owner: mirror
group: mirrot
mode: "0755"
# apt install busybox-static
# then move to /mirror/merlin/run and create symblinks
# once this is
# for busybox
# ln -s /bin/busybox ls
# then ./ls will execute ls from busybox
# startup merlin to get
# /mirror/merlin/run/merlin.sock
# then symlink to /mirror/merlin/merlin.sock
# and /home/mirror/merlin/merlin.sock
# in /mirror/merlin/dev need to create null random urandom with mknod
# might not need the root/merlin/(bin|dev|run) and just make the empty dirs
# where does arthur come from?