Add files via upload
This commit is contained in:
parent
ea0b0d13a2
commit
78aca75f8e
1 changed files with 46 additions and 0 deletions
46
hourly_update.yaml
Normal file
46
hourly_update.yaml
Normal file
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue