install weir for zfssync and fix some writespace
This commit is contained in:
parent
81e49c21e9
commit
944553ffe8
|
@ -14,11 +14,11 @@
|
|||
when: hostname.stdout != "mirror"
|
||||
|
||||
- name: run the system role first
|
||||
include_role:
|
||||
include_role:
|
||||
name: "../roles/system"
|
||||
|
||||
- name: run mirror system role second
|
||||
include_role:
|
||||
include_role:
|
||||
name: "../roles/mirror"
|
||||
|
||||
- name: run the rest of the roles
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
- name: install python3-pip
|
||||
apt:
|
||||
name: python3-pip
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: install weir (for zfssync)
|
||||
pip:
|
||||
name: weir
|
||||
executable: pip3
|
||||
|
||||
- name: copy cron job
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/cron/csc-mirror"
|
||||
|
@ -21,7 +32,7 @@
|
|||
mode: preserve
|
||||
|
||||
- name: copy files for /mirror/root
|
||||
copy:
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/root/root/"
|
||||
dest: /mirror/root
|
||||
owner: root
|
||||
|
@ -84,7 +95,7 @@
|
|||
- name: create first merlin.sock symlink
|
||||
# noqa deprecated-command-syntax
|
||||
# need chdir to create relative symlinks
|
||||
command:
|
||||
command:
|
||||
cmd: "ln -s run/merlin.sock merlin.sock"
|
||||
chdir: "/mirror/merlin"
|
||||
creates: "/mirror/merlin/merlin.sock"
|
||||
|
|
|
@ -76,9 +76,9 @@
|
|||
# create the var using
|
||||
# vars:
|
||||
# disks:
|
||||
# - /dev/vdc
|
||||
# - /dev/vdd
|
||||
# - /dev/vde
|
||||
# - /dev/vdc
|
||||
# - /dev/vdd
|
||||
# - /dev/vde
|
||||
# - /dev/vdf
|
||||
# disk_arg: "{{ disks | join(' ') }}"
|
||||
|
||||
|
@ -87,9 +87,9 @@
|
|||
- name: disks to be used for zpool
|
||||
set_fact:
|
||||
disks:
|
||||
- /dev/vdc
|
||||
- /dev/vdd
|
||||
- /dev/vde
|
||||
- /dev/vdc
|
||||
- /dev/vdd
|
||||
- /dev/vde
|
||||
- /dev/vdf
|
||||
|
||||
- name: join disk pathes onto one line
|
||||
|
@ -104,9 +104,9 @@
|
|||
|
||||
- name: create and mount zpool
|
||||
command: >
|
||||
zpool create
|
||||
-m /mirror/root/.cscmirror
|
||||
cscmirror
|
||||
raidz2
|
||||
zpool create
|
||||
-m /mirror/root/.cscmirror
|
||||
cscmirror
|
||||
raidz2
|
||||
{{ disk_arg }}
|
||||
when: zpool_exists.rc != 0
|
||||
|
|
Loading…
Reference in New Issue