neuro_ansible/mirror_repos/fusion_nonfree_nvidia.yaml

25 lines
632 B
YAML
Raw Permalink Normal View History

2024-04-19 01:48:17 +02:00
---
- name: mirror fusion free repo
hosts: all
become: true
gather_facts: true
vars:
2024-04-19 15:52:13 +02:00
repoid: "fusion_nonfree_nvidia"
work_path: "/web/repos/Fedora/{{ version }}/{{ repoid }}"
src_url: "http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/nvidia-driver/{{ version }}/x86_64/"
2024-04-19 01:48:17 +02:00
tasks:
- name: create directory
ansible.builtin.file:
2024-04-19 15:52:13 +02:00
path: "{{ work_path }}"
2024-04-19 01:48:17 +02:00
state: "directory"
2024-04-19 15:52:13 +02:00
- name: mirror repo
shell: "dnf reposync --remote-time --newest-only --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"
2024-04-19 01:48:17 +02:00