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

Unsupported parameters #31

Open
ansiblejunky opened this issue Jul 28, 2023 · 3 comments
Open

Unsupported parameters #31

ansiblejunky opened this issue Jul 28, 2023 · 3 comments

Comments

@ansiblejunky
Copy link

Running it against a RHEL9 vagrant box, and getting errors:

TASK [ansible-role-virtualbox-guest : Check if VBoxGuest additions ISO is mounted] *************************************************************************************************************************************************************************
Friday 28 July 2023  09:27:56 -0700 (0:00:00.034)       0:00:07.275 ***********
Friday 28 July 2023  09:27:56 -0700 (0:00:00.034)       0:00:07.275 ***********
fatal: [aap.example.com]: FAILED! => {
    "changed": false,
    "changed_when_result": "The conditional check 'mount_path is defined and not mount_path.stdout' failed. The error was: error while evaluating conditional (mount_path is defined and not mount_path.stdout): 'dict object' has no attribute 'stdout'. 'dict object' has no attribute 'stdout'"
}

MSG:

Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends.
@ansiblejunky
Copy link
Author

It appears to be with the warn argument on the shell module. The warn parameter for shell was deprecated in Ansible 2.11 and removed in Ansible 2.14. So removing this from the tasks/main.yml and this code works again.

@PeterMosmans
Copy link
Owner

Thanks for the report @ansiblejunky - feel free to open a PR so we can fix it for everyone ;)

carefreecaribou added a commit to carefreecaribou/ansible-role-virtualbox-guest that referenced this issue Sep 28, 2023
Remove the warn options for checking if the guest additions iso is mounted. Fix for PeterMosmans#31
@carefreecaribou
Copy link
Contributor

I created a pull request for this issue. #32

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

3 participants