neuro_ansible/mirror_repos/fusion_nonfree_nvidia.yaml

25 lines
617 B
YAML
Raw Normal View History

2024-04-19 01:48:17 +02:00
---
- name: mirror fusion free repo
hosts: all
become: true
gather_facts: true
vars:
work_path: "fusion_nonfree_nvidia"
src_url: "rsync://mirror1.hs-esslingen.de/rpmfusion/nonfree/fedora/nvidia-driver/{{ version }}/x86_64/"
tasks:
- name: create directory
ansible.builtin.file:
path: "{{ base_path }}/{{ version }}/{{ work_path }}"
state: "directory"
- name: syncronize
ansible.posix.synchronize:
dest: "{{ base_path }}/{{ version }}/{{ work_path }}"
src: "{{ src_url }}"
delete: "true"
delegate_to: "{{ inventory_hostname }}"