Extend create vm job template (#97)

This commit is contained in:
Matthew Fernandez
2023-09-13 08:09:34 -06:00
committed by GitHub
parent 7e4399eac2
commit 2cd3ec6f72
5 changed files with 12 additions and 5 deletions

View File

@@ -21,4 +21,4 @@ aws_env_tag: prod
aws_purpose_tag: ansible_demo
aws_ansiblegroup_tag: cloud
aws_ec2_wait: true
aws_snapshots: {}
aws_snapshots: {}

View File

@@ -59,4 +59,4 @@
region: "{{ aws_region }}"
instance_ids: "{{ instance_id }}"
state: started
wait: true
wait: true

View File

@@ -40,4 +40,3 @@
ansible.builtin.set_stats:
data:
aws_snapshots: "{{ snapshot_stat | items2dict }}"

View File

@@ -7,4 +7,4 @@
# },
# ...
# ]
aws_ec2_snapshot_query: "[].{snapshot_id: snapshot_id, vol_id: volume.id, device: volume.attachment_set[?instance_id=='{{ instance_id }}'].device | [0]}"
aws_ec2_snapshot_query: "[].{snapshot_id: snapshot_id, vol_id: volume.id, device: volume.attachment_set[?instance_id=='{{ instance_id }}'].device | [0]}"