85a8f3cfe9
Many minor cleanups, including: - Consistent capitalization for ironic and bifrost - Typos - Prefer more active construction in task names - Reflow comment text where appropriate for enhanced readability Change-Id: I05a1ecd6c49003e02961ab3c9cbbcb3b31cd4af6
24 lines
1.2 KiB
YAML
24 lines
1.2 KiB
YAML
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
|
|
#
|
|
# 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: "Defined ssh_public_key_path - Check to see if there is a file where the ssh_public_key_path is defined"
|
|
local_action: stat path={{ ssh_public_key_path }}
|
|
register: test_ssh_public_key_path
|
|
when: ssh_public_key_path is defined
|
|
- name: "Defined ssh_public_key_path - Error if ssh_public_key_path is not valid"
|
|
local_action: fail msg="ssh_public_key_path is not valid."
|
|
when: test_ssh_public_key_path.stat.exists == false
|
|
- name: "Defined ssh_public_key_path - Read SSH public key in"
|
|
set_fact: ssh_public_key="{{ lookup('file', ssh_public_key_path ) }}"
|