task name, comments, and other general formatting updates

This commit is contained in:
Lee Goolsbee
2024-03-26 14:54:39 -05:00
parent b0824a858c
commit 6881bc1a89
12 changed files with 92 additions and 93 deletions

View File

@@ -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."