From 5950e5a8b0ace5b6968ff14989e04f200d29a094 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:04:57 +0100 Subject: [PATCH] Add files via upload --- convert_old_pre_ansible_machines.yaml | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 convert_old_pre_ansible_machines.yaml diff --git a/convert_old_pre_ansible_machines.yaml b/convert_old_pre_ansible_machines.yaml new file mode 100644 index 0000000..b27df91 --- /dev/null +++ b/convert_old_pre_ansible_machines.yaml @@ -0,0 +1,47 @@ +--- +- name: update exisiting cluster computer to ansible + hosts: all + become: true + + tasks: + - name: Make sure systemd-oomd service unit is stopped + systemd_service: + state: stopped + name: systemd-oomd + + - name: mount_info + include_tasks: yaml_sub/mount_info.yaml + + - name: remove of sge-root line + lineinfile: + path: /etc/fstab + create: no + state: absent + line: "10.10.10.16:/sge-root /sge-root nfs" + + - name: sssd + include_tasks: yaml_sub/sssd.yaml + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: fix old broken intel packages + include_tasks: yaml_sub/fix_intel.yaml + + - name: update system (all repo) + dnf: + name: "*" + state: latest + update_cache: true + skip_broken: true + nobest: false + allowerasing: true + enablerepo: "*" + + - name: Make sure systemd-oomd service unit is started + systemd_service: + state: started + name: systemd-oomd +