mirror: Lint fixes
This commit is contained in:
parent
ee25d32b60
commit
70cdfd4612
7 changed files with 38 additions and 37 deletions
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
rsyncoptions: []
|
||||
postcmd: ""
|
||||
mirror_rsyncoptions: []
|
||||
mirror_postcmd: ""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
SRC="{{ source }}"
|
||||
RSYNCOPTS="{{ rsyncoptions | join(' ') }}"
|
||||
POSTCMD="{{ postcmd }}"
|
||||
SRC="{{ mirror_source }}"
|
||||
RSYNCOPTS="{{ mirror_rsyncoptions | join(' ') }}"
|
||||
POSTCMD="{{ mirror_postcmd }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue