aboutsummaryrefslogtreecommitdiff
path: root/ansible/prune-images.yml
diff options
context:
space:
mode:
authorDincer Celik <hello@dincercelik.com>2019-12-12 13:57:17 +0300
committerDincer Celik <hello@dincercelik.com>2020-01-27 13:44:01 +0300
commitb7728ea8907a6e7ccd7decf56d3fc7b0365619dd (patch)
tree623f83eac38b3c44f547c9ec9a2e657d9b477201 /ansible/prune-images.yml
parentbcc09ed2b44972b483baf6b6db74181fab73dd65 (diff)
downloadkolla-ansible-b7728ea8907a6e7ccd7decf56d3fc7b0365619dd.tar.gz
kolla-ansible-b7728ea8907a6e7ccd7decf56d3fc7b0365619dd.zip
Adds Docker image pruning command
This change introduces prune-images command. Uses docker_prune module of Ansible that comes with version 2.8. Depends-On: https://review.opendev.org/#/c/699333/ Implements: blueprint docker-image-pruning Change-Id: Icbf374dd50e1cc1f1604bb4fa779b34279efd50c
Diffstat (limited to 'ansible/prune-images.yml')
-rw-r--r--ansible/prune-images.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/ansible/prune-images.yml b/ansible/prune-images.yml
new file mode 100644
index 000000000..2b6a3adae
--- /dev/null
+++ b/ansible/prune-images.yml
@@ -0,0 +1,9 @@
+---
+- import_playbook: gather-facts.yml
+
+- name: Apply role prune-images
+ hosts: baremetal
+ serial: '{{ kolla_serial|default("0") }}'
+ gather_facts: false
+ roles:
+ - prune-images