mirror: ansible-lint fixes
This commit is contained in:
parent
a849d1f2a9
commit
c5898365ce
4 changed files with 54 additions and 55 deletions
|
@ -1,23 +1,22 @@
|
|||
---
|
||||
|
||||
- name: create config for {{ label }}
|
||||
template:
|
||||
- name: Create config for {{ label }}
|
||||
ansible.builtin.template:
|
||||
dest: "/etc/sync-mirrors/{{ label }}.conf"
|
||||
src: mirror.conf.j2
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: create target directory
|
||||
file:
|
||||
- name: Create target directory
|
||||
ansible.builtin.file:
|
||||
path: "/srv/mirrors/{{ label }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: mirror
|
||||
group: mirror
|
||||
|
||||
- name: link target directory to web
|
||||
file:
|
||||
- name: Link target directory to web
|
||||
ansible.builtin.file:
|
||||
path: "/srv/web/{{ inventory_hostname }}/{{ label }}"
|
||||
src: "/srv/mirrors/{{ label }}"
|
||||
state: link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue