Update
This commit is contained in:
parent
4bde171078
commit
67bf61df5a
5 changed files with 123 additions and 0 deletions
25
mirror_repos/fusion_free.yaml
Normal file
25
mirror_repos/fusion_free.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- name: mirror fusion free repo
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
vars:
|
||||
work_path: "fusion_free"
|
||||
src_url: "rsync://mirror1.hs-esslingen.de/rpmfusion/free/fedora/updates/{{ version }}/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 }}"
|
||||
|
||||
|
25
mirror_repos/fusion_free_everything.yaml
Normal file
25
mirror_repos/fusion_free_everything.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- name: mirror fusion free repo
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
vars:
|
||||
work_path: "fusion_free2"
|
||||
src_url: "rsync://mirror1.hs-esslingen.de/rpmfusion/free/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 }}"
|
||||
|
||||
|
25
mirror_repos/fusion_nonfree.yaml
Normal file
25
mirror_repos/fusion_nonfree.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- name: mirror fusion free repo
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
vars:
|
||||
work_path: "fusion_nonfree"
|
||||
src_url: "rsync://mirror1.hs-esslingen.de/rpmfusion/nonfree/fedora/updates/{{ version }}/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 }}"
|
||||
|
||||
|
24
mirror_repos/fusion_nonfree_everything.yaml
Normal file
24
mirror_repos/fusion_nonfree_everything.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- 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 }}"
|
||||
|
||||
|
24
mirror_repos/fusion_nonfree_nvidia.yaml
Normal file
24
mirror_repos/fusion_nonfree_nvidia.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- name: mirror fusion free repo
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
vars:
|
||||
work_path: "fusion_nonfree_nvidia"
|
||||
src_url: "rsync://mirror1.hs-esslingen.de/rpmfusion/nonfree/fedora/nvidia-driver/{{ version }}/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 }}"
|
||||
|
||||
|
Loading…
Reference in a new issue