mirror: Lint fixes

This commit is contained in:
Timo Makinen 2023-10-12 18:32:40 +00:00
parent ee25d32b60
commit 70cdfd4612
7 changed files with 38 additions and 37 deletions

View file

@ -1,3 +1,3 @@
---
rsyncoptions: []
postcmd: ""
mirror_rsyncoptions: []
mirror_postcmd: ""

View file

@ -1,24 +1,24 @@
---
- name: Create config for {{ label }}
- name: Create config for {{ mirror_label }}
ansible.builtin.template:
dest: "/etc/sync-mirrors/{{ label }}.conf"
dest: "/etc/sync-mirrors/{{ mirror_label }}.conf"
src: mirror.conf.j2
mode: 0644
mode: "0644"
owner: root
group: root
- name: Create target directory
ansible.builtin.file:
path: "/srv/mirrors/{{ label }}"
path: "/srv/mirrors/{{ mirror_label }}"
state: directory
mode: 0755
mode: "0755"
owner: mirror
group: mirror
- name: Link target directory to web
ansible.builtin.file:
path: "/srv/web/{{ inventory_hostname }}/{{ label }}"
src: "/srv/mirrors/{{ label }}"
path: "/srv/web/{{ inventory_hostname }}/{{ mirror_label }}"
src: "/srv/mirrors/{{ mirror_label }}"
state: link
owner: mirror
group: mirror

View file

@ -1,3 +1,3 @@
SRC="{{ source }}"
RSYNCOPTS="{{ rsyncoptions | join(' ') }}"
POSTCMD="{{ postcmd }}"
SRC="{{ mirror_source }}"
RSYNCOPTS="{{ mirror_rsyncoptions | join(' ') }}"
POSTCMD="{{ mirror_postcmd }}"