From ea0b0d13a2630da4762c1184478275c50de9cc4d Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 29 Mar 2024 01:56:55 +0100 Subject: [PATCH] Add files via upload --- base_package_install.yaml | 114 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 base_package_install.yaml diff --git a/base_package_install.yaml b/base_package_install.yaml new file mode 100644 index 0000000..847cd29 --- /dev/null +++ b/base_package_install.yaml @@ -0,0 +1,114 @@ +--- +- name: install our repos + hosts: all + become: true + + tasks: + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: update system (base) + dnf: + name: "*" + state: latest + update_cache: true + skip_broken: true + nobest: false + allowerasing: true + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: Load group list + include_vars: + file: yaml_sub/groups_39.yaml + - name: Install groups + dnf: + name: "{{ groupnames }}" + disablerepo: RPMFusionNonFreeUpdate,RPMFusionFreeUpdate,RPMFusionFreeEverything,RPMFusionNonFreeEverything + update_cache: true + state: present + skip_broken: true + nobest: false + allowerasing: true + exclude: ghdl,sddm-x11 + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: Load package 1 list + include_vars: + file: yaml_sub/packages_1.yaml + - name: Install package 1 + dnf: + name: "{{ package1names }}" + disablerepo: RPMFusionNonFreeUpdate,RPMFusionFreeUpdate,RPMFusionFreeEverything,RPMFusionNonFreeEverything + update_cache: true + state: present + skip_broken: true + nobest: false + allowerasing: true + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: Load package 2 list + include_vars: + file: yaml_sub/packages_2.yaml + - name: Install package 2 + dnf: + name: "{{ package2names }}" + disablerepo: RPMFusionNonFreeUpdate,RPMFusionFreeUpdate,RPMFusionFreeEverything,RPMFusionNonFreeEverything + update_cache: true + state: present + skip_broken: true + nobest: false + allowerasing: true + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: Load package 3 list + include_vars: + file: yaml_sub/packages_3.yaml + - name: Install package 3 + dnf: + name: "{{ package3names }}" + disablerepo: RPMFusionNonFreeUpdate,RPMFusionFreeUpdate,RPMFusionFreeEverything,RPMFusionNonFreeEverything + update_cache: true + state: present + skip_broken: true + nobest: false + allowerasing: true + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: Install cuda + dnf: + name: cuda + enablerepo: "*" + update_cache: true + state: present + skip_broken: true + nobest: false + allowerasing: true + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml +