diff --git a/install_repo.yaml b/install_repo.yaml index df1ede2..8c6bf01 100644 --- a/install_repo.yaml +++ b/install_repo.yaml @@ -61,7 +61,7 @@ - name: install rsync dnf: - name: rsync + name: rsync,dnf-command(reposync) state: present update_cache: true skip_broken: true diff --git a/mirror_repos/cuda_35.yaml b/mirror_repos/cuda_35.yaml new file mode 100644 index 0000000..f6649db --- /dev/null +++ b/mirror_repos/cuda_35.yaml @@ -0,0 +1,23 @@ +--- +- name: mirror cuda 35 repo + hosts: all + become: true + gather_facts: true + + vars: + repoid: "cuda_35" + work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}" + src_url: "http://developer.download.nvidia.com/compute/cuda/repos/fedora35/x86_64" + + 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}}" + + + diff --git a/mirror_repos/vscode.yaml b/mirror_repos/vscode.yaml new file mode 100644 index 0000000..1659888 --- /dev/null +++ b/mirror_repos/vscode.yaml @@ -0,0 +1,22 @@ +--- +- 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}}" + + +