Cleaning up ironic-deploy role
Removed un-necessary/duplicated steps and old comment.
This commit is contained in:
parent
5598f3baa7
commit
7a50fddc3a
@ -36,15 +36,6 @@
|
|||||||
- name: "Verify that deployment image is present."
|
- name: "Verify that deployment image is present."
|
||||||
local_action: stat path={{deploy_image}}
|
local_action: stat path={{deploy_image}}
|
||||||
register: test_deploy_image
|
register: test_deploy_image
|
||||||
# TODO: checksum for the above stat operation will be required for deployment.
|
|
||||||
- name: "Error if deployment image is missing."
|
- name: "Error if deployment image is missing."
|
||||||
local_action: fail msg="Deployment image is missing. Consider re-running setup."
|
local_action: fail msg="Deployment image is missing. Consider re-running setup."
|
||||||
when: test_deploy_image.stat.exists == false
|
when: test_deploy_image.stat.exists == false
|
||||||
- name: "Check to see if there is a file where the ssh_key_path is defined"
|
|
||||||
local_action: stat path={{ ssh_public_key_path }}
|
|
||||||
register: test_ssh_public_key_path
|
|
||||||
- name: "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: "Read ssh public key in"
|
|
||||||
local_action: set_fact ssh_public_key="{{ lookup('file', ssh_public_key_path ) }}"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user