Creating RDS in ansible

后端 未结 1 413
花落未央
花落未央 2021-01-26 07:50

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

相关标签:
1条回答
  • 2021-01-26 08:26

    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
    
    0 讨论(0)
提交回复
热议问题