Skip to content

Commit

Permalink
ansible: Switch staging server prune to hourly (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah authored Oct 30, 2022
1 parent ac12ea8 commit 0b7f76c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ansible/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ansible==6.5.0
ansible-core==2.13.5
2 changes: 1 addition & 1 deletion ansible/roles/staging_server/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
become: true
ansible.builtin.cron:
name: prune docker system and volumes
special_time: daily
special_time: hourly
user: root
job: "docker system prune --all --volumes --force"
6 changes: 3 additions & 3 deletions ansible/roles/staging_server/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- include: unattended_upgrades.yml
- include: docker.yml
- include: deploy_user.yml
- include_tasks: unattended_upgrades.yml
- include_tasks: docker.yml
- include_tasks: deploy_user.yml

0 comments on commit 0b7f76c

Please sign in to comment.