From 5bc3e19288589e743d668a7a9398136445d188cb Mon Sep 17 00:00:00 2001 From: Ha Manh Dong Date: Thu, 12 Jul 2018 16:04:13 +0700 Subject: [PATCH] Remove when condition in roles/swift/tasks/deploy.yml Because all task in deploy.yml need run in all swift host, so we don't need the when condition. Change-Id: Ibd61ce2615985cbad70c13a37c863fc6e5e858e4 --- ansible/roles/swift/tasks/deploy.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ansible/roles/swift/tasks/deploy.yml b/ansible/roles/swift/tasks/deploy.yml index 5f8e486dc5..48e87db7a1 100644 --- a/ansible/roles/swift/tasks/deploy.yml +++ b/ansible/roles/swift/tasks/deploy.yml @@ -1,24 +1,8 @@ --- - include_tasks: register.yml - when: inventory_hostname in groups['swift-account-server'] or - inventory_hostname in groups['swift-container-server'] or - inventory_hostname in groups['swift-object-server'] or - inventory_hostname in groups['swift-proxy-server'] - include_tasks: config.yml - when: inventory_hostname in groups['swift-account-server'] or - inventory_hostname in groups['swift-container-server'] or - inventory_hostname in groups['swift-object-server'] or - inventory_hostname in groups['swift-proxy-server'] - include_tasks: start.yml - when: inventory_hostname in groups['swift-account-server'] or - inventory_hostname in groups['swift-container-server'] or - inventory_hostname in groups['swift-object-server'] or - inventory_hostname in groups['swift-proxy-server'] - include_tasks: check.yml - when: inventory_hostname in groups['swift-account-server'] or - inventory_hostname in groups['swift-container-server'] or - inventory_hostname in groups['swift-object-server'] or - inventory_hostname in groups['swift-proxy-server']