ec2_lc: Update example to use snapshot id (#66064)
Fixes: #52085 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
a79ca57d22
commit
5c04f25245
1 changed files with 24 additions and 0 deletions
|
@ -249,6 +249,30 @@ EXAMPLES = '''
|
||||||
volumes:
|
volumes:
|
||||||
- device_name: /dev/sdf
|
- device_name: /dev/sdf
|
||||||
no_device: true
|
no_device: true
|
||||||
|
|
||||||
|
- name: Use EBS snapshot ID for volume
|
||||||
|
block:
|
||||||
|
- name: Set Volume Facts
|
||||||
|
set_fact:
|
||||||
|
volumes:
|
||||||
|
- device_name: /dev/sda1
|
||||||
|
volume_size: 20
|
||||||
|
ebs:
|
||||||
|
snapshot: snap-XXXX
|
||||||
|
volume_type: gp2
|
||||||
|
delete_on_termination: true
|
||||||
|
encrypted: no
|
||||||
|
|
||||||
|
- name: Create launch configuration
|
||||||
|
ec2_lc:
|
||||||
|
name: lc1
|
||||||
|
image_id: ami-xxxx
|
||||||
|
assign_public_ip: yes
|
||||||
|
instance_type: t2.medium
|
||||||
|
key_name: my-key
|
||||||
|
security_groups: "['sg-xxxx']"
|
||||||
|
volumes: "{{ volumes }}"
|
||||||
|
register: lc_info
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
Loading…
Reference in a new issue