I have a requirement to create AWS RDS for Oracle Standard Edition 2. I 
have created the script and gave values as available in the AWS RDS 
console. The problem is Ansible is not accepting the Engine version 
available in the AWS console. I'm using the exact version and the fields 
mentioned in AWS console. If the script accepts the version it says the 
instance type doesn't match and I'm not able to find the correct engine 
version and instance type together. I searched the aws docs for the engine 
and instance type mappings and used the same, but still the script fails to 
create the rds and complaints about either of them.Please find below my 
script. Any suggestions welcome !

Below is my role:

- rds:
    aws_access_key: XXXXXXXXXXXXXXXXXXXXXXXXX
    aws_secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    command: create
    license_model: license-included
    instance_name: Prod
    db_engine: oracle-se2
    db_name: ERPDB
    engine_version: 11.2.0.4
    port: 1433
    region: ap-southeast-2
    size: 300
    #iops:
    #instance_type: db.m4.2xlarge
    instance_type: db.t2.micro
    username: oracle_admin
    password: xxxxx
    tags:
      Environment: Production
      Application: APAC

Below is my playbook:

---
 - hosts: localhost
   become: yes
   become_method: sudo
   roles:
      - { role: rds-ora }

Below is the error:

PLAY [localhost] 
********************************************************************************************************************

TASK [Gathering Facts] 
**************************************************************************************************************
ok: [localhost]

TASK [rds-ora : rds] 
****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to create 
instance: Cannot find version 11.2.0.4 for oracle-se2"}
        to retry, use: --limit @/home/ec2-user/callrds.retry

PLAY RECAP 
**************************************************************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7118c15f-ec0d-4977-9114-b10847283419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to