Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Summary - Poor error handling #101

Open
Fleurpot82 opened this issue Apr 3, 2024 · 2 comments
Open

Empty Summary - Poor error handling #101

Fleurpot82 opened this issue Apr 3, 2024 · 2 comments

Comments

@Fleurpot82
Copy link

I am trying to use the ansible provider to run a play book, the plan works and its only when going to apply I see an error, however even with terraform in debug the only information provided is:

ansible_playbook.simpleplaybook: Creating...

│ Error: Empty Summary: This is always a bug in the provider and should be reported to the provider developers.

│ with ansible_playbook.simpleplaybook,
│ on main.tf line 34, in resource "ansible_playbook" "simpleplaybook":
│ 34: resource "ansible_playbook" "simpleplaybook" {

│ ansible-playbook

Operation failed: failed running terraform apply (exit 1)

@gravesm
Copy link
Member

gravesm commented Apr 16, 2024

@Fleurpot82 Can you provide a terraform config to reproduce this error?

@dampersand
Copy link

I can replicate this error with the following config, running in a container:

terraform {
  required_version = "~> 1.8.2"
  required_providers {
    ansible = {
      source = "ansible/ansible"
      version = "1.3.0"
    }
  }
}

resource "ansible_vault" "secrets" {
  vault_file          = "/terraform/vault"
  vault_password_file = "/user/.ansible-vault/password"
}

Installing ansible on the container fixed my issue... make sure ansible is installed in your execution environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants