neuro_ansible/mirror_repos/opera.yaml

23 lines
523 B
YAML
Raw Normal View History

2024-04-19 03:10:49 +02:00
---
- name: mirror opera repo
hosts: all
become: true
gather_facts: true
vars:
repoid: "opera"
work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}"
src_url: "https://rpm.opera.com/rpm/"
tasks:
- name: create directory
ansible.builtin.file:
path: "{{ work_path }}"
state: "directory"
- name: mirror repo
2024-04-19 15:52:13 +02:00
shell: "dnf reposync --remote-time --newest-only --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"
2024-04-19 03:10:49 +02:00