diff --git a/mirror_repos/cuda_35.yaml b/mirror_repos/cuda_35.yaml index f6649db..98525b4 100644 --- a/mirror_repos/cuda_35.yaml +++ b/mirror_repos/cuda_35.yaml @@ -17,7 +17,7 @@ state: "directory" - name: mirror repo - shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath={{repoid}},{{ src_url }} --repoid={{repoid}}" + shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x" diff --git a/mirror_repos/cuda_36.yaml b/mirror_repos/cuda_36.yaml new file mode 100644 index 0000000..031fb61 --- /dev/null +++ b/mirror_repos/cuda_36.yaml @@ -0,0 +1,23 @@ +--- +- name: mirror cuda 36 repo + hosts: all + become: true + gather_facts: true + + vars: + repoid: "cuda_36" + work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}" + src_url: "http://developer.download.nvidia.com/compute/cuda/repos/fedora36/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=x,{{ src_url }} --repoid=x" + + + diff --git a/mirror_repos/cuda_37.yaml b/mirror_repos/cuda_37.yaml new file mode 100644 index 0000000..bea708e --- /dev/null +++ b/mirror_repos/cuda_37.yaml @@ -0,0 +1,23 @@ +--- +- name: mirror cuda 37 repo + hosts: all + become: true + gather_facts: true + + vars: + repoid: "cuda_37" + work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}" + src_url: "http://developer.download.nvidia.com/compute/cuda/repos/fedora37/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=x,{{ src_url }} --repoid=x" + + + diff --git a/mirror_repos/docker.yaml b/mirror_repos/docker.yaml new file mode 100644 index 0000000..d769fd6 --- /dev/null +++ b/mirror_repos/docker.yaml @@ -0,0 +1,22 @@ +--- +- name: mirror docker repo + hosts: all + become: true + gather_facts: true + + vars: + repoid: "docker" + work_path: "/web/repos/Fedora/{{ version }}/{{ repoid }}" + src_url: "https://download.docker.com/linux/fedora/{{ version }}/x86_64/stable" + + 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" + + + diff --git a/mirror_repos/edge.yaml b/mirror_repos/edge.yaml new file mode 100644 index 0000000..8ecbbd4 --- /dev/null +++ b/mirror_repos/edge.yaml @@ -0,0 +1,22 @@ +--- +- name: mirror edge repo + hosts: all + become: true + gather_facts: true + + vars: + repoid: "edge" + work_path: "/web/repos/Fedora/AllVersion/{{ repoid }}" + src_url: "https://packages.microsoft.com/yumrepos/edge/" + + 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" + + + diff --git a/mirror_repos/oneAPI.yaml b/mirror_repos/oneAPI.yaml new file mode 100644 index 0000000..2bca4e3 --- /dev/null +++ b/mirror_repos/oneAPI.yaml @@ -0,0 +1,22 @@ +--- +- 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 -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x" + + + diff --git a/mirror_repos/opera.yaml b/mirror_repos/opera.yaml new file mode 100644 index 0000000..f56cf03 --- /dev/null +++ b/mirror_repos/opera.yaml @@ -0,0 +1,22 @@ +--- +- 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" + + + diff --git a/mirror_repos/todo.txt b/mirror_repos/todo.txt new file mode 100644 index 0000000..edc1a82 --- /dev/null +++ b/mirror_repos/todo.txt @@ -0,0 +1,3 @@ +# Broken +dnf reposync -a x86_64 --delete --download-metadata --norepopath -p /web/repos/Fedora/AllVersion/google_64 --repofrompath=google_64,http://dl.google.com/linux/chrome/rpm/stable/ --repoid=google_64 + \ No newline at end of file diff --git a/mirror_repos/vscode.yaml b/mirror_repos/vscode.yaml index 1659888..ac841b1 100644 --- a/mirror_repos/vscode.yaml +++ b/mirror_repos/vscode.yaml @@ -16,7 +16,7 @@ state: "directory" - name: mirror repo - shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath={{repoid}},{{ src_url }} --repoid={{repoid}}" + shell: "dnf reposync -a x86_64 --delete --download-metadata --norepopath -p {{ work_path }} --repofrompath=x,{{ src_url }} --repoid=x" diff --git a/yaml_sub/myrepo_data.yaml b/yaml_sub/myrepo_data.yaml index 816bcf7..b1b6e70 100644 --- a/yaml_sub/myrepo_data.yaml +++ b/yaml_sub/myrepo_data.yaml @@ -58,7 +58,7 @@ [Opera] name=Opera - baseurl=http://10.10.0.11/repos/Fedora/AllVersion/opera/rpm.opera.com/rpm + baseurl=http://10.10.0.11/repos/Fedora/AllVersion/opera enabled=1 gpgcheck=0 @@ -94,7 +94,7 @@ [VSCode] name=VS Code - baseurl=http://10.10.0.11/repos/Fedora/AllVersion/vscode/packages.microsoft.com/yumrepos/vscode + baseurl=http://10.10.0.11/repos/Fedora/AllVersion/vscode enabled=1 gpgcheck=0 @@ -106,14 +106,13 @@ [msedge] name=msedge - baseurl=http://10.10.0.11/repos/Fedora/AllVersion/edge/packages.microsoft.com/yumrepos/edge + baseurl=http://10.10.0.11/repos/Fedora/AllVersion/edge enabled=1 gpgcheck=0 [docker-ce-stable] name=Docker CE Stable - $basearch - baseurl=https://download.docker.com/linux/fedora/$releasever/$basearch/stable + baseurl=http://10.10.0.11/repos/Fedora/$releasever/docker enabled=0 - gpgcheck=1 - gpgkey=https://download.docker.com/linux/fedora/gpg + gpgcheck=0