neuro_ansible/mirror_repos/fedora_main_update.yaml

25 lines
611 B
YAML
Raw Normal View History

2024-04-19 01:34:53 +02:00
---
- name: mirror fedora main update repo
hosts: all
become: true
gather_facts: true
vars:
2024-04-19 15:52:13 +02:00
repoid: "Fedora_Update"
work_path: "/web/repos/Fedora/{{ version }}/{{ repoid }}"
src_url: "https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/{{ version }}/Everything/x86_64/"
2024-04-19 01:34:53 +02:00
tasks:
- name: create directory
ansible.builtin.file:
2024-04-19 15:52:13 +02:00
path: "{{ work_path }}"
2024-04-19 01:34:53 +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:34:53 +02:00