Closed RAD-Mixen closed 1 year ago
@RAD-Mixen do you have the community module installed on the host you are running ansible on?
@dtwersky I do have the - community.general module installed onto my host that ansible is on.
@RAD-Mixen Did you pull the latest copy of the branch? What version of ansible are you using? What OS are you using?
@dtwersky I did pull the latest version of the branch. I'm using version 2.14.4 of ansible core inside of AWX 2.0.0 on a AlmaLinux 9 VM.
@RAD-Mixen
splunk_license_group
variable set to?@dtwersky
@RAD-Mixen In the REDME.md, the variable is mentioned here
A UF should not need a license to operate, For a UF, the splunk_license_group
variable should be set to Forwarder
, which is the default on a vanilla UF install. No need to have a splunk_uri_lm
.
Another note: If you want a instance to be a peer to the LM, you will need to set the splunk_license_group
variable to Peer
, only then will the splunk_uri_lm
be configured.
I need to update the documentation with all this. The documentation needs a overhaul in general.
Oh ok, that makes sense, yeah I was kind of rushing, and since I've been running in verbose mode as you suggested. I'm now seeing all of the module switching now that AWX / ansible is trying to do with the playbooks in the versions I am running. So I'm going to need to trudge through these and see if I can get this to work now. Thank you very much for all of your help!
Trying to deploy Splunk UF in a new work environment and I'm currently getting stuck on the configure_license,yml.
So not sure what is going on, because in my previous environment that I've used this in it worked great. However my current work environment the splunk_uri_lm that I point too is erroring out I believe. I tried changing the ini_file module to community.general.ini_file and that hasn't seemed to resolve the error I get below (which was exactly the same when the module was ini_file). The only reason I tried changing the ini_file module was that seemed to resolve issues in other playbooks that had the same type off error, but this one cannot be resolved in the same manner. Any help on this would be much appreciated.
TASK [ansible-role-for-splunk : Configure license] ***** ERROR! couldn't resolve module/action 'community.general.ini_file'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/runner/requirements_roles/ansible-role-for-splunk/tasks/configure_license.yml': line 33, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: