neuro_ansible/mirror_repos/cuda_39.yaml
David Rotermund 2e833bbe31 Update
2024-04-23 16:23:40 +02:00

19 lines
568 B
YAML

---
- 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"