From ef7ab67356247e504211ef2debf659c9ee6296ae Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Mon, 3 Jun 2019 20:11:10 +0200 Subject: [PATCH] Explicitly store date facts for promote It would be convenient to use date when promoting an image. This gives the opportunity to freeze an image on dockerhub for example, and keep an always rolling image at the same time. Without this patch, ansible_date_time is not exposed on the runner, which prevents its use. Change-Id: I8798c64e8516a45cc87ad2e3c082edc5e3e1f044 --- playbooks/docker-image/promote.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playbooks/docker-image/promote.yaml b/playbooks/docker-image/promote.yaml index 8160bf438..d2127a350 100644 --- a/playbooks/docker-image/promote.yaml +++ b/playbooks/docker-image/promote.yaml @@ -1,3 +1,9 @@ - hosts: localhost + # The gather_facts need to stay on smart (default on zuul executor) + # to keep the fact gathered to a minimum. + pre_tasks: + - name: Gather minimal set of facts + setup: + filter: ansible_date_time roles: - promote-docker-image