25 lines
618 B
YAML
25 lines
618 B
YAML
|
---
|
||
|
- name: mirror fusion free repo
|
||
|
hosts: all
|
||
|
become: true
|
||
|
gather_facts: true
|
||
|
|
||
|
vars:
|
||
|
work_path: "fusion_nonfree2"
|
||
|
src_url: "rsync://mirror1.hs-esslingen.de/rpmfusion/nonfree/fedora/releases/{{ version }}/Everything/x86_64/"
|
||
|
|
||
|
tasks:
|
||
|
- name: create directory
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ base_path }}/{{ version }}/{{ work_path }}"
|
||
|
state: "directory"
|
||
|
|
||
|
- name: syncronize
|
||
|
ansible.posix.synchronize:
|
||
|
dest: "{{ base_path }}/{{ version }}/{{ work_path }}"
|
||
|
src: "{{ src_url }}"
|
||
|
delete: "true"
|
||
|
delegate_to: "{{ inventory_hostname }}"
|
||
|
|
||
|
|