From 78aca75f8ee5ca4db0df2af5157bbb68c42059e8 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 29 Mar 2024 01:57:37 +0100 Subject: [PATCH] Add files via upload --- hourly_update.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 hourly_update.yaml diff --git a/hourly_update.yaml b/hourly_update.yaml new file mode 100644 index 0000000..bc68e9c --- /dev/null +++ b/hourly_update.yaml @@ -0,0 +1,46 @@ +--- +- name: install our repos + hosts: all + become: true + + tasks: + + - name: Make sure systemd-oomd service unit is stopped + systemd_service: + state: stopped + name: systemd-oomd + + - 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: 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 +