This commit is contained in:
David Rotermund 2024-04-19 02:25:55 +02:00
parent 67bf61df5a
commit fda522769d
3 changed files with 46 additions and 1 deletions

View file

@ -61,7 +61,7 @@
- name: install rsync - name: install rsync
dnf: dnf:
name: rsync name: rsync,dnf-command(reposync)
state: present state: present
update_cache: true update_cache: true
skip_broken: true skip_broken: true

23
mirror_repos/cuda_35.yaml Normal file
View file

@ -0,0 +1,23 @@
---
- name: mirror cuda 35 repo
hosts: all
become: true
gather_facts: true
vars:
repoid: "cuda_35"
work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}"
src_url: "http://developer.download.nvidia.com/compute/cuda/repos/fedora35/x86_64"
tasks:
- name: create directory
ansible.builtin.file:
path: "{{ work_path }}"
state: "directory"
- name: mirror repo
shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath={{repoid}},{{ src_url }} --repoid={{repoid}}"

22
mirror_repos/vscode.yaml Normal file
View file

@ -0,0 +1,22 @@
---
- name: mirror vscode repo
hosts: all
become: true
gather_facts: true
vars:
repoid: "vscode"
work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}"
src_url: "https://packages.microsoft.com/yumrepos/vscode/"
tasks:
- name: create directory
ansible.builtin.file:
path: "{{ work_path }}"
state: "directory"
- name: mirror repo
shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath={{repoid}},{{ src_url }} --repoid={{repoid}}"