mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2026-02-02 01:03:17 -06:00
task name, comments, and other general formatting updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# hydrate mesh volume from snapshot or create empty one if no snapshot set
|
||||
- name: create new ebs from snapshot for this mesh node with correct tags
|
||||
- name: Create new EBS from snapshot for this mesh node with correct tags
|
||||
amazon.aws.ec2_vol:
|
||||
region: "{{ ansible_ec2_placement_region }}"
|
||||
instance: "{{ ansible_ec2_instance_id }}"
|
||||
@@ -13,16 +13,16 @@
|
||||
Name: "{{ atl_aws_stack_name }} mesh volume {{ ansible_ec2_placement_availability_zone }}"
|
||||
volume_type: "mesh"
|
||||
register: mesh_vol_info
|
||||
when: (mesh_snapshot is defined) and (mesh_snapshot|length > 0)
|
||||
when: (mesh_snapshot is defined) and (mesh_snapshot | length > 0)
|
||||
|
||||
- name: set mesh_vol from info of vol created from snapshot
|
||||
- name: Set mesh_vol from info of vol created from snapshot
|
||||
ansible.builtin.set_fact:
|
||||
mesh_vol: "{{ mesh_vol_info.volume_id }}"
|
||||
new_meshvol_from_snap: true
|
||||
when: (mesh_snapshot is defined) and (mesh_snapshot|length > 0)
|
||||
when: (mesh_snapshot is defined) and (mesh_snapshot | length > 0)
|
||||
|
||||
# if we still dont have mesh_vol, create new/empty one
|
||||
- name: final choice - create empty mesh_vol
|
||||
- name: Create new/empty mesh volume
|
||||
amazon.aws.ec2_vol:
|
||||
region: "{{ ansible_ec2_placement_region }}"
|
||||
instance: "{{ ansible_ec2_instance_id }}"
|
||||
@@ -36,14 +36,13 @@
|
||||
Name: "{{ atl_aws_stack_name }} mesh volume {{ ansible_ec2_placement_availability_zone }}"
|
||||
volume_type: "mesh"
|
||||
register: mesh_vol_info
|
||||
when: (mesh_snapshot is not defined) or (mesh_snapshot|length == 0)
|
||||
when: (mesh_snapshot is not defined) or (mesh_snapshot | length == 0)
|
||||
|
||||
- name: set mesh_vol from info of created
|
||||
- name: Set mesh_vol from info of created volume
|
||||
ansible.builtin.set_fact:
|
||||
mesh_vol: "{{ mesh_vol_info.volume_id }}"
|
||||
when: (mesh_snapshot is not defined) or (mesh_snapshot|length == 0)
|
||||
when: (mesh_snapshot is not defined) or (mesh_snapshot | length == 0)
|
||||
|
||||
# we should always have mesh_vol by now, if not, Barf !
|
||||
- name: we should always have mesh_vol by now
|
||||
- name: Log mesh_vol
|
||||
ansible.builtin.debug:
|
||||
var: mesh_vol
|
||||
var: mesh_vol
|
||||
|
||||
Reference in New Issue
Block a user