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

role fails in check mode #27

Open
PeterNerlich opened this issue May 29, 2021 · 3 comments
Open

role fails in check mode #27

PeterNerlich opened this issue May 29, 2021 · 3 comments

Comments

@PeterNerlich
Copy link

When trying out this role without any vars on a fresh debian 10 system I got this error:

FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to be in '/home/peter/.ansible/roles/galaxyproject.postgresql/tasks/debian.yml': line 33, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set version fact\n  ^ here\n"
}

This is apparently because the task before, where the mentioned variable is to be registered, reports "msg": "skipped, running in check mode"

@PeterNerlich PeterNerlich changed the title Install fails in check mode role fails in check mode May 29, 2021
@hexylena
Copy link
Member

Hi @PeterNerlich this is a known issue. A lot of the galaxy roles unfortunately don't support check mode. We'd welcome contributions to fix this, but the issue in a couple places is determining current versions in a check friendly way.

@PeterNerlich
Copy link
Author

I see. This is more or less the first role from galaxy I used so I wasn't aware. Feel free to close if it's not desired to keep track of.

@hexylena
Copy link
Member

Let's leave it open, it would be good to fix! Maybe someone will be motivated. I used to be a heavy --check user in the past but I think it's not so important to everyone.

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

No branches or pull requests

2 participants