master
Andrew Wang 1 year ago
parent 81e2def541
commit b00623ac15
  1. 4
      roles/mirror/tasks/main.yml
  2. 2
      roles/system/tasks/main.yml

@ -34,6 +34,7 @@
owner: "{{ item.owner }}"
group: "{{ item.owner }}"
mode: "0755"
state: directory
loop:
- { file: dev, owner: root }
- { file: bin, owner: root }
@ -59,6 +60,7 @@
cmd: "ln -s {{ item.src }} {{ item.dest }}"
chdir: "/mirror/merlin/bin"
creates: "/mirror/merlin/bin/{{ item.dest }}"
warn: no
loop:
- { src: busybox, dest: cd }
- { src: busybox, dest: cp }
@ -88,6 +90,7 @@
cmd: "ln -s run/merlin.sock merlin.sock"
chdir: "/mirror/merlin"
creates: "/mirror/merlin/merlin.sock"
warn: no
- name: create second merlin.sock symlink
file:
@ -96,6 +99,7 @@
owner: root
group: root
state: link
force: yes
# TODO: copy over merlin.service and start/enable service
# this will create /mirror/merlin/run/merlin.sock

@ -72,10 +72,10 @@
# .cscmirror(2|3) is owned by root
file:
path: /mirror/root/.cscmirror
state: directory
owner: mirror
group: mirror
mode: "0755"
state: directory
- name: install zfs
apt:

Loading…
Cancel
Save