From e308d6f700e5a521e6281b4a3572d4d21b9e8468 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 19 Jan 2019 00:32:54 -0500 Subject: [PATCH] Don't start / stop disabled hosts If a host is added to the disabled group, we shouldn't be running commands on that host. Change-Id: I4fa62fb6668162d2c824b85c061a2e43915c1162 Signed-off-by: Paul Belanger --- playbooks/zuul/start.yaml | 10 +++++----- playbooks/zuul/stop.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/playbooks/zuul/start.yaml b/playbooks/zuul/start.yaml index 32cd533..5897dfb 100644 --- a/playbooks/zuul/start.yaml +++ b/playbooks/zuul/start.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- hosts: zuul-scheduler +- hosts: zuul-scheduler:!disabled tasks: - name: starting zuul-scheduler become: true @@ -20,7 +20,7 @@ name: zuul-scheduler state: started -- hosts: zuul-merger +- hosts: zuul-merger:!disabled tasks: - name: starting zuul-merger become: true @@ -28,7 +28,7 @@ name: zuul-merger state: started -- hosts: zuul-executor +- hosts: zuul-executor:!disabled tasks: - name: starting zuul-executor become: true @@ -36,7 +36,7 @@ name: zuul-executor state: started -- hosts: zuul-fingergw +- hosts: zuul-fingergw:!disabled tasks: - name: starting zuul-fingergw become: true @@ -44,7 +44,7 @@ name: zuul-fingergw state: started -- hosts: zuul-web +- hosts: zuul-web:!disabled tasks: - name: starting zuul-web become: true diff --git a/playbooks/zuul/stop.yaml b/playbooks/zuul/stop.yaml index 36466fd..78af3ff 100644 --- a/playbooks/zuul/stop.yaml +++ b/playbooks/zuul/stop.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- hosts: zuul-executor +- hosts: zuul-executor:!disabled tasks: - name: stopping zuul-executor become: true @@ -27,7 +27,7 @@ state: absent timeout: 11400 -- hosts: zuul-merger +- hosts: zuul-merger:!disabled tasks: - name: stopping zuul-merger become: true @@ -42,7 +42,7 @@ state: absent timeout: 11400 -- hosts: zuul-web +- hosts: zuul-web:!disabled tasks: - name: stopping zuul-web become: true @@ -57,7 +57,7 @@ state: absent timeout: 11400 -- hosts: zuul-fingergw +- hosts: zuul-fingergw:!disabled tasks: - name: stopping zuul-fingergw become: true @@ -72,7 +72,7 @@ state: absent timeout: 11400 -- hosts: zuul-scheduler +- hosts: zuul-scheduler:!disabled tasks: - name: stopping zuul-scheduler become: true