ITOPSENG-164 Remove all the debug now that logic is fixed

This commit is contained in:
Glenn Stewart
2019-10-15 15:27:41 +11:00
parent 37ae0eadc5
commit 5f2e5929ab

View File

@@ -163,10 +163,7 @@
- name: download_binary is true so fetch and do all the things - name: download_binary is true so fetch and do all the things
block: block:
- name: debug # Fetch binary and copy to temp
debug:
msg: Download the binary
- name: Fetch binary - name: Fetch binary
get_url: get_url:
url: "{{ atl_product_download_url }}" url: "{{ atl_product_download_url }}"
@@ -175,7 +172,7 @@
force: false force: false
register: atl_product_completed register: atl_product_completed
# If product installer was fetched make the moving directory # If product installer was fetched make the lock directory
- name: Create moving_lock. - name: Create moving_lock.
file: file:
path: "{{ atl_product_home_shared_moving_lock }}" path: "{{ atl_product_home_shared_moving_lock }}"
@@ -184,26 +181,20 @@
- atl_product_completed is succeeded - atl_product_completed is succeeded
register: moving_lock_created register: moving_lock_created
# Directory lock was created by this run # Directory lock was created by this run?
# - Move binary # If so, then set a fact intending to move binary
- name: Move binary Scenario - lock created by this run - name: Move binary Scenario - lock created by this run
set_fact: set_fact:
move_binary: true move_binary: true
when: when:
- moving_lock_created is succeeded - moving_lock_created is succeeded
- moving_lock_created.changed == True - moving_lock_created.changed == True
# Otherwise directory lock was either already created or
# Directory lock was either already created or could not be # could not be created. Fall back is to continue and install from temp
# - Continue and install from temp
- name: Continue Scenario - lock cannot be created or created by previous run
debug:
msg: lock not created
when: moving_lock_created is not succeeded or
( moving_lock_created is succeeded and moving_lock_created.changed == False )
when: download_binary when: download_binary
# Move binary block # If the intention is to move binary to home_shared
- name: Move product installer to home_shared - name: Move product installer to home_shared
block: block:
@@ -247,13 +238,8 @@
when: move_binary when: move_binary
- name: debug # At this point the binary is in {{ atl_product_download }}
debug: # (which is either on home_shared or temp)
msg: Install from {{ atl_product_download }}
# At this point the binary is in place and can be used to install
# The location is determined by {{ atl_product_download }} variable
# set above
- name: Unpack the downloaded application depending on format - name: Unpack the downloaded application depending on format
include_tasks: "unpack_{{ atl_download_format }}.yml" include_tasks: "unpack_{{ atl_download_format }}.yml"