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