Skip to content
New issue

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

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

Already on GitHub? # to your account

install wmi_exporter fails because of wait: true #11

Open
chebelom opened this issue Nov 24, 2020 · 2 comments
Open

install wmi_exporter fails because of wait: true #11

chebelom opened this issue Nov 24, 2020 · 2 comments

Comments

@chebelom
Copy link

Hi @sbaerlocher,
the .msi file installation fails because of the wait: true parameter in the win_package module

TASK [sbaerlocher.wmi_exporter : package : install wmi_exporter] ************************************************************************
task path: /home/user/.ansible/roles/sbaerlocher.wmi_exporter/tasks/install/package.yml:41
redirecting (type: modules) ansible.builtin.win_package to ansible.windows.win_package
Using module file /home/user/.local/lib/python3.5/site-packages/ansible_collections/ansible/windows/plugins/modules/win_package.ps1
Pipelining is enabled.
<x.x.x.x> ESTABLISH WINRM CONNECTION FOR USER: <redacted> on PORT 5986 TO x.x.x.x
EXEC (via pipeline wrapper)
fatal: [x.x.x.x]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "arguments": "ENABLED_COLLECTORS=['cpu', 'cs', 'logical_disk', 'memory', 'net', 'os', 'process', 'service', 'system', 'textfile'] ",
            "path": "C:\\Users\\<redacted>\\AppData\\Local\\Temp\\wmi_exporter\\\\wmi_exporter.msi",
            "state": "present",
            "wait": true
        }
    },
    "msg": "Unsupported parameters for (win_package) module: wait. Supported parameters include: validate_certs, use_proxy, username, proxy_password, arguments, force_basic_auth, http_agent, headers, expected_return_code, creates_path, password, proxy_use_default_credential, proxy_username, proxy_url, log_path, url_timeout, url_username, maximum_redirection, use_default_credential, client_cert, state, follow_redirects, creates_service, url_password, url_method, product_id, creates_version, chdir, client_cert_password, path, provider, user_name, user_password, ensure, productid"
}

@usefree
Copy link

usefree commented Feb 6, 2021

in file ansible.wmi_exporter/tasks/install/package.yml
replace in row 45 this
wait: true
with this
wait_for_children: true

@Himura2la
Copy link

Himura2la commented Dec 22, 2021

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

No branches or pull requests

3 participants