--- - 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 ansible.builtin.file: path: "/srv/mirrors/{{ label }}" state: directory 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 }}" state: link owner: mirror group: mirror