I’m sorry, I get it since you are just trying to help.
Again sorry Thanks David On Mon, Feb 17, 2020 at 10:24 AM David Rivera <[email protected]> wrote: > Hi, > > I do have AWS cli and boto3 installed as I use those almost on a daily > basis. > > Yes, > Thank you for the heads up on the s3 bucket, I just changed it in my post.. > > Thanks, > David > > > > On Mon, Feb 17, 2020 at 10:15 AM Amit Kulkarni <[email protected]> > wrote: > >> Ansible supports S3 and all the operations supported by S3 API. You have >> to make sure that you have access to AWS CLI and also install python boto. >> This is the framework used for calling AWS API via ansible. >> >> Also make sure that name you have giving to bucket should be unique when >> you are writing the playbook. >> >> Regards >> Amit >> >> >> On Mon, Feb 17, 2020, 12:56 AM David Rivera <[email protected]> >> wrote: >> >>> >>> >>> So I wondering if ansible supports s3, from what I see it does but I >>> just might not understand how to do it. Im a novice at Ansible, esp in the >>> realm of using it in conjunction with AWS. >>> >>> So I *think* I have to create a role and call it in my playbook? >>> >>> my role for learning is: s3-create.yml >>> - name: Create S3 Bucket >>> aws_s3: >>> bucket: my-bucket >>> mode: create >>> permission: private-read >>> region: us-east-1 >>> >>> >>> my playbook: >>> key_name: my-key >>> vpc_subnet_id: subnet-02439 >>> roles: >>> - s3-create >>> assign_public_ip: yes >>> group: my-group >>> >>> >>> when I run it, I get this: >>> >>> EntePLAY [Test creating ec2 instance with Ansible] >>> *********************************************************************************** >>> >>> TASK [Gathering Facts] >>> *********************************************************************************************************** >>> ok: [localhost] >>> >>> TASK [Start New ec2 Instance] >>> **************************************************************************************************** >>> fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported >>> parameters for (ec2) module: roles Supported parameters include: >>> assign_public_ip, aws_access_key, aws_secret_key, count, count_tag, >>> debug_botocore_endpoint_logs, ebs_optimized, ec2_url, exact_count, group, >>> group_id, id, image, instance_ids, instance_initiated_shutdown_behavior, >>> instance_profile_name, instance_tags, instance_type, kernel, key_name, >>> monitoring, network_interfaces, placement_group, private_ip, profile, >>> ramdisk, region, security_token, source_dest_check, spot_launch_group, >>> spot_price, spot_type, spot_wait_timeout, state, tenancy, >>> termination_protection, user_data, validate_certs, volumes, vpc_subnet_id, >>> wait, wait_timeout, zone"} >>> >>> PLAY RECAP >>> *********************************************************************************************************************** >>> localhost : ok=1 changed=0 unreachable=0 >>> failed=1 skipped=0 rescued=0 ignored=0 >>> r code here... >>> >>> >>> From what I read, you cant do it, but that contradicts ansible's docs so >>> I think I just dont know what I am doing.. >>> >>> >>> any help would be appreciated.. >>> >>> >>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/ansible-project/6dff2045-5d8a-4239-ba88-f2a588401c56%40googlegroups.com >>> <https://groups.google.com/d/msgid/ansible-project/6dff2045-5d8a-4239-ba88-f2a588401c56%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAON3ZR0wnyJ0H5ocOvz-cHFZnR3Bksegi26wk6qzx_eiiyE0iA%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAON3ZR0wnyJ0H5ocOvz-cHFZnR3Bksegi26wk6qzx_eiiyE0iA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAAH6UtpeXcpz3g2gR0R7ZkricKYZctW5ch7DiPqGT2POwUFo6Q%40mail.gmail.com.
