From 10bfda624074e6e50a7169008af2426c4fdecd6c Mon Sep 17 00:00:00 2001
From: bjolo <bjorn.lofdahl@gmail.com>
Date: Mon, 19 Sep 2016 15:16:32 +0200
Subject: [PATCH] Checking valid fernet expiry only need to run once

TrivialFix

Change-Id: I4e84ac4e51a976ad132aa78b175855bed1d4bb20
---
 ansible/roles/prechecks/tasks/service_checks.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/prechecks/tasks/service_checks.yml b/ansible/roles/prechecks/tasks/service_checks.yml
index 06c9b8e32..f3a64eb36 100644
--- a/ansible/roles/prechecks/tasks/service_checks.yml
+++ b/ansible/roles/prechecks/tasks/service_checks.yml
@@ -44,6 +44,7 @@
   failed_when: result.stdout | regex_replace('(.*ssh_key.*)', '') | search(":")
 
 - name: Checking fernet_token_expiry in globals.yml. Update fernet_token_expiry to allowed value if this task fails
+  run_once: true
   local_action: command grep '^[^#]*fernet_token_expiry:\s*\d*' "{{ CONFIG_DIR }}/globals.yml" | sed 's/[^0-9]*//g'
   register: result
   changed_when: false
-- 
GitLab