This commit is contained in:
David Rotermund 2024-04-23 16:23:40 +02:00
parent 05ff747905
commit 2e833bbe31
3 changed files with 36 additions and 1 deletions

19
mirror_repos/cuda_39.yaml Normal file
View file

@ -0,0 +1,19 @@
---
- name: mirror cuda 39 repo
hosts: all
become: true
gather_facts: true
vars:
repoid: "cuda_39"
work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}"
src_url: "http://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64"
tasks:
- name: create directory
ansible.builtin.file:
path: "{{ work_path }}"
state: "directory"
- name: mirror repo
shell: "dnf reposync --remote-time --newest-only --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"

10
update_repo.yaml Normal file
View file

@ -0,0 +1,10 @@
---
- name: install repo client
hosts: all
become: true
tasks:
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml

View file

@ -20,6 +20,12 @@
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[CUDA_39]
name=NVidia Cuda 39
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_39
enabled=0
gpgcheck=0
[CUDA_37] [CUDA_37]
name=NVidia Cuda 37 name=NVidia Cuda 37
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_37 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_37
@ -88,7 +94,7 @@
[SGE] [SGE]
name=SGE name=SGE
baseurl=http://10.10.0.11/repos/Fedora/37/sge/copr-be.cloud.fedoraproject.org/results/loveshack/SGE/fedora-37-x86_64 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/sge_epel9/
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0