mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 10:00:03 -03:30
Add rkt gc task (#2945)
This commit is contained in:
parent
35a3597416
commit
a36e3fbec3
2
roles/rkt/files/rkt-gc.sh
Normal file
2
roles/rkt/files/rkt-gc.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
rkt gc
|
||||
@ -1,5 +1,13 @@
|
||||
---
|
||||
|
||||
- name: Install rkt
|
||||
import_tasks: install.yml
|
||||
when: not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
||||
|
||||
- name: Set up cron job to do garbage cleanup
|
||||
copy:
|
||||
src: rkt-gc.sh
|
||||
dest: /etc/cron.hourly/rkt-gc.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0750
|
||||
when: not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user