--- - name: mirror intel oneAPI repo hosts: all become: true gather_facts: true vars: repoid: "oneAPI" work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}" src_url: "https://yum.repos.intel.com/oneapi" tasks: - name: create directory ansible.builtin.file: path: "{{ work_path }}" state: "directory" - name: mirror repo shell: "dnf reposync --remote-time --newest-only --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x"