mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-16 01:43:06 -06:00
task name, comments, and other general formatting updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# create a report on existing mesh nodes
|
||||
|
||||
- block:
|
||||
- name: try calling the server to get a list of the mesh nodes
|
||||
- name: Try calling the server to get a list of the mesh nodes
|
||||
ansible.builtin.uri:
|
||||
url: '{{ atl_proxy_name }}/rest/api/latest/admin/git/mesh/nodes'
|
||||
method: GET
|
||||
@@ -15,31 +15,31 @@
|
||||
delay: 10
|
||||
no_log: True # http headers contain auth strings
|
||||
|
||||
- name: set bitbucket dc cluster available fact
|
||||
- name: Set Bitbucket DC cluster available fact
|
||||
ansible.builtin.set_fact:
|
||||
bitbucket_cluster_available: true
|
||||
|
||||
- name: print out the mesh_nodes_report
|
||||
- name: Print out the mesh_nodes_report
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ mesh_nodes_report.json }}"
|
||||
when:
|
||||
- mesh_nodes_report.status == 200
|
||||
|
||||
- name: set mesh_nodenames_list
|
||||
- name: Set mesh_nodenames_list fact
|
||||
ansible.builtin.set_fact:
|
||||
mesh_nodenames_list: "{{ mesh_nodes_report | json_query('json[*].name') }}"
|
||||
when: mesh_nodes_report.status == 200
|
||||
|
||||
- name: print out the mesh_nodenames_list
|
||||
- name: Print out the mesh_nodenames_list
|
||||
ansible.builtin.debug:
|
||||
var: mesh_nodenames_list
|
||||
when: mesh_nodes_report.status == 200
|
||||
|
||||
rescue:
|
||||
- name: set bitbucket dc cluster available fact
|
||||
- name: Set Bitbucket DC cluster available fact
|
||||
ansible.builtin.set_fact:
|
||||
bitbucket_cluster_available: false
|
||||
|
||||
- name: log a message about bb cluster unavailable
|
||||
- name: Log a message about Bitbucket DC cluster unavailable
|
||||
ansible.builtin.debug:
|
||||
msg: "Bitbucket DC cluster not currently available."
|
||||
|
||||
Reference in New Issue
Block a user