From 1dc45a3d73dd3112ff4b516bcf1be20504cc9824 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 27 Jul 2015 17:37:30 +0200
Subject: [PATCH] Allow a playbook to turn of remote updates

---
 defaults/main.yml | 1 +
 tasks/main.yml    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/defaults/main.yml b/defaults/main.yml
index 4938622..284184e 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,6 +1,7 @@
 ---
 # file: roles/serverdensity/defaults/main.yml
 
+sd_update_remote: true
 sd_url: ''
 sd_api_token: ''
 sd_api_cache_file: false
diff --git a/tasks/main.yml b/tasks/main.yml
index 54ef924..77987d4 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -8,6 +8,7 @@
     cleanup={{sd_alert_cleanup}}
     force={{ sd_force_update }}
     cache={{sd_api_cache_file}}
+  when: sd_update_remote
 
 - name: 'ServerDensity | Install Public Repo Key'
   apt_key:
-- 
GitLab