diff --git a/mirror_repos/cuda_39.yaml b/mirror_repos/cuda_39.yaml new file mode 100644 index 0000000..3199189 --- /dev/null +++ b/mirror_repos/cuda_39.yaml @@ -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" diff --git a/update_repo.yaml b/update_repo.yaml new file mode 100644 index 0000000..9b0192e --- /dev/null +++ b/update_repo.yaml @@ -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 diff --git a/yaml_sub/myrepo_data.yaml b/yaml_sub/myrepo_data.yaml index d2c0d54..44cdf15 100644 --- a/yaml_sub/myrepo_data.yaml +++ b/yaml_sub/myrepo_data.yaml @@ -20,6 +20,12 @@ enabled=1 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] name=NVidia Cuda 37 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_37 @@ -88,7 +94,7 @@ [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 gpgcheck=0