Use dynamic includes to save time

This patch adds a dynamic include for installing packages
via yum or apt. It avoids having so many skipped tasks and
should save some time during gate runs.

Change-Id: I953764b7bb95df0625993a31ba4effc8b81499aa
This commit is contained in:
Major Hayden 2017-02-20 13:20:26 -05:00
parent 22b7d9c761
commit 1bfb4553ad
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
1 changed files with 1 additions and 8 deletions

View File

@ -13,18 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- include: galera_client_install_apt.yml
- include: "galera_client_install_{{ ansible_pkg_mgr }}.yml"
when:
- ansible_pkg_mgr == 'apt'
- galera_client_package_install | bool
tags:
- install-apt
- include: galera_client_install_yum.yml
when:
- ansible_pkg_mgr == 'yum'
- galera_client_package_install | bool
tags:
- install-yum
- name: Install pip packages