This commit is contained in:
Andrew Wang 2021-10-03 02:53:32 -04:00
parent 81e2def541
commit b00623ac15
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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: