openstack-ansible-os_nova/tasks/nova_install_apt.yml
Eric Berglund 54af2f29ed Add novalink apt key and repo before installation
The novalink apt key and repo were not being added until after the
pvm-novalink apt installation. This moves those steps to a new playbook
that will run before the apt installation when using the powervm driver
type.

Change-Id: I13588aecd7e3dfe31502956846a75fafd96d1afd
Closes-Bug: #1675913
2017-03-27 10:38:40 -05:00

31 lines
1.0 KiB
YAML

---
# Copyright 2017, 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: nova_install_apt_powervm.yml
when: nova_virt_type == "powervm"
- name: Install nova role packages (apt)
apt:
name: "{{ item }}"
state: "{{ nova_package_state }}"
update_cache: yes
cache_valid_time: "{{ cache_timeout }}"
with_items:
- "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
when: item != ''
register: install_nova_role_packages
async: 600
poll: 0