openstack-ansible-os_nova/tasks/nova_compute.yml
Jean-Philippe Evrard 06af48b45b Ensure tasks are not skipped
- The lookup of the first file should only be skipped
  when necessary (the apt bits).

- On the block/rescue: The rescue task didn't run, so if the when
  didn't trigger, no virt will be set, unless the
  ``cat /proc/cpuinfo`` failed.

Change-Id: I6e89de1c9d1828003a83c5ca2b5b56d64c12f30c
2017-05-23 15:13:00 +00:00

32 lines
915 B
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- include: "{{ item }}"
with_first_found:
- files:
- "nova_compute_{{ nova_virt_type }}.yml"
paths:
- "drivers/{{ nova_virt_type }}/"
tags:
- nova-install
- include: nova_compute_key_populate.yml
tags:
- nova-config
- include: nova_compute_key_distribute.yml
tags:
- nova-config