2024-04-19 02:25:55 +02:00
|
|
|
---
|
|
|
|
- name: mirror cuda 35 repo
|
2024-04-19 15:52:13 +02:00
|
|
|
hosts: repo.neuro.uni-bremen.de
|
2024-04-19 02:25:55 +02:00
|
|
|
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
|
2024-04-19 15:52:13 +02:00
|
|
|
shell: "dnf reposync --remote-time --newest-only --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"
|
2024-04-19 02:25:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|