diff --git a/collections/ansible_collections/demo/cloud/roles/aws/defaults/main.yml b/collections/ansible_collections/demo/cloud/roles/aws/defaults/main.yml index 2ba3f9e..5b3a0db 100644 --- a/collections/ansible_collections/demo/cloud/roles/aws/defaults/main.yml +++ b/collections/ansible_collections/demo/cloud/roles/aws/defaults/main.yml @@ -12,8 +12,8 @@ aws_vm_owner: "{{ vm_owner }}" aws_blueprint: "{{ vm_blueprint }}" aws_image_filter: "{{ omit }}" aws_image_size: "{{ omit }}" -aws_image_architecture: "{{ omit }}" -aws_image_owners: "{{ omit }} " +#aws_image_architecture: "{{ omit }}" +#aws_image_owners: "{{ omit }} " aws_userdata_template: default aws_keypair_name: "{{ aws_vpc_name }}-{{ aws_vpc_prefix }}-demo-key" aws_securitygroup_name: "{{ aws_vpc_name }}-{{ aws_vpc_prefix }}-sec-group" diff --git a/collections/ansible_collections/demo/cloud/roles/aws/tasks/create_vm.yml b/collections/ansible_collections/demo/cloud/roles/aws/tasks/create_vm.yml index 2be6bc4..3e03226 100644 --- a/collections/ansible_collections/demo/cloud/roles/aws/tasks/create_vm.yml +++ b/collections/ansible_collections/demo/cloud/roles/aws/tasks/create_vm.yml @@ -13,10 +13,10 @@ - name: AWS| CREATE VM | find ami amazon.aws.ec2_ami_info: region: "{{ aws_region }}" - owners: "{{ aws_image_owners }}" + owners: "{{ aws_image_owners | default(omit)}}" filters: name: "{{ aws_image_filter }}" - architecture: "{{ aws_image_architecture }}" + architecture: "{{ aws_image_architecture | default(omit) }}" register: amis - name: AWS| CREATE VM | save ami