23 lines
505 B
YAML
23 lines
505 B
YAML
|
---
|
||
|
- 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
|
||
|
shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"
|
||
|
|
||
|
|
||
|
|