-
Notifications
You must be signed in to change notification settings - Fork 104
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
Playbook fails at ERROR: Misconfiguration detected! Unable to proceed as handlers will fail in the play later #150
Comments
You should not set All the variable that are set by The only time you would want to set |
Hi @dtwersky, leaving the below variables as it is in default/main.yml file the issue persists.
I still get this: The
My debug shows all the conditions as follow:
Then the task fails because all the conditions were met including the
According to variable precedence unless I'm missing something, group_vars/all.yml should overwrite the default/main.yml variables. So, that doesn't seem the issue. As mentioned previously, it seems the Please let me know if any other information is needed. |
@cesar-ayuuk Please add the following on line 125 to
|
Hi @jewnix, Thanks for your quick response:
I commented current_start_method out and this is the output when the first task (check_splunk) runs:
Here is the output when the second task (configure_idxc_manager.yml) runs:
Same output, then the second task fails with the same error: |
Run it with Also, is it configured to run at boot? Check by running |
Output below of
Yes, it was configured when the first task check_splunk.yml ran:
|
I can see that it does set the Did you pull the most recent version of the repo? What is the command you are running to play this? |
I just did a new clone of the repo to test things. I am and have been running the command like this:
The playbook splunk_idxc_deploy.yml content:
This failed again with the same error. since splunk_install_or_upgrade.yml file only includes check_splunk.yml task, this will never fail. Do you suggest to include the configure_idxc_manager.yml and configure_idxc_member.yml tasks. |
@Ces-Ces does this only happen on a fresh install? What happens if you run the playbook again after it fails? |
I was able to reproduce it, and identified the issue. When |
As @jewnix mentioned, it passes the second time you run the playbook. However, My workaround to skip the
|
I created a PR that does it a bit different, but both solution will work. |
My play is failing every time when i run multiple configuration files from a playbook.
I have my variables
splunk_use_initd
andsplunk_use_sytemd
defined in group_vars/all.yml as follow:My playbook contains:
This fails every time at configure_idxc_manager.yml task at the main.yml fail task:
ERROR: Misconfiguration detected! Unable to proceed as handlers will fail in the play later."
This is also confusing from roles/splunk/main.yml:
If set boot-start misconfigured var is being skipped but the
Fail the play if the currently configure boot-start...
still fails.Then it fails:
ERROR: Misconfiguration detected! Unable to proceed as handlers will fail in the play later."
This seems it's getting the value from the previous play (check_splunk.yml ) set_fact since these are the values being returned (even when
set boot-start misconfigured var is being
skipped):Am I missing something?
Please let me know if any other information is needed.
Thanks in advance.
The text was updated successfully, but these errors were encountered: