GithubHelp home page GithubHelp logo

ansible-terraform-module's People

Contributors

adenot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-terraform-module's Issues

terraform module execution issue

I have taken your script to use with my terraform

i have written this simple playbook

cat tera.yml

  • hosts: dev
    remote_user: root
    become: true
    become_method: sudo
    tasks:
    • terraform_remote_state:
      dir: "/etc/ansible/scripts/terraform-stack/aws/tera-project"
      backend: s3
      backend_config:
      bucket: "tera-artifactory"
      key: "tera-artifactory/terraform.tfstate"
      region: us-east-1
    • terraform:
      dir: "/etc/ansible/scripts/terraform-stack/aws/tera-project"
      action: "plan"
      vars:
      var1: "value1"
      register: tfvars
    • debug: var="{{tfvars.outputs}}"
      :wq

While Im trying to execute playbook it gives below mentioned error

fatal: [cloud-controller]: FAILED! => {
"changed": true,
"delta": "0:00:00.028888",
"end": "2018-10-05 09:10:54.155402",
"invocation": {
"module_args": {
"aws_access_key": null,
"aws_secret_key": null,
"backend": "s3",
"backend_config": {
"bucket": "tera-artifactory",
"key": "tera-artifactory/terraform.tfstate",
"region": "us-east-1"
},
"dir": "/etc/ansible/scripts/terraform-stack/aws/tera-project",
"ec2_url": null,
"profile": null,
"region": null,
"security_token": null,
"terraform_bin": "terraform",
"validate_certs": true
}
},
"outputs": {},
"rc": 127,
"resources": {},
"start": "2018-10-05 09:10:54.126514",
"stderr": "",
"stderr_lines": [],
"stdout": "Usage: terraform [-version] [-help] [args]\n\nThe available commands for execution are listed below.\nThe most common, useful commands are shown first, followed by\nless common or more advanced commands. If you're just getting\nstarted with Terraform, stick with the common commands. For the\nother commands, please read the help and docs before usage.\n\nCommon commands:\n apply Builds or changes infrastructure\n console Interactive console for Terraform interpolations\n destroy Destroy Terraform-managed infrastructure\n env Workspace management\n fmt Rewrites config files to canonical format\n get Download and install modules for the configuration\n graph Create a visual graph of Terraform resources\n import

any help will be appreciated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.