![Major Hayden](/assets/img/avatar_default.png)
As noted in bug 1550426, the tasks for grub.cfg will fail if the file is not present. This patch checks for the grub.cfg and only tries to make changes if the file is present. Closes-bug: 1550426 Change-Id: Id5368dfa2c24d555c59f9ceef4676f3d15706ad9
24 lines
784 B
YAML
24 lines
784 B
YAML
---
|
|
# Copyright 2015, 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.
|
|
|
|
- name: Playbook for role testing
|
|
hosts: localhost
|
|
pre_tasks:
|
|
- name: Ensure apt cache is updated before testing
|
|
apt:
|
|
update_cache: yes
|
|
roles:
|
|
- role: "{{ rolename }}"
|