Re: [ansible-project] Create AWS EFS

2020-03-25 Thread Dick Visser
It means that your boto3 is not available to ansible.
Wrong location? Different venv?

What does 'ansible --version' say?

On Wed, 25 Mar 2020 at 08:07, Sandy Hung  wrote:

> Dear All:
>
> I have create efs ansible , I have install boto3
> this is show error msg
>
> this is my ansible
> ---
>  - hosts: localhost
>connection: local
>gather_facts: no
>
>vars_files:
>   - ec2key.yml
>
>tasks:
>
>- name: Create EFS
>  efs:
>state: present
>region: ap-southeast-1
>name: "_efs"
>tags:
>  Name: “efs_test”
>targets:
>  - subnet_id: subnet-x
>security_groups: sg-x
>
>
> "The full traceback is:
> WARNING: The below traceback may *not* be related to the actual failure.
>   File
> "/tmp/ansible_efs_payload_B4LtA0/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py",
> line 226, in 
>
> fatal: [localhost]: FAILED! => {
> "changed": false,
> "invocation": {
> "module_args": {
> "aws_access_key": null,
> "aws_secret_key": null,
> "debug_botocore_endpoint_logs": false,
> "ec2_url": null,
> "encrypt": false,
> "id": null,
> "kms_key_id": null,
> "name": "abagile_efs",
> "performance_mode": "general_purpose",
> "profile": null,
> "provisioned_throughput_in_mibps": null,
> "purge_tags": true,
> "region": "ap-southeast-1",
> "security_token": null,
> "state": "present",
> "tags": {
> "Name": "“efs_test”"
> },
> "targets": [
> {
> "security_groups": "sg-073c16c36bea62794",
> "subnet_id": "subnet-46817120"
> }
> ],
> "throughput_mode": null,
> "validate_certs": true,
> "wait": false,
> "wait_timeout": 0
> }
> },
> "msg": "boto3 required for this module"
> } "
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/51cf9f5f-af7f-4688-8e59-f5d708595b8c%40googlegroups.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMbfGtvV%3DHD2-RAD3M92NffoP73mDx3qk1jutMXy6E8%3DQ%40mail.gmail.com.


[ansible-project] Create AWS EFS

2020-03-25 Thread Sandy Hung
Dear All:

I have create efs ansible , I have install boto3 
this is show error msg 

this is my ansible
---
 - hosts: localhost
   connection: local
   gather_facts: no

   vars_files:
  - ec2key.yml

   tasks:

   - name: Create EFS
 efs:
   state: present
   region: ap-southeast-1
   name: "_efs"
   tags:
 Name: “efs_test”
   targets:
 - subnet_id: subnet-x
   security_groups: sg-x


"The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File 
"/tmp/ansible_efs_payload_B4LtA0/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py",
 
line 226, in 

fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"aws_access_key": null,
"aws_secret_key": null,
"debug_botocore_endpoint_logs": false,
"ec2_url": null,
"encrypt": false,
"id": null,
"kms_key_id": null,
"name": "abagile_efs",
"performance_mode": "general_purpose",
"profile": null,
"provisioned_throughput_in_mibps": null,
"purge_tags": true,
"region": "ap-southeast-1",
"security_token": null,
"state": "present",
"tags": {
"Name": "“efs_test”"
},
"targets": [
{
"security_groups": "sg-073c16c36bea62794",
"subnet_id": "subnet-46817120"
}
],
"throughput_mode": null,
"validate_certs": true,
"wait": false,
"wait_timeout": 0
}
},
"msg": "boto3 required for this module"
} "

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/51cf9f5f-af7f-4688-8e59-f5d708595b8c%40googlegroups.com.