I am trying to learn ansible for work. I need to create RDS instance followed by a database and get env variables.
i keep getting error
fatal: [localhost]: FAI
The error you're getting is simply a formatting error. register should be on the same indentation as the task.
tasks:
- name: Provision RDS
rds:
command: create
instance_name: ANSIBLEDataloading
db_engine: Postgresql
size: 10
instance_type: sb.m1.small
username: xxxxx
password: xxxxx
tags:
Environment: Dataloading
Application: sims
command: facts
instance_name: ANSIBLEDataloading
register: ANSIBLEDataloading