Limit local tasks to local hosts

We want to improve the gate speed by running the swift-role once on AIO,
since we don't need to split the sync tasks out when not using MR swift.
This means for MR swift we need to differentiate between the tasks that
should be run on remote hosts and those that should be run on local
hosts.

Change-Id: I0a8436ebbab0226f6c4fb499c938f760429aad39
This commit is contained in:
Andy McCrae 2016-03-22 09:42:21 +00:00
parent e26e325aee
commit cb73b84fb6

View File

@ -16,16 +16,19 @@
- include: swift_pre_install.yml
when:
- swift_do_setup | bool
- inventory_hostname in groups['swift_all']
tags:
- swift-setup
- include: swift_install.yml
when:
- swift_do_setup | bool
- inventory_hostname in groups['swift_all']
tags:
- swift-setup
- include: swift_post_install.yml
when:
- swift_do_setup | bool
- inventory_hostname in groups['swift_all']
tags:
- swift-setup