neuro_ansible/mirror_repos/docker.yaml
David Rotermund 52d4241596 Update
2024-04-19 03:10:49 +02:00

22 lines
552 B
YAML

---
- name: mirror docker repo
hosts: all
become: true
gather_facts: true
vars:
repoid: "docker"
work_path: "/web/repos/Fedora/{{ version }}/{{ repoid }}"
src_url: "https://download.docker.com/linux/fedora/{{ version }}/x86_64/stable"
tasks:
- name: create directory
ansible.builtin.file:
path: "{{ work_path }}"
state: "directory"
- name: mirror repo
shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"