neuro_ansible/mirror_repos/vscode.yaml
David Rotermund fda522769d Upload
2024-04-19 02:25:55 +02:00

22 lines
546 B
YAML

---
- name: mirror vscode repo
hosts: all
become: true
gather_facts: true
vars:
repoid: "vscode"
work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}"
src_url: "https://packages.microsoft.com/yumrepos/vscode/"
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={{repoid}},{{ src_url }} --repoid={{repoid}}"