Skip to content

Commit

Permalink
Merge pull request #172 from rayashworth/ash-add-image-set-delete
Browse files Browse the repository at this point in the history
add delete clusterimageset from hive
  • Loading branch information
rayashworth committed Jun 16, 2021
2 parents 740a638 + 22abf98 commit f29154b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@
register: delete_namespace_results
failed_when: '"not found" not in delete_namespace_results.stderr and "deleted" not in delete_namespace_results.stdout'

- name: delete cluster image-set
shell: "oc delete clusterimageset {{ CLUSTER_NAME }}-imageset"
register: delete_cluster_imageset
failed_when: '"not found" not in delete_cluster_imageset.stderr and "deleted" not in delete_cluster_imageset.stdout'

- name: logout of hive hub
shell: "oc logout"
register: logout_results
Expand All @@ -166,7 +171,7 @@
when: 'admin_task == "provision"'

- name: Creat new inventory host (ocp_provisioned_cluster)
no_log: "True"
no_log: true
add_host:
name: "{{ console_url.stdout.split('.')[2] }}"
groups: "ocp_provisioned_cluster"
Expand Down

0 comments on commit f29154b

Please sign in to comment.