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

Unable to complete deployment from ansible #425

Closed
doucettom opened this issue Feb 17, 2023 · 3 comments
Closed

Unable to complete deployment from ansible #425

doucettom opened this issue Feb 17, 2023 · 3 comments

Comments

@doucettom
Copy link

Following from: #422
fatal: [1001lab-openwisp-01]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"insertafter": " # index-version = "inmem"",
"line": " index-version = "inmem"",
"path": "/etc/influxdb/influxdb.conf",
"search_string": " index-version ="
}
},
"msg": "Unsupported parameters for (lineinfile) module: search_string Supported parameters include: attributes, backrefs, backup, create, firstmatch, group, insertafter, insertbefore, line, mode, owner, path, regexp, selevel, serole, setype, seuser, state, unsafe_writes, validate"
}

@nemesifier
Copy link
Member

Please read here:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/lineinfile_module.html#parameter-search_string

added in ansible-core 2.11.

Make sure your ansible version is 2.11 or higher.

@doucettom
Copy link
Author

doucettom commented Feb 20, 2023

With 2.14 from PPA:

fatal: [1001lab-openwisp-01]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"_raw_params": "openssl req -new -nodes -x509 -subj "/C=US/ST=California \ /L=San Francisco/O=IT dep. \\n /CN=1001lab-openwisp-01" -days 3650 -keyout /opt/openwisp2/ssl/server.key -out /opt/openwisp2/ssl/server.crt -extensions v3_ca",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": "/opt/openwisp2/ssl/server.crt",
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": false
}
},
"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."
}

PLAY RECAP *********************************************************************
1001lab-openwisp-01 : ok=106 changed=9 unreachable=0 failed=1 skipped=61 rescued=0 ignored=0

@nemesifier
Copy link
Member

d73f819

This issue was closed.
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