mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fail if required arguments are missing
This commit is contained in:
parent
e221097a37
commit
31bf1a97d1
@ -14,6 +14,10 @@
|
||||
- sa-east-1
|
||||
|
||||
tasks:
|
||||
- fail:
|
||||
msg: 'No source AMI id defined, please provide a value for variable src_ami_id.'
|
||||
when: src_ami_id is undefined
|
||||
|
||||
- name: Gather AMI information
|
||||
ec2_ami_find:
|
||||
ami_id: '{{ src_ami_id }}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user